github.com/harness/gitness
Affected
- introduced
1.0.4, fixed3.3.0(semver)
Fixed versions
3.3.0
Fix
- Fixed version
3.3.0go get github.com/harness/[email protected]
Advisory
Also known as: CVE-2025-58158, GO-2025-3926
Harness Allows Arbitrary File Write in Gitness LFS server
Impact
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.
Patches
Users have to upgrade to v3.3.0 . All previous versions are affected by this vulnerability.
High Basis: The source's own band: HIGH
1.0.4, fixed 3.3.0 (semver)3.3.0
3.3.0go get github.com/harness/[email protected]0, fixed 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 (semver)1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13go get github.com/harness/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0