Critical Remote Code Execution Vulnerability in mbedtls Package

mbedtls Updated 02 Oct 2025

Summary

13/02/2018
N/A
Yes i
Critical
9.8

ALPINE-CVE-2018-0488: ARM mbed TLS before 1.3.22, before 2.1.10, and before 2.7.0, when the truncated HMAC extension and CBC are used, allows remote attackers to execute arbitrary code or cause a denial of service (heap corruption) via a craf... Affects mbedtls versions < 2.7.0-r0. Fixed in 2.7.0-r0. 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

The mbedtls package is a widely-used cryptographic library that provides secure communication protocols such as TLS and DTLS. It is designed to be lightweight and easy to integrate into various applications, making it popular among developers. However, certain versions of mbedtls are vulnerable to a critical security flaw that can lead to remote code execution, posing significant risks to applications relying on this library for secure communications.

Vulnerability Detail

ARM mbed TLS versions prior to 1.3.22, 2.1.10, and 2.7.0 are susceptible to a vulnerability that arises when the truncated HMAC extension and CBC mode are utilized. This flaw allows remote attackers to execute arbitrary code or cause a denial of service due to heap corruption via a specially crafted application packet within a TLS or DTLS session. The severity of this vulnerability is underscored by its CVSS score of 9.8, indicating a critical risk level.

How To Fix

Minimum fixed version

2.7.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade mbedtls

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

Workaround

If immediate updating is not feasible, consider implementing additional network security measures such as firewalls or intrusion detection systems to mitigate the risk of exploitation until the package can be updated.

Conclusion

The mbedtls package has a critical vulnerability that can lead to severe security risks if not addressed. It is crucial for developers and system administrators to update to the patched version 2.7.0-r0 to safeguard their applications. Additionally, utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for mbedtls →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 9.8, indicating a critical risk level.

Affected versions include mbedtls prior to 1.3.22, 2.1.10, and 2.7.0.

If your application is vulnerable, attackers could execute arbitrary code or cause a denial of service, compromising the security of your application.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Vulert is a service that monitors and alerts in real-time for open-source vulnerabilities in software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for mbedtls.

How To Fix

Minimum fixed version

2.7.0-r0

This is the first release that contains the fix.

sudo apk add --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