CVE-2026-17545

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

State
Published
Severity
6.9 Medium
Published
Sep 25, 2026
Updated
Sep 25, 2026
Reserved
Jul 27, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:Hphp

Weaknesses

  • CWE-67 Improper handling of windows device names

Affected Products

ProductVersions
PHPPHP Group
  • 8.2.* to before 8.2.34Affected
  • 8.3.* to before 8.3.35Affected
  • 8.4.* to before 8.4.26Affected
  • 8.5.* to before 8.5.11Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.