CVE-2026-94597: NukeViet CMS Remote Code Execution Vulnerability
HIGHCVE-2026-94597 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting NukeViet CMS libraries in the Packagist ecosystem. The issue involves remote code execution via image-upload bypass chain (php short-tag detection bypass + double-extension filename). Remediation is available by upgrading affected packages to version 4.5.12.
CVE-2026-94597 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-94597
To remediate this vulnerability, upgrade all affected NukeViet CMS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade nukeviet/nukeviet to 4.5.12
Upgrade nukeviet/nukeviet to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for nukeviet/nukeviet
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-94597, inspect your project dependencies for NukeViet CMS:
inspect dependencies for nukeviet/nukeviet
Analyze the terminal output to locate any version of NukeViet CMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.12), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In NukeViet CMS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-94597 Affected NukeViet CMS Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nukeviet/nukeviet
|
Packagist |
< 4.5.12
|
4.5.12
|
|
nukeviet/nukeviet
|
Packagist |
≥ 4.6.00
|
|
References
Frequently Asked Questions
What is CVE-2026-94597?
Which NukeViet CMS versions are affected?
What version fixes CVE-2026-94597?
Is nukeviet/nukeviet affected?
What is the CVSS score of CVE-2026-94597?
What CWE is associated with CVE-2026-94597?
How can I check Packagist dependencies for CVE-2026-94597?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2cvj-x8hg-6wcq",
"modified" : "2026-11-30T21:05:01Z",
"published" : "2026-11-30T21:05:01Z",
"aliases" : [ "CVE-2026-94597" ],
"summary" : "NukeViet CMS: Remote Code Execution via image-upload bypass chain (PHP short-tag detection bypass + double-extension filename)",
"details" : "### Impact\n\nThis is a Remote Code Execution (RCE) vulnerability (`CWE-434`) reachable through NukeViet's file-upload pipeline (`NukeViet\\Files\\Upload::save_file()`).\nThe pipeline is used by the admin uploader and by user-facing endpoints: avatar, banner, and comment attachments (when enabled).\n\nAn attacker uploads a valid image (for example a GIF) with PHP code appended after the image data - a polyglot - and passes every upload check by chaining four weaknesses:\n\n1. `verify_image()` scanned only for the `<?php` and `<?=` tags and missed the `<?` short-open tag (`CWE-184`).\n2. The filename sanitizer preserved dots, so `shell.php.jpg` kept its embedded `.php`.\n3. Extension validation inspected only the last extension.\n4. The generated `.htaccess` rule blocked `.php` only at the end of the URI, so `shell.php.jpg` was not blocked (`CWE-184`).\n\nOn servers configured with `short_open_tag = On` and Apache `mod_php` using `AddHandler application/x-httpd-php .php`, the uploaded file is executed as PHP.\nThis yields arbitrary OS command execution as the web-server user (for example `www-data`): full site compromise, disclosure of database credentials, arbitrary file read/write, and pivoting into the internal network or the cloud metadata service.\n\nWho is impacted:\n\n- Any NukeViet 4.6.x site running that Apache/mod_php configuration is exposed to full RCE.\n- Sites on PHP-FPM, `SetHandler` / `FilesMatch \\.php$`, nginx, or OpenLiteSpeed are not exposed to the execution step, but the upload-validation defects still apply as defense-in-depth issues.\n\n### Patches\n\nYes. The issue is fixed in the next release (commit `570307107`).\nThe fix hardens the upload pipeline at the application layer, so protection no longer depends on the web-server configuration:\n\n- `verify_image()` now also detects the `<?` short-open tag. It normalizes the matched snippet to `<?php ` before tokenizing, so detection is independent of the scanning server's `short_open_tag` setting and the polyglot is rejected at upload time.\n- The upload filename sanitizer and the rename endpoint no longer keep dots in the name part, so a stored file can never carry an embedded `.php`.\n- The `.htaccess` rewrite rule now blocks the dangerous extensions anywhere in the path (double-extension included) and also covers `php[0-9]?`, `phtml`, and `phar`.\n\nUsers should upgrade to the patched release.\n\n### Workarounds\n\nThese are mitigations only - the robust fix is to upgrade, because the underlying weakness is in the upload-validation and filename logic, not in the web-server configuration.\n\n- On Apache with `mod_php`, set `php_flag engine off` (or remove the handler with `RemoveHandler`) for the `uploads/` directory.\n- Or migrate to PHP-FPM / `SetHandler` with a `<FilesMatch \"\\.php$\">` rule, so that only files ending in `.php` are ever handed to the interpreter.\n- Disabling `short_open_tag` also prevents the specific short-tag payload.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "nukeviet/nukeviet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.5.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "nukeviet/nukeviet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.6.00"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/security/advisories/GHSA-2cvj-x8hg-6wcq"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-94597"
}, {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/commit/5703071071ddb7400a0704da4c9bb4da6c6ddb23"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nukeviet/nukeviet"
}, {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/releases/tag/4.6.02"
}, {
"type" : "WEB",
"url" : "https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-02-858.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-184", "CWE-434" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-30T21:05:01Z",
"nvd_published_at" : "2026-11-20T19:18:56Z"
}
}