CVE-2025-5981
JSON

5.7medium

Arbitrary File write in OSV-SCALIBR

Severity
5.7medium CVSS:4.0 by Google
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Google
Also known as
GHSA-2hcm-q3f4-fjgwGO-2025-3767

Description

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

Product or packageVersionsReported by
osv-scalibrfrom 0.1.3 before 0.1.8CVE List
github.com/google/osv-scalibr (Go)from 0.1.3 before 0.2.1GitHub Advisory Database, Go Vulnerability Database
google osv-scalibrfrom 0.1.3 before 0.1.8NVD

All scores

Google5.7medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-22CWE-427

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

Go Vulnerability Database

OSV-SCALIBR's Container Image Unpacking Vulnerable to Arbitrary File Write via Path Traversal in github.com/google/osv-scalibr

NVD (es)

Escritura arbitraria de archivos como usuario OSV-SCALIBR en el sistema host mediante una vulnerabilidad de path traversal al usar la función unpack() de OSV-SCALIBR para imágenes de contenedor. En particular, al usar la opción CLI --remote-image en imágenes de contenedor no confiables.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-5981 changed 2025-06-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-2hcm-q3f4-fjgw changed 2025-08-07CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3767 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-5981 changed 2026-06-17Public domain