PHP on Windows: Reserved Device Names Are Not Rejected Before File/Stream I/O which can cause DoS
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in PHP 8.2.34, PHP 8.3.35, PHP 8.4.26 and 1 more.
On Windows, PHP's filesystem and stream APIs do not reject reserved device names such as CON, PRN, AUX, NUL, COM1 to COM9, LPT1 to LPT9, CONIN$ and CONOUT$ when they appear as a component of a path. An attacker-controlled filename therefore reaches CreateFileW() and opens a device instead of the regular file the application expected, which can block or hang the request and exhaust worker processes.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| PHP Group | PHP | >=8.2.* <8.2.34, >=8.3.* <8.3.35, >=8.4.* <8.4.26, >=8.5.* <8.5.11 | 8.2.34, 8.3.35, 8.4.26, 8.5.11 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in PHP, strongest first
Embed
A live severity badge for an advisory, README or ticket