CVE-2013-4248
published 2013-08-18CVE-2013-4248: The openssl_x509_parse function in openssl.c in the OpenSSL module in PHP before 5.4.18 and 5.5.x before 5.5.2 does not properly handle a '\0' character in a…
PriorityP428medium4.3CVSS 2.0
AVNACMAuNCNIPAN
EPSS
3.59%
88.1th percentile
The openssl_x509_parse function in openssl.c in the OpenSSL module in PHP before 5.4.18 and 5.5.x before 5.5.2 does not properly handle a '\0' character in a domain name in the Subject Alternative Name field of an X.509 certificate, which allows man-in-the-middle attackers to spoof arbitrary SSL servers via a crafted certificate issued by a legitimate Certification Authority, a related issue to CVE-2009-2408.
Affected
84 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| php | php | <= 5.4.17 | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
CVSS provenance
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
vendor_redhat5.9MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
PHP vulnerability
vendor_ubuntu·2013-09-05
CVE-2013-4248 PHP vulnerability
Title: PHP vulnerability
Summary: Fraudulent security certificates could allow sensitive information to
be exposed when accessing the Internet.
It was discovered that PHP did not properly handle certificates with NULL
characters in the Subject Alternative Name field. An attacker could exploit
this to perform a machine-in-the-middle attack to view sensitive information or
alter encrypted communications.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
php: hostname check bypassing vulnerability in SSL client
vendor_redhat·2013-08-13·CVSS 5.9
CVE-2013-4248 [MEDIUM] php: hostname check bypassing vulnerability in SSL client
php: hostname check bypassing vulnerability in SSL client
The openssl_x509_parse function in openssl.c in the OpenSSL module in PHP before 5.4.18 and 5.5.x before 5.5.2 does not properly handle a '\0' character in a domain name in the Subject Alternative Name field of an X.509 certificate, which allows man-in-the-middle attackers to spoof arbitrary SSL servers via a crafted certificate issued by a legitimate Certification Authority, a related issue to CVE-2009-2408.
Statement: This issue does not affect the version of php as shipped with Red Hat Enterprise Linux 5 or the version of php54 as shipped with Red Hat Software Collections 1.
Package: php (Red Hat Enterprise Linux 5) - Not affected
Package: php (Red Hat Enterprise Linux 7) - Not affected
Package: php54-php (Red Hat Software C
GHSA
GHSA-hhfm-3287-cc2v: The openssl_x509_parse function in openssl
ghsa_unreviewed·2022-05-17·CVSS 5.9
CVE-2013-4248 [MEDIUM] CWE-20 GHSA-hhfm-3287-cc2v: The openssl_x509_parse function in openssl
The openssl_x509_parse function in openssl.c in the OpenSSL module in PHP before 5.4.18 and 5.5.x before 5.5.2 does not properly handle a '\0' character in a domain name in the Subject Alternative Name field of an X.509 certificate, which allows man-in-the-middle attackers to spoof arbitrary SSL servers via a crafted certificate issued by a legitimate Certification Authority, a related issue to CVE-2009-2408.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2011-4718 CVE-2013-4248 php: various flaws [fedora-all]
bugzilla·2013-08-19·CVSS 6.8
CVE-2011-4718 [MEDIUM] CVE-2011-4718 CVE-2013-4248 php: various flaws [fedora-all]
CVE-2011-4718 CVE-2013-4248 php: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please use the bodhi submission link
noted in the next comment(s). This will include the bug IDs of this
tracking bug as well as the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
Bodhi notes field when available.
Please note: this issue affects multiple supp
Bugzilla
CVE-2013-4248 php: hostname check bypassing vulnerability in SSL client
bugzilla·2013-08-14·CVSS 6.8
CVE-2013-4248 [MEDIUM] CVE-2013-4248 php: hostname check bypassing vulnerability in SSL client
CVE-2013-4248 php: hostname check bypassing vulnerability in SSL client
Similar to Ruby (CVE-2013-4073) and Python (CVE-2013-4238), PHP also suffers from how it checked the hostname's identity when handling certificates that contain hostnames with NULL bytes. An attacker could potentially exploit this flaw to conduct man-in-the-middle attacks to spoof SSL servers. Note that to exploit this issue, an attacker would need to obtain a carefully-crafted certificate signed by an authority that the client trusts.
This has been corrected in upstream git:
http://git.php.net/?p=php-src.git;a=commit;h=dcea4ec698dcae39b7bba6f6aa08933cbfee6755
http://git.php.net/?p=php-src.git;a=commit;h=2874696a5a8d46639d261571f915c493cd875897
While PHP referenced the Ruby CVE, one has not yet been assigned to PHP
Bugzilla
CVE-2009-3291 php: openssl extension: Incorrect verification of SSL certificate with NUL in name
bugzilla·2009-09-18·CVSS 5.9
CVE-2009-3291 [MEDIUM] CVE-2009-3291 php: openssl extension: Incorrect verification of SSL certificate with NUL in name
CVE-2009-3291 php: openssl extension: Incorrect verification of SSL certificate with NUL in name
A method to bypass SSL certificate name vs. host name verification via NUL
('\0') character embedded in X509 certificate's CommonName or subjectAltName
was presented at Black Hat USA 2009:
http://www.blackhat.com/html/bh-usa-09/bh-usa-09-archives.html#Marlinspike
This issue was originally reported for Firefox / NSS, but it affects PHP's
php_openssl_apply_verification_policy() too.
References:
http://www.php.net/ChangeLog-5.php
Upstream patch:
http://svn.php.net/viewvc?view=revision&revision=288329
Discussion:
Created attachment 361656
Local copy of upstream PHP-5.2.11 php_openssl_apply_verification_policy patch
---
This issue affects the versions of php package, as shipped with Red Hat
http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=2874696a5a8d46639d261571f915c493cd875897http://lists.opensuse.org/opensuse-updates/2013-12/msg00125.htmlhttp://lists.opensuse.org/opensuse-updates/2013-12/msg00126.htmlhttp://marc.info/?l=bugtraq&m=141390017113542&w=2http://rhn.redhat.com/errata/RHSA-2013-1307.htmlhttp://rhn.redhat.com/errata/RHSA-2013-1615.htmlhttp://secunia.com/advisories/54478http://secunia.com/advisories/54657http://secunia.com/advisories/55078http://secunia.com/advisories/59652http://support.apple.com/kb/HT6150http://www.debian.org/security/2013/dsa-2742http://www.php.net/ChangeLog-5.phphttp://www.securityfocus.com/bid/61776http://www.securitytracker.com/id/1028924http://www.ubuntu.com/usn/USN-1937-1http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=2874696a5a8d46639d261571f915c493cd875897http://lists.opensuse.org/opensuse-updates/2013-12/msg00125.htmlhttp://lists.opensuse.org/opensuse-updates/2013-12/msg00126.htmlhttp://marc.info/?l=bugtraq&m=141390017113542&w=2http://rhn.redhat.com/errata/RHSA-2013-1307.htmlhttp://rhn.redhat.com/errata/RHSA-2013-1615.htmlhttp://secunia.com/advisories/54478http://secunia.com/advisories/54657http://secunia.com/advisories/55078http://secunia.com/advisories/59652http://support.apple.com/kb/HT6150http://www.debian.org/security/2013/dsa-2742http://www.php.net/ChangeLog-5.phphttp://www.securityfocus.com/bid/61776http://www.securitytracker.com/id/1028924http://www.ubuntu.com/usn/USN-1937-1
2013-08-18
Published