NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
HIGH severity

NukeViet CMS: Remote Code Execution via image-upload bypass chain (PHP short-tag detection bypass + double-extension filename)GHSA-2cvj-x8hg-6wcq

HIGHFix: nukeviet/nukeviet@5703071

GHSA-2cvj-x8hg-6wcq is a high-severity (CVSS 7.5) CWE-184 vulnerability in nukeviet/nukeviet. A fix is available for nukeviet/nukeviet — see the affected versions and patch details below.

Also known asCVE-2026-94597
Published
Updated
Affected
2 pkgs
Patched
1 / 2
Exploits
None indexed
Exploitation data as of Nov 30, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-2cvj-x8hg-6wcq.

EPSS Exploitation Probability

via FIRST.org ↗
0.8%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs53th percentile — riskier than 53% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
🐘nukeviet/nukeviet🐘nukeviet/nukeviet

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

Impact

This is a Remote Code Execution (RCE) vulnerability (CWE-434) reachable through NukeViet's file-upload pipeline (NukeViet\Files\Upload::save_file()). The pipeline is used by the admin uploader and by user-facing endpoints: avatar, banner, and comment attachments (when enabled).

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

  1. verify_image() scanned only for the <?php and <?= tags and missed the <? short-open tag (CWE-184).
  2. The filename sanitizer preserved dots, so shell.php.jpg kept its embedded .php.
  3. Extension validation inspected only the last extension.
  4. The generated .htaccess rule blocked .php only at the end of the URI, so shell.php.jpg was not blocked (CWE-184).

On 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. This 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.

Who is impacted:

  • Any NukeViet 4.6.x site running that Apache/mod_php configuration is exposed to full RCE.
  • 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.

Patches

Yes. The issue is fixed in the next release (commit 570307107). The fix hardens the upload pipeline at the application layer, so protection no longer depends on the web-server configuration:

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

Users should upgrade to the patched release.

Workarounds

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

  • On Apache with mod_php, set php_flag engine off (or remove the handler with RemoveHandler) for the uploads/ directory.
  • Or migrate to PHP-FPM / SetHandler with a <FilesMatch "\.php$"> rule, so that only files ending in .php are ever handed to the interpreter.
  • Disabling short_open_tag also prevents the specific short-tag payload.

Affected Packages

2 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistnukeviet/nukevietall versions4.5.12composer require nukeviet/nukeviet:^4.5.12
🐘Packagistnukeviet/nukeviet≥ 4.6.00No fix

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for nukeviet/nukeviet, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update nukeviet/nukeviet to 4.5.12 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-2cvj-x8hg-6wcq is resolved across your whole dependency graph.

  3. Workarounds

    Treat uploaded files as untrusted until proven otherwise: validate the actual content type rather than the supplied extension, store uploads outside the web root on a volume mounted without execute permission, and rename them to server-generated identifiers so an attacker cannot choose the path a request will later resolve.

Frequently Asked Questions

### Impact This is a Remote Code Execution (RCE) vulnerability (`CWE-434`) reachable through NukeViet's file-upload pipeline (`NukeViet\Files\Upload::save_file()`). The pipeline is used by the admin uploader and by user-facing endpoints: avatar, banner, and comment attachments (when enabled). An 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: 1. `verify_image()` scanned only for the `<?php` and `<?=` tags and missed the `<?` short-open tag (`CWE-184`). 2. The filename san
O3 Security · Impact-Aware SCA

Is GHSA-2cvj-x8hg-6wcq in your dependencies?

Find it across Packagist, including transitive dependencies.

NukeViet CMS: Remote Code Execution via image-upload…