CVE-2025-5981
MEDIUM 5.7CVSS 4.0OSV-SCALIBR's Container Image Unpacking Vulnerable to Arbitrary File Write via Path Traversal
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.
- Published
- 18 Jun 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cve-coordination@google.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-427
- Also known as
- GHSA-2hcm-q3f4-fjgwGO-2025-3767
- Sources
- NVDJSONOSV GHSA-2hcm-q3f4-fjgwJSONOSV GO-2025-3767JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve-coordination@google.com (Secondary) | CVSS 4.0 | MEDIUM 5.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | osv-scalibrcpe:2.3:a:google:osv-scalibr:*:*:*:*:*:go:*:* |
>= 0.1.3, < 0.1.8 | 0.1.8 | |
| OSV | Go | github.com/google/osv-scalibr | >= 0.1.3, < 0.2.1 | 0.2.1 |
References
- https://github.com/google/osv-scalibr/commit/2444419b1818c2d6917fc3394c947fb3276e9d59 · Patch, WEB, FIX
- https://github.com/google/osv-scalibr/releases/tag/v0.1.8 · Release Notes, 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
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 18 Jun 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 Jun 2025)