GitHub Advisoryadvisory · Go

GHSA-2hcm-q3f4-fjgw OSV-SCALIBR's Container Image Unpacking Vulnerable to Arbitrary File Write via Path Traversal

MEDIUM Published 2025-06-18 Modified 2025-08-07 Official page ↗
Aliases
CVE-2025-5981
Ecosystem
Go
Packages
github.com/google/osv-scalibr
Severity
Moderate
CVSS vector
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
Weaknesses
CWE-22, CWE-427
Reviewed
2025-06-18

Affected packages

• Go github.com/google/osv-scalibr: >= 0.1.3, < 0.2.1 → fixed in 0.2.1

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.

Related

Alias · CVE (1)

  • CVE-2025-5981 Arbitrary file write as the OSV-SCALIBR user on the host system via a path traversal vulnerability when using OSV-SCALIBR's unpack()… vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-427 Uncontrolled Search Path Element weakness

References