CVE-2026-49954: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in Discuz! Discuz! X5.0
Discuz! X5.0 releases 20260320 through 20260501 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.
AI Analysis
Technical Summary
CVE-2026-49954 is a local file inclusion vulnerability in Discuz! X5.0 (releases from 20260320 through 20260501). It arises from improper control of filenames used in include/require statements when importing plugin configurations. Authenticated administrators can import a specially crafted plugin configuration containing path traversal sequences in the directory attribute. During plugin installation, an exception can be triggered that bypasses sanitization, allowing malicious paths to be stored unsanitized and later passed to PHP's include() function. Combined with file upload functionality, this enables arbitrary code execution in the context of the web server user.
Potential Impact
Successful exploitation allows an authenticated administrator to execute arbitrary code on the server running Discuz! X5.0. This can lead to full compromise of the web server environment under the web server user privileges. The vulnerability requires administrator privileges but does not require user interaction and has a network attack vector, making it a significant risk in environments where administrator credentials are compromised or misused.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrator access to trusted personnel only and monitor plugin import activities closely. Avoid importing plugins from untrusted sources. Follow vendor advisories for updates on patches or official mitigations.
CVE-2026-49954: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in Discuz! Discuz! X5.0
Description
Discuz! X5.0 releases 20260320 through 20260501 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.
CVSS v4.0
Score 8.6high
Affected software
pkg:github/discuz/discuz-x5.0Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49954 is a local file inclusion vulnerability in Discuz! X5.0 (releases from 20260320 through 20260501). It arises from improper control of filenames used in include/require statements when importing plugin configurations. Authenticated administrators can import a specially crafted plugin configuration containing path traversal sequences in the directory attribute. During plugin installation, an exception can be triggered that bypasses sanitization, allowing malicious paths to be stored unsanitized and later passed to PHP's include() function. Combined with file upload functionality, this enables arbitrary code execution in the context of the web server user.
Potential Impact
Successful exploitation allows an authenticated administrator to execute arbitrary code on the server running Discuz! X5.0. This can lead to full compromise of the web server environment under the web server user privileges. The vulnerability requires administrator privileges but does not require user interaction and has a network attack vector, making it a significant risk in environments where administrator credentials are compromised or misused.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrator access to trusted personnel only and monitor plugin import activities closely. Avoid importing plugins from untrusted sources. Follow vendor advisories for updates on patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-02T16:30:15.232Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3052e10b89be68888274a7
Added to database: 6/15/2026, 7:30:41 PM
Last enriched: 6/15/2026, 7:45:41 PM
Last updated: 6/16/2026, 6:06:05 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.