NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2025-58158: Harness Allows Arbitrary File Write in Gitness LFS server

highCVSS 3.1 8.8GHSA-w469-hj2f-jpr5

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…

Published Aug 29, 2025

Affected packages

github.com/harness/gitness

Ecosystem
Go
Affected
>= 1.0.4, < 3.3.0
Fixed in
3.3.0
Check
go list -m github.com/harness/gitness

github.com/harness/gitness

Ecosystem
Go
Affected
< 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
Fixed in
1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
Check
go list -m github.com/harness/gitness

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to TheKavorka.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology