CVE-2025-13425: Github.com/google/osv scalibr OSV-SCALIBR Has NULL Pointer Dereference Vulnerability
LOWCVE-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
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.
Upgrade github.com/google/osv-scalibr to 0.3.4
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
CVE-2025-13425 Affected Github.com/google/osv scalibr Versions
1 component(s)| 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?
Which Github.com/google/osv scalibr versions are affected?
What version fixes CVE-2025-13425?
Is github.com/google/osv-scalibr affected?
What CWE is associated with CVE-2025-13425?
How can I check Go dependencies for CVE-2025-13425?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}