Skip to content
Fencer Intel
high 7.5

CVE-2013-6420 in the critical feed json

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 12y ago modified 4mo ago also EUVD-2013-6233

cvss
7.5
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
35.6%
EPSS 35.6% chance of exploitation in 30 days, percentile 98%
public exploits
1
Exploit-DB

Summary

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.

Patch / fix

  • php RHEL 5 5.1.6-43.el5_10
  • php-gd RHEL 5 5.1.6-43.el5_10
  • php-cli RHEL 5 5.1.6-43.el5_10
  • php-dba RHEL 5 5.1.6-43.el5_10
  • php-pdo RHEL 5 5.1.6-43.el5_10
  • php-xml RHEL 5 5.1.6-43.el5_10
  • php-imap RHEL 5 5.1.6-43.el5_10
  • php-ldap RHEL 5 5.1.6-43.el5_10

red hat advisories RHSA-2013:1814RHSA-2013:1815RHSA-2013:1813RHSA-2013:1826RHSA-2013:1825RHSA-2013:1824

  • php7 openSUSE Tumbleweed 7.0.14-1.4
  • php5 openSUSE Tumbleweed 5.6.28-1.1
  • php8 openSUSE Tumbleweed 8.0.11-1.1

opensuse advisories openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1openSUSE-SU-2024:11169-1

Is CVE-2013-6420 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2013-6420 updated cvss 7.5

php: memory corruption in openssl_x509_parse()

  • Red Hat OpenShift Enterprise 1 php Red Hat OpenShift Enterprise 2 php Red Hat Software Collections php55-php, php55-php-gd, php55-php-cli, php55-php-dba, php55-php-fpm, php55-php-gmp, +20 more
    affected: no fix available
  • Red Hat Enterprise Linux (v. 5 server) php 5.1.6-43.el5_10, php53 5.3.3-22.el5_10, php-gd 5.1.6-43.el5_10, php-cli 5.1.6-43.el5_10, php-dba 5.1.6-43.el5_10, php-pdo 5.1.6-43.el5_10, +32 more
    fixed: vendor fix RHSA-2013:1814
  • Red Hat Enterprise Linux AS (v. 3 ELS) php 4.3.2-57.ent, php-imap 4.3.2-57.ent, php-ldap 4.3.2-57.ent, php-odbc 4.3.2-57.ent, php-mysql 4.3.2-57.ent, php-pgsql 4.3.2-57.ent Red Hat Enterprise Linux AS (v. 4 ELS) php 4.3.9-3.37.el4.1, php-gd 4.3.9-3.37.el4.1, php-imap 4.3.9-3.37.el4.1, php-ldap 4.3.9-3.37.el4.1, php-odbc 4.3.9-3.37.el4.1, php-pear 4.3.9-3.37.el4.1, +7 more
    fixed: vendor fix RHSA-2013:1826
  • Red Hat Enterprise Linux Compute Node EUS (v. 6.2) php 5.3.3-3.el6_2.11, php-cli 5.3.3-3.el6_2.11, php-common 5.3.3-3.el6_2.11 Red Hat Enterprise Linux Compute Node EUS (v. 6.3) php 5.3.3-14.el6_3.3, php-cli 5.3.3-14.el6_3.3, php-common 5.3.3-14.el6_3.3 Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.2) php 5.3.3-3.el6_2.11, php-gd 5.3.3-3.el6_2.11, php-dba 5.3.3-3.el6_2.11, php-pdo 5.3.3-3.el6_2.11, php-xml 5.3.3-3.el6_2.11, php-zts 5.3.3-3.el6_2.11, +17 more Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.3) php 5.3.3-14.el6_3.3, php-gd 5.3.3-14.el6_3.3, php-dba 5.3.3-14.el6_3.3, php-pdo 5.3.3-14.el6_3.3, php-xml 5.3.3-14.el6_3.3, php-zts 5.3.3-14.el6_3.3, +17 more Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.4) php 5.3.3-23.el6_4.1, php-gd 5.3.3-23.el6_4.1, php-dba 5.3.3-23.el6_4.1, php-fpm 5.3.3-23.el6_4.1, php-pdo 5.3.3-23.el6_4.1, php-xml 5.3.3-23.el6_4.1, +18 more
    fixed: vendor fix RHSA-2013:1824
  • Red Hat Enterprise Linux Desktop Optional (v. 6) php 5.3.3-27.el6_5, php-gd 5.3.3-27.el6_5, php-cli 5.3.3-27.el6_5, php-dba 5.3.3-27.el6_5, php-fpm 5.3.3-27.el6_5, php-pdo 5.3.3-27.el6_5, +20 more
    fixed: vendor fix RHSA-2013:1813
  • Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php 5.1.6-43.el5_10, php53 5.3.3-22.el5_10, php-gd 5.1.6-43.el5_10, php-cli 5.1.6-43.el5_10, php-dba 5.1.6-43.el5_10, php-pdo 5.1.6-43.el5_10, +32 more
    fixed: vendor fix RHSA-2013:1814
  • Red Hat Enterprise Linux ES (v. 3 ELS) php 4.3.2-57.ent, php-imap 4.3.2-57.ent, php-ldap 4.3.2-57.ent, php-odbc 4.3.2-57.ent, php-mysql 4.3.2-57.ent, php-pgsql 4.3.2-57.ent Red Hat Enterprise Linux ES (v. 4 ELS) php 4.3.9-3.37.el4.1, php-gd 4.3.9-3.37.el4.1, php-imap 4.3.9-3.37.el4.1, php-ldap 4.3.9-3.37.el4.1, php-odbc 4.3.9-3.37.el4.1, php-pear 4.3.9-3.37.el4.1, +7 more
    fixed: vendor fix RHSA-2013:1826
  • Red Hat Enterprise Linux EUS (v. 5.6 server) php 5.1.6-27.el5_6.6, php53 5.3.3-1.el5_6.4, php-gd 5.1.6-27.el5_6.6, php-cli 5.1.6-27.el5_6.6, php-dba 5.1.6-27.el5_6.6, php-pdo 5.1.6-27.el5_6.6, +32 more Red Hat Enterprise Linux EUS (v. 5.9 server) php 5.1.6-40.el5_9.1, php53 5.3.3-13.el5_9.2, php-gd 5.1.6-40.el5_9.1, php-cli 5.1.6-40.el5_9.1, php-dba 5.1.6-40.el5_9.1, php-pdo 5.1.6-40.el5_9.1, +32 more
    fixed: vendor fix RHSA-2013:1824
