Skip to main content
CVE-2025-52497VulnerabilityPublished Updated

CVE-2025-52497: Mbed mbedtls · Off-by-one Error

Affects Mbed mbedtlsSource CVE Database V5

0

Not known to be exploited · CVSS 4.8 Medium : upgrade to 3.6.4 when convenient.

Data as of 26 Oct 2026, 06:15 UTC

CVSS 3.1 base score
4.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 26% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.6.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade mbed-tls/mbedtls to 3.6.4.

Affected software

ProductAffectedFixed in
GitHubmbed-tls/mbedtlspkg:github/mbed-tls/mbedtlsOther threatsAffected
  • <3.6.4
Fixed in
  • 3.6.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately plan to upgrade Mbed TLS to version 3.6.4 or later once available, as this version addresses the off-by-one buffer underflow. Until patches are deployed, organizations should implement strict input validation and sanitization for PEM files, rejecting untrusted or malformed certificate data before parsing. Network-level controls such as firewall rules and intrusion detection systems should monitor and restrict access to services that accept PEM input from untrusted sources. Employ runtime protections like memory safety tools or address sanitizers during development and testing phases to detect similar memory corruption issues early. For embedded and IoT devices where patching is delayed or difficult, consider isolating affected devices from critical networks and applying compensating controls such as limiting certificate update mechanisms. Regularly audit device firmware and software versions to identify vulnerable instances of Mbed TLS. Additionally, maintain vigilant monitoring for anomalous application crashes or unusual certificate parsing errors that could indicate exploitation attempts.

Description

Mbed TLS before 3.6.4 has a PEM parsing one-byte heap-based buffer underflow, in mbedtls_pem_read_buffer and two mbedtls_pk_parse functions, via untrusted PEM input.

References

Community reviews

Loading reviews…