Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery に脆弱性 — CVE-2026-76012
いま何をすべきか
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery を 4.5.0 以降に更新してください。
影響を受けるバージョン
- 4.4.1 以下のすべて
対象: プラグイン「Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery」(nextgen-gallery)
何が起きるのか
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.4.1 via the legacy_render function. This is due to broken authorization on the Lightroom gallery_edit endpoint combined with mass assignment of gallery path and unrestricted file upload into a registered template directory, whose extension check uses a substring match that accepts sanitized .php_ filenames as valid templates. This makes it possible for authenticated attackers, with custom-level access and above, to execute code on the server. Exploitation requires the authenticated attacker to be the stored author of at least one existing NextGEN gallery, as ownership of that gallery is the sole authorization check gating the mass-assignment and upload steps.
ここから先の選択肢
1. 自分たちで対応する
更新の手順、バックアップの取り方、壊れたときの戻し方をまとめています。
2. いまの制作会社・保守業者に頼む
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery を使っているかどうかを含めて確認を依頼してください。 無料診断を実行すると、そのまま渡せる依頼文を作れます。
3. 相談先がない・自分では難しい
連絡が取れる相手がいない、管理画面に入れない、侵入された疑いがある。 そうした場合はご相談ください。
出典
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/DisplayType/Controller.php#L564
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/DisplayType/LegacyTemplateLocator.php#L142
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L1355
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L1465
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L197
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L45