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.
Published: 2025-12-18
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Local File Inclusion that can lead to code execution
Action: Immediate Patch
AI Analysis

Impact

A flaw in the NextGEN Gallery WordPress plugin allows an authenticated user with Contributor or higher privileges to supply an absolute file path to the 'template' shortcode parameter. Because the plugin lacks proper path validation, the attacker can cause the server to include arbitrary PHP files, potentially executing malicious code in the WordPress context. The vulnerability may also enable the disclosure of sensitive data and, when combined with an arbitrary file upload capability, could result in remote code execution.

Affected Systems

The vulnerability impacts the NextGEN Gallery plugin for WordPress sold by smub under the name Songoda Audio "Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery." All plugin releases up to and including version 3.59.12 are affected. Users running these versions should verify that they are not running the compromised code base.

Risk and Exploitability

The CVSS score of 8.8 classifies the flaw as critical, and the EPSS score of less than 1% indicates a very low likelihood of exploitation in the wild so far. The attacker must be authenticated and possess at least Contributor role privileges to exploit the flaw, which limits the attack surface to users already able to post content. The vulnerability is not listed in the CISA KEV catalog, but the potential for local file inclusion leading to PHP execution warrants prioritizing a patch when available.

Generated by OpenCVE AI on April 22, 2026 at 16:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the NextGEN Gallery plugin to version 3.59.13 or later, which removes the vulnerable 'template' shortcode handling.
  • If an immediate upgrade is not feasible, disable the 'template' shortcode or restrict its usage by removing the capability from Contributor roles through a role management plugin or custom code.
  • Strengthen file upload controls in WordPress to prevent potential remote code execution via combined LFI and arbitrary file upload paths.

Generated by OpenCVE AI on April 22, 2026 at 16:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 19 Dec 2025 09:30:00 +0000

Type Values Removed Values Added
First Time appeared Smub
Smub nextgen Gallery
Wordpress
Wordpress wordpress
Vendors & Products Smub
Smub nextgen Gallery
Wordpress
Wordpress wordpress

Thu, 18 Dec 2025 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22

Thu, 18 Dec 2025 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-98

Thu, 18 Dec 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 18 Dec 2025 09:30:00 +0000

Type Values Removed Values Added
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.
Title Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.12 - Authenticated (Contributor+) Local File Inclusion via 'template'
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Smub Nextgen Gallery
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T16:34:34.861Z

Reserved: 2025-11-25T02:50:31.614Z

Link: CVE-2025-13641

cve-icon Vulnrichment

Updated: 2025-12-18T14:19:29.940Z

cve-icon NVD

Status : Deferred

Published: 2025-12-18T10:16:10.953

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-13641

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T16:15:21Z

Weaknesses