CVE-2025-58158

High

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.

SeverityHigh
CVSS8.8
Exploit probability43. percentile0.5%
ProductGithub.com/harness/gitness
PublishedAug 29, 2025
First seenAug 29, 2025

How to fix

Update
  • github.com/harness/gitness3.3.0, 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 or later

Affected products

ProductAffected versionsFixed in
github.com/harness/gitnessGo1.0.4 ≤ v < 3.3.0, v < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae133.3.0, 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.