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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-06-18 · Modified: 2025-06-18
- Aliases: GHSA-2hcm-q3f4-fjgw, GO-2025-3767
- Record: https://cvemate.com/vulnerability/CVE-2025-5981 · JSON: https://cvemate.com/vulnerability/CVE-2025-5981/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.219%, percentile 13.144%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/google osv-scalibr (Go): ≥ 0.1.3, \< 0.2.1
- google osv-scalibr: ≥ 0.1.3, \< 0.1.8

## References

- <https://github.com/google/osv-scalibr/releases/tag/v0.1.8>
- <https://github.com/google/osv-scalibr/commit/2444419b1818c2d6917fc3394c947fb3276e9d59>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5981>
- <https://github.com/google/osv-scalibr>
- <https://pkg.go.dev/vuln/GO-2025-3767>
- <https://github.com/advisories/GHSA-2hcm-q3f4-fjgw>

---

Data as of 2026-12-05T02:36:48.316Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
