CVE-2025-58158 Harness Affected by Arbitrary File Write in Gitness LFS server
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| harness github.com/harness/gitness(Go) | < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13; >= 1.0.4, < 3.3.0 | 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13, 3.3.0 | Fixed |
| harness | = < 3.3.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| harness github.com/harness/gitness(Go) | >= 1.0.4, < 3.3.0 | 3.3.0 |
| harness github.com/harness/gitness(Go) | < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 | 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 |
| harness | = < 3.3.0 | No fix listed |
References
- https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20 patch
- github.com product
- github.com