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

Published Aug 29, 2025
·
Updated

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.

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
Harness Open Source Harness<3.3.0
go/github.com/harness/gitness<1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13
go/github.com/harness/gitness>=1.0.4<3.3.0
3.3.0

Event History

Aug 29, 2025
Advisory Published
via GitHub·04:41 PM
Data Sourced
via GitHub·04:41 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·05:44 PM
Data Sourced
via MITRE·05:44 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-58158?

CVE-2025-58158 is considered a high-severity vulnerability due to its potential impact on file retrieval and upload operations.

2

How do I fix CVE-2025-58158?

To remediate CVE-2025-58158, upgrade Open Source Harness to version 3.3.0 or later.

3

What software is affected by CVE-2025-58158?

CVE-2025-58158 affects Open Source Harness versions prior to 3.3.0.

4

What functionalities are impacted by CVE-2025-58158?

CVE-2025-58158 affects the git LFS server functionality, allowing unauthorized access to file retrieval and uploads.

5

Is there a workaround for CVE-2025-58158 before upgrading?

Currently, there are no documented workarounds for CVE-2025-58158, and upgrading is the recommended action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203