Buffer overflow in PHP - CVE-2013-6420
Published: November 27, 2018 / Updated: April 7, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when the asn1_time_to_time_t function in ext/openssl/openssl.c in PHP before 5.3.28, 5.4.x before 5.4.23, and 5.5.x before 5.5.7 does not properly parse (1) notBefore and (2) notAfter timestamps in X.509 certificates. A remote attacker can supply specially crafted X.509 certificates, trigger memory corruption and cause the service to crash or execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Scientific Computing
SUSE Linux
Slackware Linux
php5 (Ubuntu package)
php (Alpine package)
dev-lang/php
How to mitigate CVE-2013-6420
php5 (Ubuntu package) - addressed in versions 5.3.2-1ubuntu4.22, 5.3.10-1ubuntu3.9
php (Alpine package) - update to 5.3.28-r0
dev-lang/php - update to 5.5.16
Links to Public Exploits and PoC-codes
External References
Related Security Bulletins
- Ubuntu update for PHP
- Amazon Linux AMI update for php55
- Amazon Linux AMI update for php54
- Amazon Linux AMI update for php
- Slackware Linux update for php
- Red Hat update for php53 and php
- Buffer overflow in php (Alpine package)
- SUSE Linux update for PHP5
- SUSE Linux update for PHP5
- Gentoo update for PHP