SecurityContext

CVE-2025-13641: NextGEN Gallery - Local File Inclusion

  • Cve: CVE-2025-13641
  • Name: NextGEN Gallery - Local File Inclusion
  • 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.
  • Impact: Authenticated contributors can execute arbitrary PHP files, potentially leading to code execution and information disclosure.
  • Remediation: Update to a version later than 3.59.12 or the latest available version.
  • Vulnerability type: file_inclusion
  • Vulnerability impact: remote_code_execution, information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker must have Contributor-level or higher access
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00805
  • Epss percentile: 0.57703
  • Assignee: [email protected]
  • Published at: 2025-12-18T10:16:10Z
  • Age in days: 341
  • Modified at: 2026-06-17T08:34:30Z
  • References total: 4
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-13641
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-98Improper Control of Filename for Include/Require Statement in PHP Program

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://plugins.trac.wordpress.org/browser/nextgen-gallery/trunk/src/DisplayType/Controller.php#L369
https://plugins.trac.wordpress.org/browser/nextgen-gallery/trunk/src/DisplayType/LegacyTemplateLocator.php#L152
https://plugins.trac.wordpress.org/changeset/3415575/nextgen-gallery/trunk/src/DisplayType/LegacyTemplateLocator.php?old=3004370&old_path=nextgen-gallery%2Ftrunk%2Fsrc%2FDisplayType%2FLegacyTemplateLo…
https://www.wordfence.com/threat-intel/vulnerabilities/id/0a01e1c9-67f4-4cc1-b58b-9cc141889d66?source=cve

Text cells longer than 200 characters are cut (…); version ranges never are. The same query as JSON has every cell whole (the path without .md; MCP format: json).

Products

ProductAffectedPlatform boundSourcesUrl
imagely:nextgen_gallery<= 3.59.12nocna_alias/v1/products/imagely/nextgen_gallery

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 1425
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports