Skip to content

CVE-2025-13641 Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.12 - Authenticated (Contributor+) Local File Inclusion via 'template'

HighCVSS 8.8 EPSS 0.80%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
PHPWordPress

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, 3.59.12 via the 'template' shortcode parameter. This is due to insufficient path validation that allows absolute paths to be provided. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary PHP files on the server, bypassing web server restrictions like .htaccess. Successful exploitation could lead to information disclosure, code execution in the WordPress context, and potential remote code execution if combined with arbitrary file upload capabilities.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.12 after 3.59.12 Fixed
wordpress nextgen-gallery(WordPress) < 4.0.0 4.0.0 Fixed

Affected products

ProductAffected versionsFixed in
wordpress nextgen-gallery(WordPress) < 4.0.0 4.0.0
smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.12 No fix listed

References