Off-by-one Error Affecting libtasn1 package, versions <0:4.19.0-1.amzn2023.0.1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.28% (51st 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-AMZN2023-LIBTASN1-5671554
  • published8 Jun 2023
  • disclosed24 Oct 2022

Introduced: 24 Oct 2022

CVE-2021-46848  (opens in a new tab)
CWE-193  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 libtasn1 to version 0:4.19.0-1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2023-201.

NVD Description

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

GNU Libtasn1 before 4.19.0 has an ETYPE_OK off-by-one array size check that affects asn1_encode_simple_der.

CVSS Base Scores

version 3.1