WP Photo Album Plus <= 9.2.09.002 - Authenticated (Subscriber+) Remote Code Execution via Multipart Upload Filename via ImageMagick Argument Injection
Strategic Overview
- Status
- Patched in 9.3.01.003
- Affected Plugin
- WP Photo Album Plus
- Affected Version
<= 9.2.09.002- CVSS
- 7.5High
- Weakness type
- CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CVE
CVE-2026-87909
At a glance
CVE-2026-87909 is a high-severity Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') vulnerability in the WP Photo Album Plus WordPress plugin, affecting versions <= 9.2.09.002. It carries a CVSS score of 7.5 (reachable over the network; high confidentiality, integrity, availability impact). Exploitation requires an authenticated account at Subscriber level or above. The issue is fixed in version 9.3.01.003; sites on affected versions should update now. Disclosed September 2026, reported by daroo.
Vulnerability Overview
The WP Photo Album Plus plugin for WordPress is vulnerable to Remote Code Execution in all versions via the wppa_image_magick function. This is due to insufficient sanitization of the multipart upload filename before concatenation into an ImageMagick command string executed via exec(), with only escapeshellcmd() applied to the whole command rather than quoting individual arguments. This makes it possible for authenticated attackers, with subscriber-level access and above, to execute code on the server. escapeshellcmd() escapes shell metacharacters but does not prevent argument injection because spaces remain as argument separators, and the filename sanitization applied at the database layer is never applied to the physical temporary file path used for ImageMagick processing.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Remediation
Update to version 9.3.01.003, or a newer patched version
How does WordSec protect against this?
An attacker needs Subscriber access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: WP Photo Album Plus 9.3.01.003 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Other vulnerabilities in WP Photo Album Plus
- 10.0CVE-2024-31377: WP Photo Album Plus Arbitrary File Upload
CVE-2024-31377 - 9.9CVE-2024-31286: WP Photo Album Plus Arbitrary File Upload
CVE-2024-31286 - 9.8CVE-2008-0939: WP Photo Album Plus <= 1.1 SQL Injection
CVE-2008-0939 - 9.1CVE-2026-18048: Photo Album Plus Arbitrary File Deletion
CVE-2026-18048 - 7.5CVE-2026-54829: WP Photo Album Plus <= 9.1.13.005 SQL Injection
CVE-2026-54829 - 7.5CVE-2026-6379: WP Photo Album Plus < 9.1.11.001 SQL Injection
CVE-2026-6379 - 7.5CVE-2026-39511: WP Photo Album Plus <= 9.1.08.001 SQL Injection
CVE-2026-39511 - 7.3CVE-2024-10958: WP Photo Album Plus Arbitrary Shortcode Execution
CVE-2024-10958
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C