Improper Validation of Array Index Affecting github.com/google/osv-scalibr/fs/diriterate package, versions <0.3.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOOGLEOSVSCALIBRFSDIRITERATE-14101868
  • published23 Nov 2025
  • disclosed20 Nov 2025
  • creditYuvraj Saxena

Introduced: 20 Nov 2025

NewCVE-2025-13425  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

Upgrade github.com/google/osv-scalibr/fs/diriterate to version 0.3.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Array Index in the fs/diriterate/diriterate.go:Next() function. An attacker can cause the application to crash by triggering a filesystem traversal fallback path that leads to an over-indexing of an empty slice when ReadDir returns NIL for an empty directory.

References

CVSS Base Scores

version 4.0
version 3.1