Live threats

All CVEs / harness

CVE-2025-58158harness

High 8.8

Priority
53
CVSS 3.1
8.8
EPSS
—
Auth required
Yes
Published
Aug 29, 2025
Updated
Oct 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-73
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for harness.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/harness/gitness ≥ 1.0.4 < 3.3.0 3.3.0 go get github.com/harness/gitness@v3.3.0
Go github.com/harness/gitness < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 go get github.com/harness/gitness@v1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
Go github.com/harness/gitness < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 go get github.com/harness/gitness@v1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13

Per OSV / GitHub Advisories (GHSA-w469-hj2f-jpr5, GO-2025-3926). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.