Skip to content
OpenAdvisories
Unscored Public exploit CVE-2013-6420 EUVD-2013-6233GHSA-m6pq-hhvx-694c

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 proper…

Published Dec 17, 2013 · Updated Aug 6, 2024 · Assigned by redhat

Description

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, which allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption) via a crafted certificate that is not properly handled by the openssl_x509_parse function.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 7 php5 5.4.4-14+deb7u7 DSA-2816-1
Debian 6.0 php5 5.3.3-7+squeeze18 DSA-2816-1
ReleasePackageFixed inAdvisory
RHEL 6 php +26 5.3.3-27.el6_5 RHSA-2013:1813
RHEL 5 php +18 5.1.6-43.el5_10 RHSA-2013:1814
RHEL 5 php53 +20 5.3.3-22.el5_10 RHSA-2013:1813
RHEL 1 php54-php +24 5.4.16-7.el6.1 RHSA-2013:1815
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Mission Critical 5 php +18 5.1.6-23.5.el5_3 RHSA-2013:1824
RHEL 6.4 EUS php +26 5.3.3-23.el6_4.1 RHSA-2013:1824
RHEL 6.3 EUS php +25 5.3.3-14.el6_3.3 RHSA-2013:1824
RHEL 6.2 EUS php +25 5.3.3-3.el6_2.11 RHSA-2013:1824
RHEL 5.9 EUS php +18 5.1.6-40.el5_9.1 RHSA-2013:1824
RHEL 5.9 EUS php53 +20 5.3.3-13.el5_9.2 RHSA-2013:1825
RHEL 5.6 EUS php +18 5.1.6-27.el5_6.6 RHSA-2013:1824
RHEL 5.6 EUS php53 +20 5.3.3-1.el5_6.4 RHSA-2013:1825
RHEL 4 ELS php +13 4.3.9-3.37.el4.1 RHSA-2013:1826
RHEL 3 ELS php +6 4.3.2-57.ent RHSA-2013:1826
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php5 5.6.28-1.1 openSUSE-SU-2024:10344-1
openSUSE Tumbleweed php7 7.0.14-1.4 openSUSE-SU-2024:10290-1
openSUSE Tumbleweed php8 8.0.11-1.1 openSUSE-SU-2024:11169-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 11

References