Home / harness / harness / CVE-2025-58158
CVE-2025-58158: is it exploited, and which versions of harness are affected and fixed?
CVE-2025-58158 is a path traversal (reading or writing files outside the intended folder) vulnerability in harness. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: github.com/harness/gitness from 1.0.4 before 3.3.0 and github.com/harness/gitness before 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 (GitHub advisory GHSA-w469-hj2f-jpr5). Fixed in 3.3.0 and 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 (GitHub advisory GHSA-w469-hj2f-jpr5). Severity: High (8.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:17 UTC.
What is CVE-2025-58158?
Harness Affected by Arbitrary File Write in Gitness LFS server
Harness Open Source is an end-to-end developer platform with Source Control Management, CI/CD Pipelines, Hosted Developer Environments, and Artifact Registries. Prior to version 3.3.0, 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. This issue has been patched in version 3.3.0.
From the CVE record by GitHub_M, last updated August 29, 2025, 18:08 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| harness | harness | < 3.3.0 |
As the CVE record by GitHub_M states it, last updated August 29, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/harness/gitness | >= 1.0.4, < 3.3.0 | 3.3.0 | GHSA-w469-hj2f-jpr5 |
| Go | github.com/harness/gitness | < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 | 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 | GHSA-w469-hj2f-jpr5 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 29, 2025. Summary: Harness Allows Arbitrary File Write in Gitness LFS server.
How severe is CVE-2025-58158?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-58158 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, August 29, 2025)
- EPSS
- 0.56% probability of exploitation activity in the next 30 days, percentile 47.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-73 External Control of File Name or Path
Where are the vendor advisories and references?
- https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5 x_refsource_CONFIRM
- https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 27, 2025
- Published
- August 29, 2025, 17:44 UTC
- CVE record updated
- August 29, 2025, 18:08 UTC by GitHub_M
- NVD
- Deferred, last modified October 19, 2026, 17:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:17 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect harness?
- Sep 16, 2026CVE-2026-92750 harness: missing authorization
- Jul 8, 2026CVE-2026-15036 Harness: authorization bypass through a user-controlled key (IDOR)
- Sep 21, 2025CVE-2025-10761 Harness: no limit on login attempts (brute force)
- Sep 21, 2025CVE-2025-10760 Harness: server-side request forgery (SSRF)
Questions about CVE-2025-58158
Is CVE-2025-58158 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 0.56% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of harness are affected by CVE-2025-58158?
github.com/harness/gitness from 1.0.4 before 3.3.0 and github.com/harness/gitness before 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13, per the GitHub advisory GHSA-w469-hj2f-jpr5. The tables above give every range the sources list.
Which version fixes CVE-2025-58158?
3.3.0 and 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13, per the GitHub advisory GHSA-w469-hj2f-jpr5. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-58158?
High (8.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-58158?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.