Summary
CVE-2026-49952 is a critical authentication bypass vulnerability in Discuz! X5.0 (releases 20260320 through 20260501), the most popular PHP-based internet forum platform in China. The flaw allows unauthenticated remote attackers to exploit a shared cryptographic key across unrelated application components to obtain a legitimately signed authorization token, granting unauthorized access to full database export and import operations. The vulnerability carries a CVSS 4.0 score of 9.3 (Critical) with high confidentiality and integrity impact.
Technical details
- Root cause: The global application key (
$_config['security']['authkey']) is reused as the cryptographic key for both UCenter integration and the database backup/restore API. TheUC_KEYin/config/config_ucenter.phpis assigned the same value asauthkey, violating cryptographic isolation principles (CWE-323: Reusing a Nonce, Key Pair in Encryption). - Trigger condition: An attacker sends a crafted login request with a malicious payload injected into the
usernameparameter, accompanied by thelssubmitparameter. This causeslogging_ctl::logging_more()to act as an encryption oracle, encrypting the attacker-controlled input withauthkeyand returning a legitimately signed token. - Attack vector: The signed token is then presented to
/api/db/dbbak.php, the database backup API endpoint reachable unauthenticated over HTTP/HTTPS. Authorization checks are bypassed, granting full database export and import access. - Race condition for user impersonation: During a database import, the
common_membertable is dropped and re-created sequentially. An attacker can exploit this transient state — where a user exists in UCenter but not yet in the primary table — to causeuserlogin()to return status-1, triggering forged session token generation and enabling arbitrary user impersonation. - Escalation to RCE: When chained with a Local File Inclusion (LFI) vulnerability in
/source/app/admin/child/plugins/enable_disable.php, an attacker who has obtained administrator access via the above chain can upload malicious PHP code disguised as an image and include it through path traversal to achieve remote code execution. - No authentication is required at any stage of the primary exploit chain.
Affected software
- Discuz! X5.0, releases 20260320 through 20260501 (date-based versioning)
- Standalone mode installations are confirmed vulnerable
Severity
| Standard | Score | Vector |
|—|—|—|
| CVSS 4.0 | 9.3 (Critical) | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| CVSS 3.1 | 9.1 (Critical) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Mitigation and recommended actions
- Immediate: Upgrade to Discuz! X5.0 release 20260510 (Discuz_X5.0_20260510) or later, released by the vendor on May 10, 2026. The fix is available in the official Discuz! X repository on Gitee.
- If patching is not immediately possible:
- Restrict or block external network access to the
/api/db/dbbak.phpendpoint at the web server or WAF level. - Ensure the database backup/restore API is not reachable from untrusted networks.
- Monitor server logs for unexpected requests to
dbbak.phpor anomalous login attempts with unusual username payloads.
- Restrict or block external network access to the
IONIX Status
The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

