logo

CVE-2025-58158 github.com/harness/gitness

Package

Manager: go
Name: github.com/harness/gitness
Vulnerable Version: >=1.0.4 <3.3.0 || >=0 <1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00049 pctl0.14696

Details

Harness Allows Arbitrary File Write in Gitness LFS server ### 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.

Metadata

Created: 2025-08-29T16:41:57Z
Modified: 2025-08-29T21:09:11Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-w469-hj2f-jpr5/GHSA-w469-hj2f-jpr5.json
CWE IDs: ["CWE-22", "CWE-73"]
Alternative ID: GHSA-w469-hj2f-jpr5
Finding: F063
Auto approve: 1