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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | php5 | 5.4.4-14+deb7u7 | DSA-2816-1 |
| Debian 6.0 | php5 | 5.3.3-7+squeeze18 | DSA-2816-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
Exploit-DB 1
- PHP - 'openssl_x509_parse()' Memory Corruption EDB-30395 · dos · Dec 17, 2013
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 11
- RHSA-2013:1826 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2013:1825 Red Hat Security Advisory: php53 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2013:1824 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2013:1814 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2013:1815 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2013:1813 Red Hat Security Advisory: php53 and php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-2816-1 php5 - several Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10290-1 apache2-mod_php7-7.0.14-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10344-1 apache2-mod_php5-5.6.28-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11169-1 php8-8.0.11-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-1283 PHP: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit den Rechten des Dienstes BSI CERT-Bund (WID) · May 23, 2023
References
- DSA-2816 vendor-advisory
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=c1224573c773b6845e83505f717fbf820fc18415
- RHSA-2013:1824 vendor-advisory
- HPSBMU03112 vendor-advisory
- openSUSE-SU-2013:1964 vendor-advisory
- http://forums.interworx.com/threads/8000-InterWorx-Version-5-0-14-Released-on-Beta-Channel%21
- 59652 third-party-advisory
- 64225 vdb-entry
- RHSA-2013:1826 vendor-advisory
- http://support.apple.com/kb/HT6150
- http://www.php.net/ChangeLog-5.php
- RHSA-2013:1815 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1036830
- openSUSE-SU-2013:1963 vendor-advisory
- RHSA-2013:1813 vendor-advisory
- 1029472 vdb-entry
- https://www.sektioneins.de/advisories/advisory-012013-php-openssl_x509_parse-memory-corruption-vulnerability.html
- RHSA-2013:1825 vendor-advisory
- USN-2055-1 vendor-advisory