CVE-2025-58158
HIGH 8.8CVSS 3.1Harness Allows 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.
- Published
- 29 Aug 2025
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22CWE-73
- Also known as
- GHSA-w469-hj2f-jpr5GO-2025-3926
- Sources
- NVDJSONOSV GHSA-w469-hj2f-jpr5JSONOSV GO-2025-3926JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/harness/gitness | >= 1.0.4, < 3.3.0 | 3.3.0 |
| OSV | Go | github.com/harness/gitness | < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 | 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 |
References
- https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20 · WEB
- https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-58158 · ADVISORY
- https://github.com/harness/harness · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 29 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Sep 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Aug 2025)