Skip to main content

Discuz! X5.0 CVE-2026-49952

| EUVDEUVD-2026-36792 CRITICAL
Reusing a Nonce, Key Pair in Encryption (CWE-323)
2026-06-15 VulnCheck GHSA-mx47-h32c-x878
9.3
CVSS 4.0 · Vendor: VulnCheck
Share

Severity by source

Vendor (VulnCheck) PRIMARY
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
9.1 CRITICAL

Network-reachable login oracle needs no auth or interaction (AV:N/AC:L/PR:N/UI:N); full DB read/write yields C:H/I:H, and the vendor-assigned 4.0 vector sets VA:N so A:N is retained.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

1
Analysis Generated
Jun 15, 2026 - 19:54 vuln.today

DescriptionCVE.org

Discuz! X5.0 releases 20260320 through 20260501 contains an authentication bypass vulnerability that allows unauthenticated remote attackers to gain unauthorized access to database backup and restore functionality by exploiting a shared cryptographic key between UCenter integration and the database backup API exposed by dbbak.php. Attackers can inject a crafted payload through the username parameter during login to abuse the encryption oracle in logging_ctl::logging_more(), obtain a legitimately signed token, and use it to bypass authorization for database export and import operations, with the additional ability to trigger a race condition to impersonate arbitrary users.

AnalysisAI

Authentication bypass in Discuz! X5.0 releases 20260320 through 20260501 allows unauthenticated remote attackers to access database backup and restore functionality exposed by dbbak.php. The flaw stems from a shared cryptographic key (CWE-323) between UCenter integration and the backup API, which lets an attacker abuse an encryption oracle in logging_ctl::logging_more() to mint legitimately signed authorization tokens, and chain a race condition to impersonate arbitrary users. Publicly available exploit code exists and an upstream fix has been published on Gitee.

Technical ContextAI

Discuz! X5.0 is a widely deployed PHP-based community forum/CMS originally developed by Comsenz/Tencent and now maintained on Gitee. UCenter is Discuz!'s shared user-center subsystem that uses a symmetric secret for cross-application authentication; dbbak.php is the administrative endpoint exposing database export and import. The root cause is CWE-323 (Reusing a Nonce / Key Pair in Encryption): the same cryptographic key is reused across two functionally distinct contexts - UCenter integration and the dbbak backup API. The login flow's logging_ctl::logging_more() encrypts attacker-controlled input from the username parameter using that shared key, turning it into a generic encryption/signing oracle. Because dbbak.php trusts any token signed with the same key, oracle-produced ciphertext is accepted as a valid authorization token, and a TOCTOU-style race during the user lookup lets the attacker pin the resulting session to any chosen identity.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the vendor commit 9962dad52c4c6999dabaf91ecd70377c680ff3c6 from https://gitee.com/Discuz/DiscuzX or upgrade to any tagged X5.0 release built after 20260501 once published. Until the patched build is rolled out, restrict network access to dbbak.php at the web server or WAF layer (for example, block /utility/dbbak.php and any UCenter API paths from the public internet and allow them only from administrator source IPs); this disables remote backup/restore from the UI and any automation that hits those endpoints, so schedule backups via the CLI or a maintenance VLAN instead. Rotate the UCenter authentication key (UC_KEY) and force re-login of all sessions after patching, because any token minted via the oracle before the fix remains cryptographically valid; rotation will break existing UCenter-integrated apps until they are reconfigured. Review database backup directories for unexpected exports and restored content as an indicator of prior abuse, and consult the research write-up at https://karmainsecurity.com/chaining-bugs-in-discuz-from-race-condition-to-rce and advisory https://karmainsecurity.com/KIS-2026-09 for detection guidance.

More in PHP

View all
CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-46506 CRITICAL POC
10.0 May 13

NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

Share

CVE-2026-49952 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy