CVE-2025-13425 Details
Description
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.
A denial-of-service vulnerability has been identified in OSV-SCALIBR due to a bug in the filesystem traversal fallback path. When the ReadDir function returns nil for an empty directory, the diriterate.Next() method overindexes an empty slice, causing a panic from an index-out-of-range error and crashing the application. This issue arises in scenarios where a custom filesystem implementation does not support the fs.ReadDirFile interface, leading to the incorrect assumption that a nil response indicates the presence of files.
Users can update to OSV-SCALIBR version 0.4.0, which includes the necessary fix. Instructions for updating can be found in the OSV-SCALIBR repository on GitHub.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 20, 2025CISA-ADP
Assessed Nov 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/google/osv-scalibr/commit/e67c4e198ca099cb7c16957a80f6c5331d90a672 | [email protected] | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Google OSV-SCALIBR | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 20, 2025 | New CVE Received | [email protected] |
Volerion