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
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify exposed Discuz! X5.0 login endpoint
  2. Delivery
    Submit crafted username to login form
  3. Exploit
    Trigger encryption oracle in logging_ctl::logging_more()
  4. Install
    Obtain signed UCenter/dbbak token
  5. C2
    Race condition to impersonate administrator
  6. Execute
    Call dbbak.php to export and re-import database
  7. Impact
    Achieve data theft and RCE

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Nonce/key pair uniqueness
Exploitation Conditions

No special conditions beyond reachability - exploitation requires only network access to a Discuz! X5.0 instance running a build dated 20260320 through 20260501 with the default UCenter integration enabled and dbbak.php reachable (the standard out-of-the-box configuration). No credentials, no user interaction, and no prior foothold are needed; the encryption oracle is reached through the unauthenticated login endpoint and the dbbak.php authorization check accepts any token signed with the shared key. Limiting factors are narrow: the dbbak.php endpoint or admin path must not be blocked by an upstream WAF/reverse-proxy ACL, and full user impersonation (as opposed to bare backup access) additionally requires winning a race condition, which is reliable on networked targets but may need multiple attempts on high-latency links.

Impact

Real-world risk is high and credible. The CVSS:4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VC:H/VI:H (score 9.3) is consistent with the description: a network-reachable login form feeds an encryption oracle that yields admin-level database access without credentials or user interaction. Confidence is reinforced by VulnCheck-reported research with a detailed write-up at karmainsecurity.com chaining the bugs to RCE via database import, plus a vendor commit on Gitee, so POC availability is not theoretical. EPSS and CISA KEV status were not supplied in the input, so widespread mass exploitation cannot be asserted yet - but with public exploit chain documentation, a working patch diff to reverse, and an internet-exposed admin endpoint, this should be treated as imminent-exploitation risk rather than a high-CVSS-but-low-real-risk issue. Availability impact is rated N in the vector, but in practice attacker-controlled database import trivially destroys availability of forum data; defenders should not under-weight this based on VA:N alone.

Exploit ScenarioDerived

An unauthenticated attacker reaches a public Discuz! X5.0 forum's login page and submits a crafted username parameter that coerces logging_ctl::logging_more() to encrypt attacker-chosen plaintext with the shared UCenter key, returning a legitimately signed token in the response or logs. The attacker replays that token against dbbak.php to export the full member database (password hashes, PII) and then re-imports a malicious dump, while simultaneously winning the documented race condition to impersonate an administrator - the karmainsecurity.com write-up explicitly chains these primitives to remote code execution.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

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.

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.

Affected VersionsENISA

Discuz! X5.0 20260320 ≤20260501

Affected Packages

euvd discuz_x5_0 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Discuz gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Executive ViewAI

Why It Matters

Discuz! X5.0 (versions 20260320-20260501) contains a critical authentication bypass that allows unauthenticated attackers to access and control database backup/restore functionality. This exposes customer databases to theft and unauthorized manipulation. The public availability of exploit code creates urgent operational risk for any organization running these versions.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Until patched, restrict network access to dbbak.php via firewall rules, disable external database backup API availability, and implement detailed logging of all backup/restore operations.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Discuz

View all
CVE-2026-49954 HIGH POC
8.6 Jun 15

Authenticated remote code execution in Discuz! X5.0 releases 20260320 through 20260501 allows administrators to chain a

CVE-2024-30884 HIGH POC
7.1 Apr 11

Reflected Cross-Site Scripting (XSS) vulnerability in Discuz!. Rated high severity (CVSS 7.1), this vulnerability is rem

CVE-2026-49953 MEDIUM POC
6.9 Jun 15

CAPTCHA challenge controls in Discuz! X5.0 (releases 20260320-20260501) can be reliably defeated by unauthenticated remo

CVE-2018-5376 MEDIUM POC
6.1 Jan 12

Discuz!. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low a

CVE-2018-5375 MEDIUM POC
6.1 Jan 12

Discuz!. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low a

CVE-2018-5377 CRITICAL
9.8 Jan 12

Discuz!. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low

CVE-2018-10298 MEDIUM POC
5.4 Apr 22

Discuz!. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack complexity. Public exp

CVE-2018-10297 MEDIUM POC
5.4 Apr 22

Discuz!. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack complexity. Public exp

CVE-2018-5331 MEDIUM POC
5.4 Jan 10

Discuz!. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack complexity. Public exp

CVE-2018-5259 HIGH
8.8 Jan 08

Discuz!. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low attack complexity. No vendor pa

CVE-2018-19464 MEDIUM
4.8 Nov 22

Discuz!. Rated medium severity (CVSS 4.8), this vulnerability is remotely exploitable, low attack complexity. No vendor

CVE-2026-105146 LOW
2.0 Oct 04

SQL injection in the Admin Medal Moderation module of Comsenz Discuz! X5.0 affects builds X5.0-20260801, X5.0-20260820 a

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