CVE-2026-1463: CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 4.0.3 via the 'template' parameter in gallery shortcodes. This makes it possible for authenticated attackers, with Author-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included.
AI Analysis
Technical Summary
CVE-2026-1463 is a Local File Inclusion vulnerability identified in the NextGEN Gallery plugin for WordPress, specifically affecting all versions up to and including 4.0.3. The vulnerability arises from improper control of the filename used in the PHP include/require statement, classified under CWE-98. The flaw is triggered via the 'template' parameter in gallery shortcodes, which does not properly validate or sanitize input. Authenticated attackers with Author-level access or higher can exploit this to include arbitrary PHP files from the server. If an attacker can upload PHP files (e.g., via other plugin vulnerabilities or upload features), they can execute arbitrary code remotely, leading to full server compromise. The vulnerability does not require user interaction beyond authentication and has a low attack complexity. The CVSS 3.1 score is 8.8 (high), reflecting the network attack vector, low complexity, privileges required, no user interaction, and high impact on confidentiality, integrity, and availability. No official patches have been linked yet, and no known exploits are reported in the wild, but the risk is substantial given the plugin's widespread use in WordPress sites.
Potential Impact
The impact of this vulnerability is severe for organizations using the NextGEN Gallery plugin. Exploitation can lead to remote code execution on the web server, allowing attackers to bypass access controls, steal sensitive data, modify website content, or deploy malware. This can result in website defacement, data breaches, loss of customer trust, and potential lateral movement within the hosting environment. Given WordPress's popularity and the widespread use of NextGEN Gallery for photo galleries, many websites globally are at risk. Attackers with Author-level access, which is a relatively low privilege level in WordPress, can leverage this flaw, increasing the attack surface. The vulnerability could also be chained with other vulnerabilities (e.g., file upload flaws) to escalate privileges and fully compromise affected systems.
Mitigation Recommendations
Organizations should immediately upgrade the NextGEN Gallery plugin to a version that addresses this vulnerability once available. Until a patch is released, administrators should restrict Author-level user capabilities to trusted users only and consider temporarily disabling or removing the plugin if feasible. Implementing Web Application Firewall (WAF) rules to detect and block suspicious requests targeting the 'template' parameter can reduce exploitation risk. Additionally, hardening file upload mechanisms to prevent uploading executable PHP files and restricting PHP execution in upload directories can mitigate the impact. Regularly auditing user roles and permissions to minimize unnecessary Author or higher privileges is critical. Monitoring logs for unusual access patterns related to gallery shortcodes or file inclusions is recommended to detect potential exploitation attempts early.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, India, Brazil, Japan, Netherlands, Italy, Spain
CVE-2026-1463: CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
Description
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 4.0.3 via the 'template' parameter in gallery shortcodes. This makes it possible for authenticated attackers, with Author-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included.
AI-Powered Analysis
Technical Analysis
CVE-2026-1463 is a Local File Inclusion vulnerability identified in the NextGEN Gallery plugin for WordPress, specifically affecting all versions up to and including 4.0.3. The vulnerability arises from improper control of the filename used in the PHP include/require statement, classified under CWE-98. The flaw is triggered via the 'template' parameter in gallery shortcodes, which does not properly validate or sanitize input. Authenticated attackers with Author-level access or higher can exploit this to include arbitrary PHP files from the server. If an attacker can upload PHP files (e.g., via other plugin vulnerabilities or upload features), they can execute arbitrary code remotely, leading to full server compromise. The vulnerability does not require user interaction beyond authentication and has a low attack complexity. The CVSS 3.1 score is 8.8 (high), reflecting the network attack vector, low complexity, privileges required, no user interaction, and high impact on confidentiality, integrity, and availability. No official patches have been linked yet, and no known exploits are reported in the wild, but the risk is substantial given the plugin's widespread use in WordPress sites.
Potential Impact
The impact of this vulnerability is severe for organizations using the NextGEN Gallery plugin. Exploitation can lead to remote code execution on the web server, allowing attackers to bypass access controls, steal sensitive data, modify website content, or deploy malware. This can result in website defacement, data breaches, loss of customer trust, and potential lateral movement within the hosting environment. Given WordPress's popularity and the widespread use of NextGEN Gallery for photo galleries, many websites globally are at risk. Attackers with Author-level access, which is a relatively low privilege level in WordPress, can leverage this flaw, increasing the attack surface. The vulnerability could also be chained with other vulnerabilities (e.g., file upload flaws) to escalate privileges and fully compromise affected systems.
Mitigation Recommendations
Organizations should immediately upgrade the NextGEN Gallery plugin to a version that addresses this vulnerability once available. Until a patch is released, administrators should restrict Author-level user capabilities to trusted users only and consider temporarily disabling or removing the plugin if feasible. Implementing Web Application Firewall (WAF) rules to detect and block suspicious requests targeting the 'template' parameter can reduce exploitation risk. Additionally, hardening file upload mechanisms to prevent uploading executable PHP files and restricting PHP execution in upload directories can mitigate the impact. Regularly auditing user roles and permissions to minimize unnecessary Author or higher privileges is critical. Monitoring logs for unusual access patterns related to gallery shortcodes or file inclusions is recommended to detect potential exploitation attempts early.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-01-27T06:46:59.960Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69bad9b2771bdb1749b2409e
Added to database: 3/18/2026, 4:58:26 PM
Last enriched: 3/18/2026, 5:12:59 PM
Last updated: 3/18/2026, 7:16:12 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.