{"cve":"CVE-2025-58158","nvd":{"published":"2025-08-29T18:15:42.987","modified":"2026-10-19T17:10:00.173","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-22","CWE-73"],"references":["https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20","https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-58158","score":0.00503,"percentile":0.4274,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-w469-hj2f-jpr5","url":"https://osv.dev/vulnerability/GHSA-w469-hj2f-jpr5","summary":"Harness Allows Arbitrary File Write in Gitness LFS server","modified":"2025-09-17T17:27:12.391486Z","packages":[{"ecosystem":"Go","name":"github.com/harness/gitness","purl":"pkg:golang/github.com/harness/gitness","ranges":[">=1.0.4 <3.3.0"],"fixed":["3.3.0"]},{"ecosystem":"Go","name":"github.com/harness/gitness","purl":"pkg:golang/github.com/harness/gitness","ranges":["<1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13"],"fixed":["1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13"]}]},{"id":"GO-2025-3926","url":"https://osv.dev/vulnerability/GO-2025-3926","summary":"Harness Allows Arbitrary File Write in Gitness LFS server in github.com/harness/gitness","modified":"2025-09-17T17:27:12.391486Z","packages":[{"ecosystem":"Go","name":"github.com/harness/gitness","purl":"pkg:golang/github.com/harness/gitness","ranges":["<1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13"],"fixed":["1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}