Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.1
CVE-2025-5981: Google OSV‑SCALIBR can overwrite files when unpacking remote images
CVE-2025-5981 · published 1 year ago
Summary
The OSV‑SCALIBR tool from Google can write files anywhere on the host if it processes an untrusted container image using the --remote-image option. This could let an attacker place or modify files, potentially compromising the system. Update to the latest version and only use images from trusted sources, or avoid the --remote-image flag for unknown images.
What to do
- Update github.com google to version 0.2.1.
- Update google osv-scalibr to version 0.1.8 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| go | github.com |
>= 0.1.3, < 0.2.1 Fix: upgrade to 0.2.1
|
|
| – | osv-scalibr |
>= 0.1.3, < 0.1.8 cpe:2.3:a:google:osv-scalibr:*:*:*:*:*:go:*:* |
Original advisory text
Arbitrary File write in OSV-SCALIBR
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-5981 Vendor Advisory
- https://pkg.go.dev/vuln/GO-2025-3767
- https://github.com/advisories/GHSA-2hcm-q3f4-fjgw
- https://github.com/google/osv-scalibr/releases/tag/v0.1.8 URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5981.j... Vendor Advisory
- https://github.com/google/osv-scalibr/commit/2444419b1818c2d6917fc3394c947fb3276... Patch
- https://github.com/google/osv-scalibr Product
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
7.1
High
Type
CWE-22Path Traversal
CWE-427Uncontrolled Search Path Element
Timeline
Published18 Jun 2025
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta