Code Injection in mbed TLS - CVE-2015-5291
Published: November 2, 2015 / Updated: July 23, 2020
mbed TLS
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation in a long hostname to the server name indication (SNI) extension, which is not properly handled when creating a ClientHello message. NOTE: this identifier has been SPLIT per ADT3 due to different affected version ranges. See CVE-2015-8036 for the session ticket issue that was introduced in 1.3.0. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
How to mitigate CVE-2015-5291
Sources
- http://lists.fedoraproject.org/pipermail/package-announce/2015-November/170317.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-October/169625.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-October/169765.html
- http://lists.opensuse.org/opensuse-security-announce/2015-12/msg00013.html
- http://lists.opensuse.org/opensuse-updates/2015-12/msg00119.html
- http://www.debian.org/security/2016/dsa-3468
- https://guidovranken.files.wordpress.com/2015/10/cve-2015-5291.pdf
- https://guidovranken.wordpress.com/2015/10/07/cve-2015-5291/
- https://security.gentoo.org/glsa/201706-18
- https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2015-01