{"id":"CVE-2025-58158","published":"2025-08-29T17:44:31Z","modified":"2025-08-29T18:08:04Z","title":"Harness Affected by Arbitrary File Write in Gitness LFS server","vendor":"harness","product":"harness","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00534,"percentile":0.45973,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/harness/harness/security/advisories/GHSA-w469-hj2f-jpr5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/harness/harness/commit/21c5ce42ae13740b1cad47706c2ec85e72cc8c20","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":9.19},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"harness","affectedVersions":[{"vendor":"harness","product":"harness","versions":["< 3.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-08-29T18:07:33.237579Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/harness/gitness","vulnerableRanges":[">=1.0.4, <3.3.0","<1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13"],"patched":["3.3.0","1.0.4-gitspaces-beta.0.20250808064055-21c5ce42ae13"],"from":["GHSA-w469-hj2f-jpr5","GO-2025-3926"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary file write in the Git LFS server component of Harness Open Source (Gitness), where the upload path is not properly sanitized. An authenticated user with access to the Gitness server API can send a crafted Git LFS upload request to write files to any location on the file system, potentially compromising the server, and users of Git LFS are affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:56Z"},"euvd":{"id":"EUVD-2025-26231","exploited":false,"provenance":"source"}}