OS command injection in php (Alpine package)



Risk Critical
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2012-1823
CWE-ID CWE-78
Exploitation vector Network
Public exploit This vulnerability is being exploited in the wild.
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 critical risk vulnerability.

1) OS command injection

EUVDB-ID: #VU4201

Risk: Critical

CVSSv4.0: 9.3 [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:A/U:Red]

CVE-ID: CVE-2012-1823

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: Yes

Description

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

The weakness exists due to error when parsing QUERY_STRING parameters within PHP-CGI-based application (sapi/cgi/cgi_main.c). A remote attacker can send specially crafted HTTP request with query string without the "=" (equals sign) character, inject and execute arbitrary OS commands on vulnerable system with privileges of the web server.

Successful exploitation of the vulnerability results in denial of service or arbitrary code execution on the vulnerable system.

Note: the vulnerability was being actively exploited.

Mitigation

Install update from vendor's website.

Vulnerable software versions

php (Alpine package): 5.2.12-r0 - 5.3.10-r5

CPE2.3 External links

https://git.alpinelinux.org/aports/commit/?id=b1eaed0ba19e987de68c910a1b3fbc25ef12127d
https://git.alpinelinux.org/aports/commit/?id=1f379dc18a10d352941a71e204fbf3fa5327530a
https://git.alpinelinux.org/aports/commit/?id=8ebfedc6f9a11253261d4481f583fe98492267d7
https://git.alpinelinux.org/aports/commit/?id=3094cc97b38c43163f36e8de49b1be8a57f0d7cc


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, a fully functional exploit for this vulnerability is available.



###SIDEBAR###