Advisory

GHSA-w469-hj2f-jpr5

Also known as: CVE-2025-58158, GO-2025-3926

Summary

Harness Allows Arbitrary File Write in Gitness LFS server

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-08-29 16:41 UTC
Modified
2025-09-17 17:27 UTC

Affected packages and fixes

github.com/harness/gitness

Go · All systems

Affected

  • introduced 1.0.4, fixed 3.3.0 (semver)

Fixed versions

3.3.0

Fix

github.com/harness/gitness

Go · All systems

Affected

  • introduced 0, fixed 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 (semver)

Fixed versions

1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13

Fix

  • Fixed version 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
    go 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences