CVE-2025-58158 Details
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.
An arbitrary file write vulnerability has been identified in the Open Source Harness Git LFS server (Gitness) prior to version 3.3.0. The issue arises from improper sanitization of the upload path in the API that handles file uploads via Git LFS. This vulnerability allows a malicious authenticated user with access to the Gitness server API to craft an upload request that writes arbitrary files to any location on the file system, potentially compromising the server. Users of Git LFS are affected by this vulnerability.
Users are advised to upgrade to version 3.3.0, as all previous versions are affected by this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 29, 2025CISA-ADP
Assessed Aug 29, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20 | [email protected] | Source CodeVendor |
| https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-73 | External Control of File Name or Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Harness Open Source | All versions |
CPE
Remediation
| |
| Harness Gitness | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 29, 2025 | New CVE Received | [email protected] |
Volerion