PHP vulnerabilities
6 real-world CVEs in PHP code. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2026-61511critical 9.82026
vBulletin runMaths pre-auth eval injection RCE
An unauthenticated template value reaches a character-filtered PHP expression evaluator whose permitted operators can still synthesize a callable function expression before eval executes it.
- CVE-2026-35178critical 9.32026
Workbench malicious timezone cookie dynamic PHP code injection
An overrideable cookie value is loaded without picklist validation and concatenated into a create_function body, so timestamp formatting compiles attacker-controlled PHP syntax.
- CVE-2024-4577critical 9.82024
PHP-CGI Windows Best-Fit argument injection
PHP-CGI checked one byte representation for an option prefix, while Windows later converted a soft hyphen into an ASCII hyphen before option parsing.
- CVE-2019-11043high 8.72019
PHP-FPM PATH_INFO pointer underflow
A malformed FastCGI path can make PATH_INFO shorter than the script-path adjustment, moving a derived pointer before its buffer and enabling an out-of-bounds write.
- CVE-2018-7600critical 9.82018
Drupalgeddon2: render-array callback injection (CVE-2018-7600)
Untrusted request input is merged into a renderable element tree, so an attacker-supplied property beginning with '#' names a callable the renderer then invokes, turning a form submission into unauthenticated remote code execution.
- CVE-2016-5385high 8.12016
httpoxy: the Proxy header becomes HTTP_PROXY
CGI maps an inbound `Proxy` header to `HTTP_PROXY`, colliding with the conventional environment variable for an outbound HTTP proxy. PHP applications and libraries that trusted `getenv('HTTP_PROXY')` could route server-side requests through an attacker-selected proxy.