PHP-CGI OS Command Injection Vulnerability
PHP, specifically Windows-based PHP used in CGI mode, contains an OS command injection vulnerability that allows for arbitrary code execution. This vulnerability is a patch bypass for CVE-2012-1823.
Improper Neutralization of Special Elements used in an OS Command CWE-78
An attacker can make the server run commands of their choosing, which usually means full control of it.
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| PHP Group PHP | Software | from 8.1.0, before 8.1.29; from 8.2.0, before 8.2.20; from 8.3.0, before 8.3.8 | 8.1.29; 8.2.20; 8.3.8 |
| Fedoraproject Fedora | Operating system | 39; 40 | not recorded |
The 9.8 severity score (critical) from NIST, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 3.9 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
4 of the 23 sources NIST lists are patches or advisories from the vendor. 11 explain how the flaw works or include exploit code, so attackers can find instructions easily.