Inefficient Regular Expression Complexity Affecting libcrypt-nss package, versions <0:2.26-62.amzn2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
3.91% (89th 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-AMZN2-LIBCRYPTNSS-3109870
  • published9 Nov 2022
  • disclosed26 Feb 2019

Introduced: 26 Feb 2019

CVE-2009-5155  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 libcrypt-nss to version 0:2.26-62.amzn2 or higher.
This issue was patched in ALAS2-2022-1869.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libcrypt-nss package and not the libcrypt-nss package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

In the GNU C Library (aka glibc or libc6) before 2.28, parse_reg_exp in posix/regcomp.c misparses alternatives, which allows attackers to cause a denial of service (assertion failure and application exit) or trigger an incorrect result by attempting a regular-expression match.