Buffer overflow in php (Alpine package)



Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2013-6420
CWE-ID CWE-119
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
php (Alpine package)
Operating systems & Components / Operating system package or component

Vendor Alpine Linux Development Team

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Buffer overflow

EUVDB-ID: #VU16076

Risk: High

CVSSv4.0: 8.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber]

CVE-ID: CVE-2013-6420

CWE-ID: CWE-119 - Memory corruption

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when 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. A remote attacker can supply specially crafted X.509 certificates, trigger memory corruption and cause the service to crash or execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Install update from vendor's website.

Vulnerable software versions

php (Alpine package): 5.3.27-r0

CPE2.3 External links

https://git.alpinelinux.org/aports/commit/?id=38d8abaed4fb0dd548f44b775da3f55e98211a95
https://git.alpinelinux.org/aports/commit/?id=ed22ddf559bd35bac99c6e1e1eba26617d5eb5f7
https://git.alpinelinux.org/aports/commit/?id=0b4ce6128edbffc435e4f3e95bc27ffe4ea97e08
https://git.alpinelinux.org/aports/commit/?id=2c199d4b350b8684306b7df7858af39b1943aafb


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###