Home

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 Reserved 2025-11-25 | Published 2025-12-18 | Updated 2025-12-18 | Assigner Wordfence




HIGH: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem types

CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Product status

Default status
unaffected

* (semver)
affected

Timeline

2025-11-25:Vendor Notified
2025-12-17:Disclosed

Credits

Athiwat Tiprasaharn finder

References

www.wordfence.com/...-67f4-4cc1-b58b-9cc141889d66?source=cve

plugins.trac.wordpress.org/...Type/LegacyTemplateLocator.php

plugins.trac.wordpress.org/...src/DisplayType/Controller.php

plugins.trac.wordpress.org/...pe%2FLegacyTemplateLocator.php

cve.org (CVE-2025-13641)

nvd.nist.gov (CVE-2025-13641)

Download JSON

Data based on CVE®. Copyright © 1999-2025, The MITRE Corporation. All rights reserved.