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

CVE-2025-13425: OSV-SCALIBR has NULL Pointer Dereference

November 20, 2025 (updated November 27, 2025)

A bug in the filesystem traversal fallback path causes fs/diriterate/diriterate.go:Next() to overindex an empty slice when ReadDir returns nil for an empty directory, resulting in a panic (index out of range) and an application crash (denial of service) in OSV-SCALIBR.

References

  • github.com/advisories/GHSA-f786-75f3-74xj
  • github.com/google/osv-scalibr
  • github.com/google/osv-scalibr/commit/e67c4e198ca099cb7c16957a80f6c5331d90a672
  • nvd.nist.gov/vuln/detail/CVE-2025-13425

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.3.4

Fixed versions

  • 0.3.4

Solution

Upgrade to version 0.3.4 or above.

Impact 3.8 LOW

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

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:52 +0000.