CVE-2026-17545

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

Published Sep 25, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

PHP’s filesystem and stream APIs on Windows do not reject reserved device names such as CON, PRN, AUX, NUL, COM1‑COM9, LPT1‑LPT9, CONIN$ and CONOUT$ when they appear as part of a file path. As a result the operating system opens the named device instead of the requested file, causing a request to block or hang and eventually exhausting all worker processes. The flaw is a classic filename validation failure, represented by CWE‑66 and CWE‑67.

Affected Systems

The vulnerability affects all PHP releases that run on Windows. No specific version constraints are listed, so any Windows‑enabled PHP installation that has not applied an official fix remains at risk.

Risk and Exploitability

The CVSS score of 6.9 indicates medium severity, and the EPSS score is not available while the vulnerability is not listed in CISA’s KEV catalog, suggesting limited evidence of exploitation. The attack vector is straightforward; an application that forwards an attacker‑controlled filename to PHP’s stream API will trigger the bug, making the flaw easy to exploit in a susceptible environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest PHP release that includes the fix for this issue.
  • Implement strict validation on all user‑supplied filenames to reject Windows reserved device names before handing them to PHP.
  • Restrict file uploads and path handling to trusted directories and enforce isolation, for example by running the application in a container or sandbox.

Generated by OpenCVE AI on September 26, 2026 at 01:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Microsoft
Microsoft windows
Php
Php php
CPEs cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft windows
Php
Php php
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
First Time appeared Php Group
Php Group php
Vendors & Products Php Group
Php Group php
Type Values Removed Values Added
Weaknesses CWE-66
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title PHP on Windows: Reserved Device Names Are Not Rejected Before File/Stream I/O which can cause DoS
Weaknesses CWE-67
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:H'}

Weaknesses
  • CWE-66

    Improper Handling of File Names that Identify Virtual Resources

  • CWE-67

    Improper Handling of Windows Device Names

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 25, 2026, 8:43 PM
Reserved
Jul 27, 2026, 10:15 AM
Status
Analyzed
Published
Sep 25, 2026, 9:17 PM
Modified
Oct 23, 2026, 2:43 PM
Severity
Moderate
Public date
Sep 25, 2026, 8:18 PM