CVE-2013-6420
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…
- 7.5HighCVSS base score
- 35.4%Exploitation in 30 daysEPSS · top 1.5% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list an Exploit-DB entry for it.
Show the exploits1
Exploit-DB1 entry
- PHP - 'openssl_x509_parse()' Memory Corruption (Exploit-DB entry) (opens in a new tab)
EDB-ID 30395dos, phppublished 17 Dec 2013Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By redhat
- 43 days later
· 43 days later
Published
- 11 years later
· 11 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 35.4% · top 1.5% of all CVEs (11 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
n/a
- affected n/a
References
References19
- DSA-2816 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=c1224573c773b6845e83505f717fbf820fc18415 (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2013:1824 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- HPSBMU03112 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- openSUSE-SU-2013:1964 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- http://forums.interworx.com/threads/8000-InterWorx-Version-5-0-14-Released-on-Beta-Channel%21 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 59652 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 64225 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- RHSA-2013:1826 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://support.apple.com/kb/HT6150 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.php.net/ChangeLog-5.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2013:1815 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=1036830 (opens in a new tab)x_refsource_CONFIRMx_transferred
- openSUSE-SU-2013:1963 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- RHSA-2013:1813 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 1029472 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- https://www.sektioneins.de/advisories/advisory-012013-php-openssl_x509_parse-memory-corruption-vulnerability.html (opens in a new tab)x_refsource_MISCx_transferred
- RHSA-2013:1825 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- USN-2055-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2013-6233 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2013-6420)Record last updated .