CVE-2026-49954 Discuz! X5.0 Local File Inclusion via enable_disable.php Plugin Directory

High 8.6 Published Updated

Authenticated administrators can achieve arbitrary code execution via path traversal in plugin directory attributes leading to local file inclusion.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-49954?

CVE-2026-49954 is a high-severity path traversal vulnerability in Discuz! X5.0, published on 15 Jun 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-98

Which versions are affected by CVE-2026-49954?

How do I fix CVE-2026-49954?

No fix has been published for CVE-2026-49954 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-49954 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49954 exists.

Sources

Also known as GHSA-prqv-jwmw-qpp3.

Is CVE-2026-49954 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free