# CVE-2025-58158: Harness Affected by Arbitrary File Write in Gitness LFS server

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-08-29T16:41:57.000Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-w469-hj2f-jpr5, GO-2025-3926
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- harness harness: < 3.3.0
- github.com/harness/gitness (Go): from 1.0.4 before 3.3.0; before 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5> (advisory, web)
- <https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58158> (advisory)
- <https://github.com/harness/harness> (package)

## Sources

- CVE List: [CVE-2025-58158](https://www.cve.org/CVERecord?id=CVE-2025-58158), CVE Terms of Use, modified 2025-08-29
- GitHub Advisory Database: [GHSA-w469-hj2f-jpr5](https://github.com/advisories/GHSA-w469-hj2f-jpr5), CC-BY-4.0, modified 2025-09-17
- Go Vulnerability Database: [GO-2025-3926](https://pkg.go.dev/vuln/GO-2025-3926), CC-BY-4.0, modified 2025-09-17
- NVD: [CVE-2025-58158](https://nvd.nist.gov/vuln/detail/CVE-2025-58158), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-58158 · Whole record: https://cve.day/CVE-2025-58158.json · Rebuilt by cve.day 2026-11-25T22:59:03.899Z
