Buffer Underrun Vulnerability in Mbed TLS Package: CVE-2024-49195

mbedtls Updated 02 Oct 2025

Summary

15/10/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-49195: Mbed TLS 3.5.x through 3.6.x before 3.6.2 has a buffer underrun in pkwrite when writing an opaque key pair. Affects mbedtls versions < 3.6.2-1. Fixed in 3.6.2-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Mbed TLS is a widely used cryptographic library designed to facilitate secure communication in embedded systems and IoT devices. It provides essential cryptographic functions such as encryption, decryption, and secure key management. The library is known for its lightweight design, making it suitable for resource-constrained environments. However, certain versions of Mbed TLS are vulnerable to a buffer underrun issue, which can compromise the integrity of cryptographic operations.

Vulnerability Detail

The vulnerability identified as CVE-2024-49195 affects Mbed TLS versions 3.5.x through 3.6.x prior to 3.6.2. It involves a buffer underrun in the pkwrite function when writing an opaque key pair. This flaw can lead to unintended behavior, potentially allowing an attacker to exploit the vulnerability to manipulate cryptographic operations. The technical implications include the risk of data leakage or corruption, which can severely impact the security of applications relying on Mbed TLS for cryptographic functions.

How To Fix

Minimum fixed version

3.6.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mbedtls

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using the affected versions of Mbed TLS until they can apply the update. It is advisable to review the application code to ensure that it does not rely on the vulnerable functionality.

Conclusion

In summary, CVE-2024-49195 is a critical vulnerability in Mbed TLS that can lead to severe security implications if not addressed. Users are strongly encouraged to update to the latest version to ensure the integrity of their cryptographic operations and overall application security.

See every vulnerability recorded for mbedtls →

Share this vulnerability

FAQ

CVE-2024-49195 is a vulnerability in Mbed TLS that involves a buffer underrun in the pkwrite function, affecting versions 3.5.x through 3.6.x before 3.6.2.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to analyze your manifest file.

The risks include potential data leakage or corruption, which can compromise the security of applications that rely on Mbed TLS for cryptographic operations.

Yes, a patch is available in version 3.6.2-1 of Mbed TLS. Users should update to this version or later to mitigate the vulnerability.

If immediate updating is not possible, review your application code to ensure it does not use the vulnerable functionality and consider implementing additional security measures.

Related vulnerabilities

Recent vulnerabilities recorded for mbedtls.

How To Fix

Minimum fixed version

3.6.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mbedtls

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback