GitHub Advisory Database
GHSA-f786-75f3-74xj
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/google/osv-scalibr | All versions before 0.3.4 (fixed in 0.3.4) |