← back
CVE-2025-13641

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

CVSS 8.8 HIGHEPSS 0.7%CWE-98
In short

The NextGEN Gallery WordPress plugin allows users with Contributor access or higher to include and run arbitrary PHP files on the server through a poorly validated 'template' parameter, potentially leading to unauthorized code execution.

Technical detail

Authenticated Local File Inclusion vulnerability in NextGEN Gallery <= 3.59.12 exploitable via the 'template' shortcode parameter due to insufficient path validation allowing absolute paths. Attackers with Contributor+ privileges can include arbitrary PHP files, bypassing server restrictions and achieving code execution within the WordPress context; RCE is possible if combined with file upload functionality.

Summary generated and translated by AI from the official 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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →