Vulnerability · Published Aug 29, 2025 · Assigned by GitHub_M

CVE-2025-58158Harness Affected by Arbitrary File Write in Gitness LFS server

High 8.8

In plain English

A high-severity path traversal in harness from harness. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.5%top 56.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/harness/gitness3.3.0GHSA-w469-hj2f-jpr5
Gogithub.com/harness/gitness1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13GHSA-w469-hj2f-jpr5
Gogithub.com/harness/gitness1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13GO-2025-3926

Affected products (as reported)

VendorProductVersions
harness harness < 3.3.0

Weakness: CWE-22, CWE-73 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References