# CVE-2025-5981: Arbitrary File write in OSV-SCALIBR

- Severity: Medium 5.7 (CVSS:4.0, scored by Google) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-06-18T08:28:02.899Z
- Modified: 2026-06-17T09:49:08.930Z
- Also known as: GHSA-2hcm-q3f4-fjgw, GO-2025-3767
- Weaknesses: CWE-22, CWE-427
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Google

## Description

Arbitrary file write as the OSV-SCALIBR user on the host system via a path traversal vulnerability when using OSV-SCALIBR's unpack() function for container images. Particularly, when using the CLI flag --remote-image on untrusted container images.

(As written by CVE List.)

## Affected

- osv-scalibr: from 0.1.3 before 0.1.8
- github.com/google/osv-scalibr (Go): from 0.1.3 before 0.2.1
- google osv-scalibr: from 0.1.3 before 0.1.8

## Every score

- Google: CVSS:4.0 5.7 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/google/osv-scalibr/releases/tag/v0.1.8> (release-notes, web)
- <https://github.com/google/osv-scalibr/commit/2444419b1818c2d6917fc3394c947fb3276e9d59> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5981> (advisory)
- <https://github.com/google/osv-scalibr> (package)
- <https://pkg.go.dev/vuln/GO-2025-3767> (web)
- <https://github.com/advisories/GHSA-2hcm-q3f4-fjgw> (advisory)

## Sources

- CVE List: [CVE-2025-5981](https://www.cve.org/CVERecord?id=CVE-2025-5981), CVE Terms of Use, modified 2025-06-18
- GitHub Advisory Database: [GHSA-2hcm-q3f4-fjgw](https://github.com/advisories/GHSA-2hcm-q3f4-fjgw), CC-BY-4.0, modified 2025-08-07
- Go Vulnerability Database: [GO-2025-3767](https://pkg.go.dev/vuln/GO-2025-3767), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-5981](https://nvd.nist.gov/vuln/detail/CVE-2025-5981), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-5981 · Whole record: https://cve.day/CVE-2025-5981.json · Rebuilt by cve.day 2026-11-25T22:58:59.332Z
