Vulnerability · Published Aug 29, 2025 · Assigned by GitHub_M
CVE-2025-58158Harness Affected by Arbitrary File Write in Gitness LFS server
High 8.8
In plain English
A high-severity path traversal in harness from harness. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/harness/gitness | 3.3.0 | GHSA-w469-hj2f-jpr5 |
| Go | github.com/harness/gitness | 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 | GHSA-w469-hj2f-jpr5 |
| Go | github.com/harness/gitness | 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 | GO-2025-3926 |
Affected products (as reported)
Weakness: CWE-22, CWE-73 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H