Skip to content

Vulnerabilities & Patches

CyberScoop details WPIDE flaw reopening WordPress remote-code path

Versions 3.6.0 through 3.6.4 of the WPIDE WordPress plugin contain an incomplete fix that reopens an unauthenticated remote-code path.

https://breach-signal.com/vulnerabilities/wpide-cve-2026-124251-wordpress-rce-bypass/

Share

Key facts

  • WPIDE is a File Manager and Code Editor plugin for WordPress.
  • WPIDE versions 3.6.0 through 3.6.4 contain an incomplete fix for CVE-2026-57766 that reopens an unauthenticated remote-code-execution path on WordPress sites, tracked as CVE-2026-124251.
  • Greg Otto reported the flaw via Patchstack.
  • The security service in App/Services/Security/Security.php requires the page parameter to equal wpide exactly before checking the nonce.

CyberScoop reported that WPIDE versions 3.6.0 through 3.6.4 contain an incomplete fix that reopens an unauthenticated remote-code-execution path on WordPress sites. The flaw is tracked as CVE-2026-124251 and carries a CVSS score of 8.8 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H and CWE-352. Patchstack reserved the CVE on November 7, 2026 and published it on November 10, 2026. Greg Otto reported the flaw through Patchstack.

WPIDE is a File Manager and Code Editor plugin for WordPress. CVE-2026-57766 was published on July 2, 2026, disclosing unauthenticated CSRF in WPIDE at or below version 3.5.6. CSRF, or cross-site request forgery, tricks a victim’s browser into sending unauthorized requests. Versions at or below 3.5.6 remain exposed to that underlying CSRF issue.

Version 3.6.0 introduced the Snippets feature, which provides the code-execution path. The security service in App/Services/Security/Security.php requires the page parameter to equal wpide exactly before checking the nonce. A nonce is a number used once to validate a request. Every one of the eight plugin admin pages goes through a single bootstrap that starts the security service before handing off to an internal router.

Each of the seven submenu pages uses a slug containing #/: wpide#/settings, wpide#/snippets, wpide#/config-manager, wpide#/db-manager, wpide#/image-editor, wpide#/file-editor and wpide#/file-manager. None of those slugs match the strict gate, so requests naming any submenu slug reach the internal router with no CSRF validation. The page parameter can carry URL-encoded #/ (%23%2F), and WordPress core’s capability gate passes because any logged-in administrator satisfies the gate as the CSRF victim.

WPIDE 3.6.2 switched to an X-CSRF-Token header scheme while retaining the slug-scoped gate, leaving the bypass in place. WPIDE 3.6.2 shipped on October 31, 2026, and source review shows the slug-scoped gate was still present.

No attacker account is required, and any logged-in administrator can serve as the victim. A proof-of-concept page auto-submits a form while an administrator is logged in.

Triggering req=/snippets/save with status set to active makes the server run attacker-controlled PHP while saving. The activation probe stores the snippet at uploads/wpide-snippets/php/0-<hash>.php and runs it through include, falling back to eval() when the directory is not writable. The probe runs before the snippet is stored. Capability checks including wpide_snippets_edit_php default to administrator privileges, so they always pass when the CSRF target is an administrator.

Sending req=/snippets/execute runs a stored snippet again whenever requested, so the code execution remains persistent and can be re-triggered. The Snippets controllers use json_decode($request->getContent()) to treat the incoming body as JSON no matter what Content-Type header arrives. Attackers can use a plain HTML form with enctype=”text/plain” to shape most of a cross-site request body. The stray = from form encoding lands in an unused JSON key.

Researchers confirmed the incomplete fix against 3.6.0 on October 30, 2026 through a negative control, file creation, single-request RCE, and re-execution. They reported it through Patchstack. The bypass was verified against WPIDE 3.6.0 through live tests, and source review confirms 3.6.2 is affected; no version 3.6.3 was released. According to the official CVE-2026-124251 record, every version up to and including 3.6.4 is affected, while 3.6.5 and later are marked unaffected.

One detection indicator is a POST request to /wp-admin/admin.php where the page parameter carries wpide%23%2F or a raw #/. Another detection indicator is a POST request using Content-Type: text/plain whose body looks like JSON. Another detection indicator is a request for req=/snippets/save or req=/snippets/execute that includes an external Origin or Referer header. Unexpected files in uploads/wpide-snippets/php/ such as 0-<hash>.php, or unknown .php/.txt artifacts in wp-content/, plus a snippet in the WPIDE Snippets interface that no administrator knowingly created, also indicate compromise.

Sites should update to WPIDE 3.6.5 or later. Version 3.6.4 applies request verification to every plugin admin page, while 3.6.5 also rejects text/plain and form-encoded bodies for state-changing requests. Version 3.6.4 and 3.6.5 were both released on November 8, 2026. If an immediate update is not possible, sites should deactivate the plugin.

Tests on 3.6.0 showed the injected PHP generated a timestamped proof file when the save request was made. A forged request 21 minutes later re-executed the stored snippet.

On November 8, 2026, WPIDE 3.6.4 shipped with a changelog entry saying it applied request verification to all WPIDE admin pages to halt cross-site request forgery, credited to Greg Otto. Version 3.6.5 shipped the same day and rejects plain-text and form-encoded bodies. CVE-2026-124251 was published on November 10, 2026 with CVSS 8.8 and CWE-352.

Was this helpful?

Join the discussion

Please read our Comment Policy before commenting. First-time comments are held for moderation. By posting a comment you agree to our Terms of Use and Privacy Policy, which explain how your name, email address and comment are used.

Your email address will not be published. Required fields are marked *