CVE-2026-49954: Discuz! X5.0 Local File Inclusion RCE Vulnerability
Discuz! X5.0 has a vulnerability in certain releases that lets admin accounts install malicious plugins and run arbitrary code on the web server. The flaw combines two weaknesses: a path traversal bug that bypasses input validation during plugin import, and the ability to upload files. When an administrator imports a specially crafted plugin configuration with malicious directory paths, the system fails to properly sanitize the input, allowing those paths to be used in file inclusion operations. This ultimately gives attackers code execution as the web server user.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.2 HIGH · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-98
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-15 / 2026-06-17
NVD description (verbatim)
Discuz! X5.0 releases 20260320 through 20260610 contain a local file inclusion vulnerability that allows authenticated administrators to execute arbitrary code by importing a specially crafted plugin configuration containing path traversal sequences in the directory attribute. Attackers can trigger an exception during plugin installation to bypass sanitization routines, causing malicious paths to be stored unsanitized and subsequently passed to include(), which combined with file upload functionality escalates to arbitrary code execution in the context of the web server user.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-49954 is a local file inclusion (LFI) vulnerability in Discuz! X5.0 releases 20260320 through 20260610. The vulnerability stems from insufficient input validation in the plugin import mechanism. Attackers craft a plugin configuration file with path traversal sequences (e.g., ../) in the directory attribute. During plugin installation, a deliberate exception is triggered that circumvents sanitization routines, allowing the malicious paths to be stored without proper encoding or filtering. When the plugin system subsequently passes this unsanitized path to PHP's include() function, combined with file upload capabilities already present in the application, it results in arbitrary code execution within the web server process context. The vulnerability is classified as CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program).
Business impact
Organizations running affected Discuz! X5.0 installations face risk of complete server compromise if administrative credentials are compromised or if an attacker gains admin access through other means. Since the vulnerability requires high-privilege authentication, the risk is primarily to the availability and integrity of the Discuz! deployment itself. Compromised instances could be used to host malware, deface content, or pivot to other infrastructure. The impact is limited to confidentiality, integrity, and availability of the Discuz! system and potentially downstream systems that trust it.
Affected systems
The vulnerability affects Discuz! X5.0 releases published between March 20, 2026 and June 10, 2026 (inclusive). Only the X5.0 branch is impacted; other major versions require separate assessment. Organizations should identify which Discuz! release versions are currently deployed. The release date nomenclature (YYYYMMDD format) can be cross-referenced against official Discuz! changelogs to determine if your installation falls within the vulnerable window.
Exploitability
While the vulnerability has a network vector (AV:N), it requires high-privilege authentication (PR:H), meaning only admin accounts can exploit it directly. However, if an attacker gains admin credentials through credential compromise, phishing, or lateral movement, exploitation is straightforward: upload a malicious plugin configuration and trigger an exception during import to bypass validation. No user interaction is required once admin access is obtained. The low complexity rating (AC:L) indicates that the exploit path is reliable and does not depend on specific environmental conditions. This is not currently listed as actively exploited in the wild (KEV status: False as of the advisory date).
Remediation
Immediately update Discuz! X5.0 to a release version after June 10, 2026 that includes fixes for this vulnerability. Verify the specific patch version against the official Discuz! vendor advisory. Until patches are applied, restrict admin account access to trusted personnel only, enforce strong password policies, and enable multi-factor authentication for administrative accounts. Monitor admin activity logs for unusual plugin imports or file operations. Consider implementing a Web Application Firewall (WAF) rule that blocks requests containing path traversal sequences (.., ../, etc.) in plugin configuration uploads.
Patch guidance
Check the official Discuz! security advisory and vendor website for the exact patched release version for X5.0. Typically, patches will be released as a version number after 20260610 in the YYYYMMDD naming scheme, or as an explicit security patch release. Before applying patches, back up your Discuz! database and configuration files. Apply patches in a test environment first to verify compatibility with any custom plugins or modifications. After patching, clear browser caches and session data to ensure users receive the updated code.
Detection guidance
Monitor web server logs and Discuz! access logs for admin accounts performing plugin imports, particularly from unusual IP addresses or during off-hours. Look for failed plugin installation attempts that might indicate exploitation attempts triggering the exception-based bypass. Check the Discuz! plugin directory for unexpected or newly installed plugins, especially any with suspicious names or file paths. Use file integrity monitoring on the Discuz! installation directory to detect unauthorized file modifications. Network intrusion detection systems should flag HTTP requests to plugin import endpoints that contain encoded or obfuscated path traversal sequences in POST/multipart data.
Why prioritize this
Despite a HIGH CVSS score (7.2), the requirement for admin-level authentication significantly reduces the attack surface compared to unauthenticated vulnerabilities. Prioritize patching for Discuz! instances exposed to the internet or accessible to untrusted users, and those with weak admin credential hygiene. Organizations with strong administrative access controls and secured admin panels may deprioritize this below critical vulnerabilities, but should still patch within a reasonable maintenance window. The window of affected releases (March-June 2026) is finite, making it easier to identify exposure.
Risk score, explained
The CVSS 3.1 score of 7.2 (HIGH) reflects the full confidentiality, integrity, and availability impact (C:H/I:H/A:H) that code execution grants to an attacker. However, the score is tempered by the requirement for high privileges (PR:H) and no user interaction needed (UI:N). The network attack vector (AV:N) acknowledges that the initial admin compromise could occur remotely, even though the plugin import itself is an authenticated action. The score appropriately reflects a serious but not critical vulnerability for organizations with strong access controls.
Frequently asked questions
Do I need admin access to exploit this vulnerability?
Yes. The vulnerability requires authenticated administrative privileges to import a malicious plugin configuration. If your Discuz! admin accounts are secured with strong passwords and multi-factor authentication, the practical risk is reduced. However, if an attacker compromises admin credentials through phishing, credential reuse, or lateral movement, they can exploit this to gain code execution.
How do I check if my Discuz! installation is vulnerable?
Check your Discuz! X5.0 release version number, which is usually displayed in the admin panel under System Info or in your installation files. If the version is between 20260320 and 20260610 (inclusive), you are vulnerable. Verify the exact version against the official Discuz! changelog. Versions outside this date range or major versions other than X5.0 are not affected by this specific vulnerability.
Can this vulnerability be exploited without uploading a file?
The vulnerability technically requires both path traversal in a plugin configuration and file upload capability. While Discuz! has file upload by default, the core exploit chain centers on the malicious plugin import. File uploads alone do not trigger the vulnerability; the combination of unsanitized include() operations and uploaded files is what enables code execution.
Is there a workaround if I cannot patch immediately?
Yes, as a temporary measure: disable the plugin import feature if not actively used, restrict admin access to a minimal set of trusted users, enforce strong authentication for admin accounts, and monitor access logs for suspicious activity. However, these are stopgaps only—patches should be applied as soon as possible.
This analysis is provided for informational purposes and reflects the vulnerability state as of June 17, 2026. Security assessments should be conducted by qualified professionals. Always verify patch availability and applicability against official vendor advisories before implementing changes. The vulnerability details and affected versions stated here are based on the published CVE record; organizations should confirm their specific Discuz! release version and patch status independently. No exploit code or weaponized proof-of-concept is provided. This document does not constitute legal or compliance advice. Source: NVD (public-domain), retrieved 2026-07-24. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2025-53440HIGHAxiomthemes Confidant PHP Local File Inclusion (LFI) Vulnerability – CVSS 8.1 HIGH
- CVE-2025-58024HIGHUnboundStudio Accordion FAQ Local File Inclusion Vulnerability – CVSS 7.5 HIGH
- CVE-2025-58705HIGHCrafti PHP Local File Inclusion (LFI) Vulnerability – Patch Guide
- CVE-2025-58707HIGHPHP Local File Inclusion in Axiomthemes Spin 1.8
- CVE-2025-58897HIGHAxiomthemes Fermentio PHP Local File Inclusion Vulnerability (CVSS 8.1)
- CVE-2025-68886HIGHandroThemes Cookiteer PHP Local File Inclusion Vulnerability – CVSS 8.1
- CVE-2025-69369HIGHAxiomthemes Racquet File Inclusion Vulnerability (CVSS 8.1)
- CVE-2026-37266HIGHResponsive File Manager 9.14.0 Remote Code Execution via force_download.php