CWE · MITRE source
CWE-98Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions.
In certain versions and configurations of PHP, this can allow an attacker to specify a URL to a remote location from which the product will obtain the code to execute. In other cases in association with path traversal, the attacker can specify a local file that may contain executable statements that can be parsed by PHP.
Last updated: 14 October 2026 20:41 UTC
OWASP Top 10 for Web (2025)
This weakness contributes to A05:2025 Injection.
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
NIST 800-53 r5 controls PROPOSED for this weakness (0)AI-assisted
These are model PROPOSALS, not graded mappings. They come
from controls_to_cwe_proposals, which carries no grade field at
all; across the CWE pages 1,540 of 1,722 such associations (89%) have never
been graded by anything. The heading said “address” until
2026-09-29, which asserted a relationship the data does not carry.
Graded cross-walks are on the framework map, not here.
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2023-6989 UPD | 9.5 | 9.8 | 0.5657 | 2024-02-05 |
CVE-2025-68645 KEV UPD | 9.2 | 8.8 | 0.4887 | 2025-12-22 |
CVE-2022-4606 UPD | 9.0 | 9.8 | 0.3543 | 2022-12-18 |
CVE-2023-2249 UPD | 8.9 | 8.8 | 0.6081 | 2023-06-09 |
CVE-2024-5762 | 8.7 | 8.1 | 0.7160 | 2024-08-21 |
CVE-2026-87902 KEV | 8.7 | 8.1 | 0.3998 | 2026-09-22 |
CVE-2024-12209 UPD | 8.6 | 9.8 | 0.2322 | 2024-12-08 |
CVE-2024-1600 UPD | 8.3 | 9.3 | 0.3251 | 2024-04-10 |
CVE-2026-0926 UPD | 8.2 | 9.8 | 0.0960 | 2026-02-19 |
CVE-2023-49084 UPD | 8.1 | 8.0 | 0.6445 | 2023-12-21 |
CVE-2023-3452 UPD | 8.0 | 9.8 | 0.0696 | 2023-08-12 |
CVE-2025-4380 UPD | 8.0 | 8.1 | 0.4252 | 2025-07-02 |
CVE-2024-3136 UPD | 7.9 | 9.8 | 0.0502 | 2024-04-09 |
CVE-2024-10571 UPD | 7.9 | 9.8 | 0.0481 | 2024-11-14 |
CVE-2014-9186 UPD | 7.8 | 9.8 | 0.0365 | 2019-04-08 |
CVE-2021-21804 UPD | 7.8 | 9.8 | 0.0370 | 2021-07-16 |
CVE-2022-40089 UPD | 7.8 | 9.8 | 0.0272 | 2022-09-22 |
CVE-2024-9193 UPD | 7.8 | 9.8 | 0.0329 | 2025-02-28 |
CVE-2026-12227 | 7.8 | 9.8 | 0.0287 | 2026-09-24 |
CVE-2024-3806 UPD | 7.7 | 9.8 | 0.0269 | 2024-05-14 |
CVE-2025-52562 UPD | 7.7 | 10.0 | 0.0182 | 2025-06-23 |
CVE-2022-4446 UPD | 7.6 | 9.8 | 0.0135 | 2022-12-13 |
CVE-2024-2411 UPD | 7.6 | 9.8 | 0.0154 | 2024-03-29 |
CVE-2025-14502 UPD | 7.6 | 9.8 | 0.0152 | 2026-01-14 |
CVE-2023-4488 UPD | 7.5 | 9.8 | 0.0109 | 2023-10-20 |