CVE-2025-58158
published 2025-08-29CVE-2025-58158: Harness Open Source is an end-to-end developer platform with Source Control Management, CI/CD Pipelines, Hosted Developer Environments, and Artifact…
PriorityP262high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
0.46%
36.4th percentile
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
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github.com | harness_gitness | >= 0 < 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 | 1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13 |
| github.com | harness_gitness | >= 1.0.4 < 3.3.0 | 3.3.0 |
| harness | harness | < 3.3.0 | 3.3.0 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Harness Allows Arbitrary File Write in Gitness LFS server in github.com/harness/gitness
osv·2025-09-17
CVE-2025-58158 Harness Allows Arbitrary File Write in Gitness LFS server in github.com/harness/gitness
Harness Allows Arbitrary File Write in Gitness LFS server in github.com/harness/gitness
Harness Allows Arbitrary File Write in Gitness LFS server in github.com/harness/gitness
OSV
Harness Allows Arbitrary File Write in Gitness LFS server
osv·2025-08-29
CVE-2025-58158 [HIGH] Harness Allows Arbitrary File Write in Gitness LFS server
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.
GHSA
Harness Allows Arbitrary File Write in Gitness LFS server
ghsa·2025-08-29
CVE-2025-58158 [HIGH] CWE-22 Harness Allows Arbitrary File Write in Gitness LFS server
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-08-29
Published