Improper Validation of Array Index Affecting nl.basjes.parse.useragent:yauaa package, versions [,7.9.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (41st 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-JAVA-NLBASJESPARSEUSERAGENT-6248230
  • published15 Feb 2024
  • disclosed9 Dec 2022
  • creditUnknown

Introduced: 9 Dec 2022

CVE-2022-23496  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

Upgrade nl.basjes.parse.useragent:yauaa to version 7.9.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Array Index when using the Client Hints analysis feature which can crash due to an ArrayIndexOutOfBoundsException.

Note: Applications that do not use this feature are not affected.

Workaround

Users unable to upgrade can catch and discard any ArrayIndexOutOfBoundsException thrown by the library.

References

CVSS Scores

version 3.1