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

> CVE-2025-58158: Harness Affected by Arbitrary File Write in Gitness LFS server. CVSS 8.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-58158
Last updated: 2026-10-19T17:10:00Z

- Published: 2025-08-29 17:44 UTC · Updated: 2026-10-19 17:10 UTC · Assigner: GitHub\_M
- CVSS: 8.8 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.50%, 43th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-22, CWE-73

## 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.

## Affected vendors and products

- harness: harness

## Tracked companies

- [Harness](https://rewindex.com/company/harness.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-58158)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-58158)
- [https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20](https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20)
- [https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5](https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-58158 · Markdown: https://rewindex.com/cve/CVE-2025-58158.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-58158 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:08:57.945Z
