Skip to main content
Vulnerability Database/CVE-2026-92115

CVE-2026-92115: WP Photo Album Plus Command Injection RCE

CVE-2026-92115 is a command injection RCE flaw in WP Photo Album Plus plugin for WordPress allowing authenticated attackers to execute arbitrary OS commands. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-92115 Overview

CVE-2026-92115 is an authenticated command injection vulnerability in the WP Photo Album Plus plugin for WordPress, affecting all versions up to and including 9.3.02.002. The flaw resides in the update-photo AJAX action, where the value parameter flows unsanitized into an ImageMagick command executed by exec(). Attackers holding the plugin-defined wppa_upload capability can execute arbitrary operating system commands as the web server user. Because site administrators can grant wppa_upload to lower-privileged WordPress roles through the plugin's Users settings, the pool of potential attackers extends beyond administrators. The vulnerability is tracked under CWE-77: Improper Neutralization of Special Elements used in a Command.

Critical Impact

Authenticated users with the wppa_upload capability can achieve full remote code execution on the underlying WordPress server when ImageMagick is enabled.

Affected Products

  • WP Photo Album Plus plugin for WordPress — all versions up to and including 9.3.02.002
  • WordPress installations where ImageMagick is enabled on the server
  • WordPress sites that have granted the wppa_upload capability to non-administrative roles

Discovery Timeline

  • 2026-10-16 - CVE-2026-92115 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-92115

Vulnerability Analysis

The vulnerability resides in the wppa_image_magick_a() function within the plugin's image processing pipeline. When the update-photo AJAX action is invoked, the value parameter supplied by the authenticated client is passed through wppa_decode() and then concatenated directly into a shell command string. The resulting string is executed by PHP's exec() function against the ImageMagick binary.

The plugin does not wrap the attacker-controlled value with escapeshellarg() or any equivalent neutralization routine. Instead, wppa_decode() performs the opposite of sanitization: it actively restores percent-encoded shell metacharacters, converting %26 back to & and %23 back to #, among others. This behavior allows crafted payloads to survive any upstream filtering and break out of the ImageMagick argument context into the parent shell.

Root Cause

The root cause is unsafe command construction combined with inverted input decoding. The value parameter is treated as trusted content after decoding, even though its contents originate from an authenticated HTTP request. Because wppa_decode() reintroduces shell metacharacters that would otherwise be inert, standard WordPress nonce and capability checks do not prevent exploitation once an attacker holds the wppa_upload capability.

Attack Vector

An authenticated attacker with the wppa_upload capability sends a crafted POST request to the update-photo AJAX endpoint. The attacker encodes shell metacharacters such as &, ;, or | using percent-encoding so they pass through intermediate validation. After wppa_decode() restores the raw metacharacters, the injected payload terminates the ImageMagick argument context and appends arbitrary commands executed as the web server user. Successful exploitation yields remote code execution, enabling webshell deployment, credential theft from wp-config.php, and lateral movement.

For source-level references, see the plugin source code at wppa-ajax.php L2211 and wppa-photo-files.php L859.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-92115

Indicators of Compromise

  • POST requests to admin-ajax.php with action=update-photo containing percent-encoded shell metacharacters such as %26, %23, %7C, or %3B in the value parameter.
  • Unexpected child processes of the web server user (e.g., www-data, apache) spawning shells, curl, wget, nc, or python after ImageMagick (convert, magick) invocations.
  • New or modified PHP files inside the WordPress uploads directory (wp-content/uploads/) following plugin activity.

Detection Strategies

  • Inspect web server access logs for admin-ajax.php requests with the update-photo action issued by non-administrative accounts.
  • Correlate ImageMagick process execution with subsequent shell or network utility processes under the same parent to identify command injection chains.
  • Audit WordPress role assignments for accounts holding the wppa_upload capability and flag unexpected grants to subscriber or contributor roles.

Monitoring Recommendations

  • Enable PHP disable_functions auditing or EDR process telemetry to capture every exec(), system(), and passthru() invocation from the web server process tree.
  • Deploy file integrity monitoring across the WordPress document root, with alerting on new executables or PHP files written by the web server user.
  • Alert on outbound network connections initiated by the web server process to non-business destinations, which often indicate post-exploitation command and control.

How to Mitigate CVE-2026-92115

Immediate Actions Required

  • Upgrade the WP Photo Album Plus plugin to version 9.3.02.003 or later, available from the WordPress plugin repository.
  • Revoke the wppa_upload capability from any role that does not require photo upload access, limiting it to trusted administrators.
  • Review web server, PHP, and WordPress logs for prior exploitation attempts targeting the update-photo AJAX action.

Patch Information

The vendor addressed the issue in WP Photo Album Plus 9.3.02.003. Technical analysis of the fix is documented in the Wordfence Vulnerability Report. Administrators should validate the plugin version in the WordPress admin dashboard after update.

Workarounds

  • Disable the WP Photo Album Plus plugin until it can be upgraded to a patched release.
  • Disable ImageMagick support on the server, as the vulnerable code path requires ImageMagick to be enabled for exploitation.
  • Place a web application firewall rule in front of admin-ajax.php that blocks requests containing percent-encoded shell metacharacters in the value parameter of the update-photo action.
bash
# Example WAF rule concept (ModSecurity) - validate in staging before deployment
SecRule ARGS:action "@streq update-photo" \
    "id:1092115,phase:2,deny,status:403,chain,msg:'CVE-2026-92115 WPPA command injection attempt'"
    SecRule ARGS:value "@rx (%26|%23|%7C|%3B|%60|%24\()" "t:none"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.