medium5.7
CVE-2025-5981
OSV-SCALIBR's Container Image Unpacking Vulnerable to Arbitrary File Write via Path Traversal
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/google/osv-scalibr | >= 0.1.3, < 0.2.1 | 0.2.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Osv-Scalibr | from 0.1.3 before 0.1.8 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/google/osv-scalibr/commit/2444419b1818c2d6917fc3394c947fb3276e9d59
- https://github.com/google/osv-scalibr/releases/tag/v0.1.8
- https://github.com/advisories/GHSA-2hcm-q3f4-fjgw
- https://nvd.nist.gov/vuln/detail/CVE-2025-5981
- https://pkg.go.dev/vuln/GO-2025-3767