CVE-2025-13425: Github.com/google/osv scalibr OSV-SCALIBR Has NULL Pointer Dereference Vulnerability

LOW
Advisory Identifier: GHSA-f786-75f3-74xj
CWE-476
Published
Advisory Summary

CVE-2025-13425 is a LOW osv-scalibr has null pointer dereference vulnerability (CWE-476: NULL Pointer Dereference) affecting Github.com/google/osv scalibr libraries in the Go ecosystem. The issue involves osv-scalibr has null pointer dereference. Remediation is available by upgrading affected packages to version 0.3.4.

CVE-2025-13425 at a Glance

CVE Identifier CVE-2025-13425
GHSA Identifier GHSA-f786-75f3-74xj
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-476: NULL Pointer Dereference
Affected Product Github.com/google/osv scalibr
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-13425

To remediate this vulnerability, upgrade all affected Github.com/google/osv scalibr dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/google/osv-scalibr fixed: 0.3.4
Upgrade github.com/google/osv-scalibr to 0.3.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/google/osv-scalibr

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-13425, inspect your project dependencies for Github.com/google/osv scalibr:

inspect dependencies for github.com/google/osv-scalibr

Analyze the terminal output to locate any version of Github.com/google/osv scalibr in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. In Github.com/google/osv scalibr, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-13425 Affected Github.com/google/osv scalibr Versions

1 component(s)
Fixed Versions:
0.3.4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/google/osv-scalibr
Go
< 0.3.4
0.3.4

References

Frequently Asked Questions

What is CVE-2025-13425?
CVE-2025-13425 is a security vulnerability in Github.com/google/osv scalibr involving OSV-SCALIBR has NULL Pointer Dereference under CWE-476: NULL Pointer Dereference.
Which Github.com/google/osv scalibr versions are affected?
Affected versions include releases prior to 0.3.4 across affected packages: github.com/google/osv-scalibr.
What version fixes CVE-2025-13425?
Upgrading to 0.3.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/google/osv-scalibr affected?
Yes, github.com/google/osv-scalibr is affected in releases prior to 0.3.4. Upgrade your dependency to 0.3.4 or later.
What CWE is associated with CVE-2025-13425?
CVE-2025-13425 is classified under CWE-476: NULL Pointer Dereference (The product dereferences a pointer that it expects to be valid but is NULL.).
How can I check Go dependencies for CVE-2025-13425?
Run the dependency tree command: 'inspect dependencies for github.com/google/osv-scalibr'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f786-75f3-74xj",
  "modified" : "2025-11-27T08:37:23Z",
  "published" : "2025-11-20T18:31:00Z",
  "aliases" : [ "CVE-2025-13425" ],
  "summary" : "OSV-SCALIBR has NULL Pointer Dereference",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/google/osv-scalibr"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-13425"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/google/osv-scalibr/commit/e67c4e198ca099cb7c16957a80f6c5331d90a672"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-f786-75f3-74xj"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/google/osv-scalibr"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-476" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-20T21:45:51Z",
    "nvd_published_at" : "2025-11-20T16:15:56Z"
  }
}