~ / search / GHSA-w469-hj2f-jpr5

GHSA-w469-hj2f-jpr5

Harness Allows Arbitrary File Write in Gitness LFS server

Source: GitHub Advisory Database (reviewed) High CVE-2025-58158

Packages

EcosystemPackageAffectedFixed in
Go github.com/harness/gitness >= 1.0.4, < 3.3.0 3.3.0
Go github.com/harness/gitness < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13

Details

As written in the advisory (Markdown source, shown as plain text).

### 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.

References

External links from the advisory. They lead to third-party sites.