Skip to content

CVE-2026-17545 PHP on Windows: Reserved Device Names Are Not Rejected Before File/Stream I/O which can cause DoS

MediumCVSS 6.9 EPSS 0.37%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHPUbuntuDebianRed Hat

Description

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.

Upgrade path

6 packages: 3 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/php8.1(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/php8.3(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/php8.5(Ubuntu 26.04) All versions No fix listed No fix yet
PHP < 8.2.34; < 8.3.35; < 8.4.26; < 8.5.11 +4 more 8.2.34, 8.3.35, 8.4.26, 8.5.11 Fixed
PHP(Azure Linux 4.0) < 0:8.4.26-5.azl4 0:8.4.26-5.azl4 Fixed
redhat/php-main(Red Hat hummingbird 1) < 8.5.11-2.hum1 8.5.11-2.hum1 Fixed

Affected products

ProductAffected versionsFixed in
redhat/php-main(Red Hat:hummingbird:1) < 8.5.11-2.hum1 8.5.11-2.hum1
PHP < 8.2.34 8.2.34
PHP < 8.3.35 8.3.35
PHP < 8.4.26 8.4.26
PHP < 8.5.11 8.5.11
ubuntu/php8.1(Ubuntu:22.04) All versions No fix listed
ubuntu/php8.3(Ubuntu:24.04) All versions No fix listed
ubuntu/php8.5(Ubuntu:26.04) All versions No fix listed
PHP >= 8.2.0, < 8.2.34 8.2.34
PHP >= 8.3.0, < 8.3.35 8.3.35
PHP >= 8.4.0, < 8.4.26 8.4.26
PHP >= 8.5.0, < 8.5.11 8.5.11
PHP(Azure Linux:4.0) < 0:8.4.26-5.azl4 0:8.4.26-5.azl4

References