Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 4.0.4 - Authenticated (Author+) Local File Inclusion

8.8
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
CVE CVE-2026-1463
CVSS 8.8 (High)
Publicly Published March 17, 2026
Last Updated March 18, 2026
Researchers Athiwat Tiprasaharn (Jitlada)
Itthidej Aramsri (Boeing777)
Waris Damkham

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.

References

Share

Vulnerability Details for Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery

Software Type Plugin
Software Slug nextgen-gallery (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.0.5, or a newer patched version
Affected Version
  • <= 4.0.4
Patched Version
  • 4.0.5

Recent vulnerabilities in Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery

# Title CVE ID CVSS Researchers Date
1 Photo Gallery, Sliders, Proofing and Themes – NextGEN < 4.2.1 - Authenticated (Admin+) SQL Injection CVE-2026-9059 4.9 Joshua Martinelle May 20, 2026
2 Photo Gallery, Sliders, Proofing and Themes <= 4.2.0 - Insecure Direct Object Reference to Authenticated (Subscriber+) Image Deletion via REST API CVE-2026-6566 4.3 Bao Luu Gia Nguyen May 19, 2026
3 Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.12 - Authenticated (Contributor+) Local File Inclusion via 'template' CVE-2025-13641 8.8 Athiwat Tiprasaharn (Jitlada) December 17, 2025
4 Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via ThickBox JavaScript Library CVE-2025-2537 6.4 Webbernaut July 3, 2025
5 Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via SimpleLightbox JavaScript Library CVE-2024-5878 6.4 Webbernaut May 19, 2025
6 Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.8 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2024-10545 4.4 Erwan LR February 4, 2025
7 Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via FancyBox JavaScript Library CVE-2024-5020 6.4 Webbernaut December 3, 2024
8 NextGEN Gallery <= 3.39.4 - Authenticated (Administrator+) Stored Cross-Site Scripting CVE-2024-6393 4.4 Dmitrii Ignatyev November 4, 2024
9 NextGEN Gallery <= 3.59.3 - Authenticated (Administrator+) Stored Cross-Site Scripting CVE-2024-39627 4.4 Ibnu Ubaeydillah July 22, 2024
10 Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.2 - Authenticated (Admin+) Stored Cross-Site Scripting via Gallery CVE-2024-5442 4.4 Krugov Artyom June 22, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation