Off-by-one Error Affecting libtasn1-6 package, versions <4.18.0-4ubuntu0.2


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
2.08% (80th 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-UBUNTU2204-LIBTASN16-3062918
  • published31 Jan 2026
  • disclosed24 Oct 2022

Introduced: 24 Oct 2022

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

How to fix?

Upgrade Ubuntu:22.04 libtasn1-6 to version 4.18.0-4ubuntu0.2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libtasn1-6 package and not the libtasn1-6 package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 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