Vulnerability Description
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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/trunk/wppa-functi
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/trunk/wppa-functi
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/trunk/wppa-photo-
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/trunk/wppa-photo-
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3701613%40wp-photo-al
- https://www.wordfence.com/threat-intel/vulnerabilities/id/693c7554-5122-4527-8a9
FAQ
What is CVE-2026-87909?
CVE-2026-87909 is a vulnerability with a CVSS score of 7.5 (HIGH). 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...
How severe is CVE-2026-87909?
CVE-2026-87909 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-87909?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.