show 11 more
  • Red Hat Enterprise Linux HPC Node (v. 6) php 5.3.3-27.el6_5, php-cli 5.3.3-27.el6_5, php-common 5.3.3-27.el6_5
    fixed: vendor fix RHSA-2013:1813
  • Red Hat Enterprise Linux HPC Node EUS (v. 6.4) php 5.3.3-23.el6_4.1, php-cli 5.3.3-23.el6_4.1, php-common 5.3.3-23.el6_4.1
    fixed: vendor fix RHSA-2013:1824
  • Red Hat Enterprise Linux HPC Node Optional (v. 6) php 5.3.3-27.el6_5, php-gd 5.3.3-27.el6_5, php-dba 5.3.3-27.el6_5, php-fpm 5.3.3-27.el6_5, php-pdo 5.3.3-27.el6_5, php-xml 5.3.3-27.el6_5, +18 more
    fixed: vendor fix RHSA-2013:1813
  • Red Hat Enterprise Linux Long Life (v. 5.3 server) php 5.1.6-23.5.el5_3, php-gd 5.1.6-23.5.el5_3, php-cli 5.1.6-23.5.el5_3, php-dba 5.1.6-23.5.el5_3, php-pdo 5.1.6-23.5.el5_3, php-xml 5.1.6-23.5.el5_3, +12 more
    fixed: vendor fix RHSA-2013:1824
  • Red Hat Enterprise Linux Server (v. 6) php 5.3.3-27.el6_5, php-gd 5.3.3-27.el6_5, php-cli 5.3.3-27.el6_5, php-pdo 5.3.3-27.el6_5, php-xml 5.3.3-27.el6_5, php-ldap 5.3.3-27.el6_5, +6 more
    fixed: vendor fix RHSA-2013:1813
  • Red Hat Enterprise Linux Server EUS (v. 6.2) php 5.3.3-3.el6_2.11, php-gd 5.3.3-3.el6_2.11, php-cli 5.3.3-3.el6_2.11, php-pdo 5.3.3-3.el6_2.11, php-xml 5.3.3-3.el6_2.11, php-ldap 5.3.3-3.el6_2.11, +6 more Red Hat Enterprise Linux Server EUS (v. 6.3) php 5.3.3-14.el6_3.3, php-gd 5.3.3-14.el6_3.3, php-cli 5.3.3-14.el6_3.3, php-pdo 5.3.3-14.el6_3.3, php-xml 5.3.3-14.el6_3.3, php-ldap 5.3.3-14.el6_3.3, +6 more Red Hat Enterprise Linux Server EUS (v. 6.4) php 5.3.3-23.el6_4.1, php-gd 5.3.3-23.el6_4.1, php-cli 5.3.3-23.el6_4.1, php-pdo 5.3.3-23.el6_4.1, php-xml 5.3.3-23.el6_4.1, php-ldap 5.3.3-23.el6_4.1, +6 more
    fixed: vendor fix RHSA-2013:1824
  • Red Hat Enterprise Linux Server Optional (v. 6) php 5.3.3-27.el6_5, php-dba 5.3.3-27.el6_5, php-fpm 5.3.3-27.el6_5, php-zts 5.3.3-27.el6_5, php-imap 5.3.3-27.el6_5, php-intl 5.3.3-27.el6_5, +9 more
    fixed: vendor fix RHSA-2013:1813
  • Red Hat Enterprise Linux Server Optional EUS (v. 6.2) php 5.3.3-3.el6_2.11, php-dba 5.3.3-3.el6_2.11, php-zts 5.3.3-3.el6_2.11, php-imap 5.3.3-3.el6_2.11, php-intl 5.3.3-3.el6_2.11, php-snmp 5.3.3-3.el6_2.11, +8 more Red Hat Enterprise Linux Server Optional EUS (v. 6.3) php 5.3.3-14.el6_3.3, php-dba 5.3.3-14.el6_3.3, php-zts 5.3.3-14.el6_3.3, php-imap 5.3.3-14.el6_3.3, php-intl 5.3.3-14.el6_3.3, php-snmp 5.3.3-14.el6_3.3, +8 more Red Hat Enterprise Linux Server Optional EUS (v. 6.4) php 5.3.3-23.el6_4.1, php-dba 5.3.3-23.el6_4.1, php-fpm 5.3.3-23.el6_4.1, php-zts 5.3.3-23.el6_4.1, php-imap 5.3.3-23.el6_4.1, php-intl 5.3.3-23.el6_4.1, +9 more
    fixed: vendor fix RHSA-2013:1824
  • Red Hat Enterprise Linux Workstation (v. 6) php 5.3.3-27.el6_5, php-gd 5.3.3-27.el6_5, php-cli 5.3.3-27.el6_5, php-pdo 5.3.3-27.el6_5, php-xml 5.3.3-27.el6_5, php-ldap 5.3.3-27.el6_5, +6 more Red Hat Enterprise Linux Workstation Optional (v. 6) php 5.3.3-27.el6_5, php-dba 5.3.3-27.el6_5, php-fpm 5.3.3-27.el6_5, php-zts 5.3.3-27.el6_5, php-imap 5.3.3-27.el6_5, php-intl 5.3.3-27.el6_5, +9 more
    fixed: vendor fix RHSA-2013:1813
  • Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) php54-php 5.4.16-7.el6.1, php54-php-gd 5.4.16-7.el6.1, php54-php-cli 5.4.16-7.el6.1, php54-php-dba 5.4.16-7.el6.1, php54-php-fpm 5.4.16-7.el6.1, php54-php-pdo 5.4.16-7.el6.1, +18 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) php54-php 5.4.16-7.el6.1, php54-php-gd 5.4.16-7.el6.1, php54-php-cli 5.4.16-7.el6.1, php54-php-dba 5.4.16-7.el6.1, php54-php-fpm 5.4.16-7.el6.1, php54-php-pdo 5.4.16-7.el6.1, +18 more
    fixed: vendor fix RHSA-2013:1815
  • Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (EDB-30395)
  2. Published

Exploit prediction

35.64% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • EDB-30395 PHP - 'openssl_x509_parse()' Memory Corruption dos, 2013-12-17
  • sektioneins.de https://www.sektioneins.de/advisories/advisory-012013-php-openssl_x509_parse-memory-corruption-vulnerability.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.