Skip to main content

CVE-2025-58158 — Harness Allows Arbitrary File Write in...

HIGH

Harness Allows Arbitrary File Write in Gitness LFS server

Published August 29, 2025Updated September 17, 2025Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.84%). Schedule for your next planned update.

Does your project use an affected github.com/harness/gitness version?

Paste your go.sum to check it for CVE-2025-58158 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

Impact

Open Source Harness git LFS server (Gitness) exposes api to retrieve and upload files via git LFS. Implementation of upload git LFS file api is vulnerable to arbitrary file write. Due to improper sanitization for upload path, a malicious authenticated user who has access to Harness Gitness server api can use a crafted upload request to write arbitrary file to any location on file system, may even compromise the server.

Users using git LFS are vulnerable.

Patches

Users have to upgrade to v3.3.0 . All previous versions are affected by this vulnerability.

Advisory Timeline

  • First published August 29, 2025 (454 days ago).
  • Last revised September 17, 2025 — 19 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/harness/gitness to 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 or later
go get github.com/harness/gitness@v1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
Go
Update github.com/harness/gitness to 3.3.0 or later
go get github.com/harness/gitness@v3.3.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/harness/gitness Go · Affected: All versions1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
github.com/harness/gitness Go · Affected: All versions3.3.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-58158?
Harness Allows Arbitrary File Write in Gitness LFS server. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2025-58158?
CVE-2025-58158 affects github.com/harness/gitness. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-58158 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.84%
EPSS percentile: 55

This is an above-median EPSS score — 55% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-w469-hj2f-jpr5
GO-2025-3926

Related CVEs

  • CVE-2026-108262
    HIGH

    DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885

  • CVE-2026-130007
    HIGH

    k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum