Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 4.5.2 - Authenticated (Contributor+) Local File Inclusion via Shortcode Attributes
- ID
- WPSEC-2026-1127
- Plugin
- Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery (nextgen-gallery)
- Affected
- all versions before 4.5.3
- Remediation
- Update to 4.5.3 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-98
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-10-16
- Attack surface
- Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery on WPSec AttackSurface
- Fix released
- Published
Description
The NextGEN Gallery plugin for WordPress is vulnerable to Local File Inclusion via gallery shortcode attributes in all versions up to, and including, 4.5.2. Shortcode attributes are passed into the template variable set, which is extract()ed with overwriting enabled immediately before the template include, so an attribute named like the internal template path variable replaces the validated path. This makes it possible for authenticated attackers, with contributor-level access and above, to include and execute arbitrary PHP files on the server, which can be used to bypass access controls, obtain sensitive data, or achieve code execution where files of an executable type can be uploaded or already exist on the server.
References
- https://wpsec.com/vuln/WPSEC-2026-1127/
- https://plugins.svn.wordpress.org/nextgen-gallery/tags/4.5.3/
- https://wordpress.org/plugins/nextgen-gallery/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS