CVE-2021-24119
Description
Mbed TLS 2.24.0 base64 PEM decoding uses a non-constant-time lookup table, enabling side-channel leakage of secret RSA keys in isolated environments like Intel SGX.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Mbed TLS 2.24.0 base64 PEM decoding uses a non-constant-time lookup table, enabling side-channel leakage of secret RSA keys in isolated environments like Intel SGX.
Vulnerability
In Mbed TLS version 2.24.0, the base64 decoding routine used for PEM file parsing employs a non-constant-time lookup table. This implementation allows an attacker to observe memory access patterns during decoding, leaking information about the secret key material being processed [2]. The vulnerability is present in the base64 decode function and is reachable whenever a PEM-encoded private key (e.g., RSA) is loaded. The issue was fixed in Mbed TLS version 2.26.0 [2].
Exploitation
An attacker with system-level access to an isolated execution environment such as Intel SGX can exploit this side channel by single-stepping or monitoring cache timing during the base64 decoding of a PEM file [2]. By tracking which cache lines are accessed during the lookup-table-based decoding, the attacker can infer bits of the secret RSA key. No authentication or user interaction beyond the loading of a PEM key is required; the attacker must be co-located on the same hardware and have the ability to observe microarchitectural state.
Impact
Successful exploitation allows the attacker to recover the full secret RSA key from the PEM file [2]. This leads to a complete compromise of confidentiality and integrity for any cryptographic operations relying on that key, including TLS sessions, code signing, or data encryption. The attack does not require modification of the software or data, only observation of side-channel signals.
Mitigation
The vulnerability is fixed in Mbed TLS version 2.26.0 [2]. Users should upgrade to at least this version. Later releases, including the LTS branch 4.1.0, also contain the fix [1]. No workaround is documented for versions prior to 2.26.0. The CVE is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
7- Trusted Firmware/Mbed TLSdescription
- osv-coords5 versionspkg:rpm/opensuse/mbedtls-2&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/mbedtls&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/mbedtls&distro=openSUSE%20Leap%2015.3pkg:rpm/suse/mbedtls&distro=SUSE%20Package%20Hub%2015%20SP2pkg:rpm/suse/mbedtls&distro=SUSE%20Package%20Hub%2015%20SP3
< 2.27.0-2.1+ 4 more
- (no CPE)range: < 2.27.0-2.1
- (no CPE)range: < 2.16.9-lp152.2.6.1
- (no CPE)range: < 2.16.9-bp153.2.5.1
- (no CPE)range: < 2.16.9-bp152.2.6.1
- (no CPE)range: < 2.16.9-bp153.2.5.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DRRVY7DMTX3ECFNZKDYTSFEG5AI2HBC6/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EYJW7HAW3TDV2YMDFYXP3HD6WRQRTLJW/mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2021/11/msg00021.htmlmitremailing-list
- lists.debian.org/debian-lts-announce/2022/12/msg00036.htmlmitremailing-list
- github.com/ARMmbed/mbedtls/releasesmitre
- github.com/UzL-ITS/util-lookup/blob/main/cve-vulnerability-publication.mdmitre
News mentions
0No linked articles in our index yet.