Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/harness/gitness
  4. ›
  5. CVE-2025-58158

CVE-2025-58158: Harness Allows Arbitrary File Write in Gitness LFS server

August 29, 2025

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.

References

  • github.com/advisories/GHSA-w469-hj2f-jpr5
  • github.com/harness/harness
  • github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20
  • github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5
  • nvd.nist.gov/vuln/detail/CVE-2025-58158

Code Behaviors & Features

Detect and mitigate CVE-2025-58158 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.4 before 3.3.0

Fixed versions

  • 3.3.0

Solution

Upgrade to version 3.3.0 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

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

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 30 Aug 2025 00:20:05 +0000.