Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/google/osv-scalibr
  4. ›
  5. CVE-2025-5981

CVE-2025-5981: OSV-SCALIBR's Container Image Unpacking Vulnerable to Arbitrary File Write via Path Traversal

June 18, 2025 (updated August 7, 2025)

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

  • github.com/advisories/GHSA-2hcm-q3f4-fjgw
  • github.com/google/osv-scalibr
  • github.com/google/osv-scalibr/commit/2444419b1818c2d6917fc3394c947fb3276e9d59
  • github.com/google/osv-scalibr/releases/tag/v0.1.8
  • nvd.nist.gov/vuln/detail/CVE-2025-5981
  • pkg.go.dev/vuln/GO-2025-3767

Code Behaviors & Features

Detect and mitigate CVE-2025-5981 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.1.3 before 0.2.1

Fixed versions

  • 0.2.1

Solution

Upgrade to version 0.2.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-427: Uncontrolled Search Path Element

Source file

go/github.com/google/osv-scalibr/CVE-2025-5981.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:15 +0000.