CVE-2025-5981: Arbitrary file write as the OSV-SCALIBR user on the host system via a path traversal vulnerability when using
CVE-2025-5981 is a medium-severity flaw (CVSS 6.5) affecting osv-scalibr. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-5981?
osv-scalibr: upgrade to 0.1.8. Exact commands for each OS are on this page.
Is CVE-2025-5981 being exploited?
CVE-2025-5981 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-5981 affect?
CVE-2025-5981 affects osv-scalibr. Severity is medium (CVSS 6.5). 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
How urgent is CVE-2025-5981?
Priority 26/100. No elevated risk signals yet.