cve.bz

CVE-2021-46848 Off-by-one Error

9.1 criticalExploit referenceEPSS 2.8%Fix available

Critical (9.1). EPSS 2.8% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
2.8% (unchanged from 2.8% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-05-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-193 Off-by-one Error
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-46848 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-46848?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-46848?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-46848 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-46848

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-46848](https://cve.bz/cve/badge/CVE-2021-46848.svg)](https://cve.bz/cve/CVE-2021-46848)

HTML:

<a href="https://cve.bz/cve/CVE-2021-46848"><img src="https://cve.bz/cve/badge/CVE-2021-46848.svg" alt="CVE-2021-46848"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:libtasn1before 4.19.0
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libtasn1-64.13-3+deb10u1DLA-3263-1
Debian12, 13, 14libtasn1-64.19.0-2DEBIAN-CVE-2021-46848
Ubuntu22.04:LTSlibtasn1-64.18.0-4ubuntu0.2UBUNTU-CVE-2021-46848 USN-7954-1
Ubuntu24.04:LTSlibtasn1-64.19.0-3ubuntu0.24.04.2USN-7954-1
Ubuntu25.10libtasn1-64.20.0-2ubuntu0.25.10.1USN-7954-1
UbuntuPro:14.04:LTSlibtasn1-63.4-3ubuntu0.6+esm1UBUNTU-CVE-2021-46848
UbuntuPro:16.04:LTSlibtasn1-64.7-3ubuntu0.16.04.3+esm3UBUNTU-CVE-2021-46848 USN-5707-1
UbuntuPro:18.04:LTSlibtasn1-64.13-2ubuntu0.1~esm1UBUNTU-CVE-2021-46848
UbuntuPro:20.04:LTSlibtasn1-64.16.0-2ubuntu0.1+esm1UBUNTU-CVE-2021-46848
Red Hatenterprise_linux:8::appstreamlibtasn1-devel, libtasn1-tools, libtasn1-debuginfo and 2 more0:4.13-4.el8_7RHSA-2023:0116
Red Hatenterprise_linux:8::baseoslibtasn1, libtasn1-debuginfo, libtasn1-debugsource and 1 more0:4.13-4.el8_7RHSA-2023:0116
Red Hatenterprise_linux:9::appstreamlibtasn1-devel, libtasn1-tools, libtasn1-debuginfo and 2 more0:4.16.0-8.el9_1RHSA-2023:0343
Red Hatenterprise_linux:9::baseoslibtasn1, libtasn1-debuginfo, libtasn1-debugsource and 1 more0:4.16.0-8.el9_1RHSA-2023:0343
Red Hatrhel_eus:8.6::appstreamlibtasn1-devel, libtasn1-tools, libtasn1-debuginfo and 2 more0:4.13-3.el8_6.1RHSA-2024:0427
Red Hatrhel_eus:8.6::baseoslibtasn1, libtasn1-debuginfo, libtasn1-debugsource and 1 more0:4.13-3.el8_6.1RHSA-2024:0427
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 21 morelibtasn14.13-150000.4.8.1SUSE-SU-2022:3784-1
SUSELinux Enterprise Server 12 SP2-BCLlibtasn13.7-13.7.1SUSE-SU-2022:3797-1
SUSELinux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5 and 5 morelibtasn14.9-3.13.1SUSE-SU-2022:3817-1
openSUSELeap 15.3, Leap 15.4, Leap Micro 5.2libtasn14.13-150000.4.8.1SUSE-SU-2022:3784-1
AlmaLinux8libtasn1, libtasn1-devel, libtasn1-tools4.13-4.el8_7ALSA-2023:0116
AlmaLinux9libtasn1, libtasn1-devel, libtasn1-tools4.16.0-8.el9_1ALSA-2023:0343
Rocky Linux8libtasn10:4.13-4.el8_7RLSA-2023:0116
Rocky Linux9libtasn10:4.16.0-8.el9_1RLSA-2023:0343
Alpinev3.14libtasn14.17.0-r1ALPINE-CVE-2021-46848
Alpinev3.15, v3.16libtasn14.18.0-r1ALPINE-CVE-2021-46848
Alpinev3.17, v3.18, v3.19 and 5 morelibtasn14.19-r0ALPINE-CVE-2021-46848
Azure Linux2libtasn14.19.0-1AZL-11318

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw enables access to one additional memory byte, significantly constraining the potential damage an attacker could inflict. For this reason it is rated as having a Moderate impact to Red Hat Offerings.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libtasn1-0:4.13-4.el8_7Fixed 2023-01-12RHSA-2023:0116
Red Hat Enterprise Linux 8.6 Extended Update Supportlibtasn1-0:4.13-3.el8_6.1Fixed 2024-01-25RHSA-2024:0427
Red Hat Enterprise Linux 9libtasn1-0:4.16.0-8.el9_1Fixed 2023-01-23RHSA-2023:0343
Red Hat Enterprise Linux 6libtasn1Not affected
Red Hat Enterprise Linux 7libtasn1Out of support scope
Red Hat Satellite 6libtasn1Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-46848.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON