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.
References6
- plugins.trac.wordpress.org/browser/wp-photo-album-plus/trunk/wp…
- plugins.trac.wordpress.org/browser/wp-photo-album-plus/trunk/wp…
- plugins.trac.wordpress.org/browser/wp-photo-album-plus/trunk/wp…
- plugins.trac.wordpress.org/browser/wp-photo-album-plus/trunk/wp…
- plugins.trac.wordpress.org/changeset?reponame=&old=3701613%40wp…
- www.wordfence.com/threat-intel/vulnerabilities/id/693c7554-5122…
Metrics
- CVSS 3.1
-
7.5
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 60 · as of 8 November 2026
- CWE
- CWE-74
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.