CVE-2026-94562: NukeViet CMS Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-hjxg-4v29-j33c
CVSS 7.2
CWE-470 CWE-94 CWE-749
Published
Advisory Summary

CVE-2026-94562 is a HIGH (CVSS 7.2) remote code execution vulnerability (CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')) affecting NukeViet CMS libraries in the Packagist ecosystem. The issue involves remote code execution via unrestricted custom field validation callback in the `users` module. Remediation is available by upgrading affected packages to version 4.6.01.

CVE-2026-94562 at a Glance

CVE Identifier CVE-2026-94562
GHSA Identifier GHSA-hjxg-4v29-j33c
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Affected Product NukeViet CMS
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-94562

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.

nukeviet/nukeviet fixed: 4.6.01
Upgrade nukeviet/nukeviet to 4.6.01
Verify Direct and Transitive Dependencies

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-94562, 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.6.01), 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-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'), where the product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code. 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

### Impact _What kind of vulnerability is it? Who is impacted?_ The `users` module lets an administrator define custom profile fields. When a field uses the `callback` validation type, the supplied function name (`func_callback`) was accepted after only a `function_exists()` check — with **no allow-list and no restriction on which functions may be used**. As a result, a function such as `system`, `exec`, `shell_exec` or `passthru` could be stored as the field's validator. The value is later passed to `call_user_func($func_callback, $value)` in `modules/users/fields.check.php` when the field is submitted (e.g. via `editinfo`, `register`, or admin edit), causing **arbitrary command execution on the server** under the web-server account (e.g. `www-data`). **Type:** Unsafe reflection / code injection leading to OS command execution (RCE). **Who is impacted / preconditions:** - Creating a malicious callback field requires the **users module field-management privilege, which is gated behind super-administrator access (`NV_IS_SPADMIN`)** — it is *not* reachable by a low-privilege admin or a normal user. - Once such a field exists, the callback runs whenever the field is validated (including by unprivileged users), but the trust boundary that is crossed is **super-admin → OS command execution as the web user**, not root and not an anonymous-to-admin escalation. Because exploitation requires an already highly-trusted super-administrator and execution is confined to the unprivileged web account, the real-world severity is **Medium**, not critical. - **CVSS 3.1:** `AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H` = **7.2 (High)** ### Patches _Has the problem been patched? What versions should users upgrade to?_ Yes. Validation of `func_callback` is now enforced against an explicit allow-list at write time. A callback function is only stored when it both exists **and** is declared in a new site configuration whitelist: ```php // config.php $global_config['user_field_callbacks'] = ['your_validator_1', 'your_validator_2']; ``` If the supplied function is not on the list, the callback is discarded and the field falls back to no validation, so a dangerous function such as `system` can no longer be attached to a field through the admin form. The admin field form also shows an on-screen note explaining that a callback must first be declared in `config.php`. Users should upgrade to the patched release of NukeViet 4.6 that includes this change (or apply the corresponding commit). ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ - **Restrict super-administrator accounts.** Only site super-admins can create/modify custom fields; limiting and monitoring these accounts removes the attack surface. - **Audit existing data.** Inspect the module field table (e.g. `nv4_users_field` and the `*_field` table of any module using this feature) for rows where `match_type = 'callback'`, and remove or correct any `func_callback` that is not a legitimate boolean-returning validator (e.g. `system`, `exec`, `shell_exec`, `passthru`, `assert`, `call_user_func`, etc.). This matters even after upgrading, because the fix validates at write time; a malicious value already present in the database must be cleaned manually. - **Harden the runtime.** Disable dangerous PHP functions via `disable_functions` in `php.ini` (e.g. `system,exec,shell_exec,passthru,proc_open,popen`) so that even an attacker-supplied callback cannot spawn OS commands. ### Related _Are there any links users can visit to find out more?_ - Sink: `modules/users/fields.check.php` — `call_user_func($row_f['func_callback'], $value)` - Source / fix location: `modules/users/admin/fields.php` — `func_callback` handling on field save - Configuration whitelist: `config.php` — `$global_config['user_field_callbacks']`

CVE-2026-94562 Affected NukeViet CMS Versions

1 component(s)
Fixed Versions:
4.6.01
Product / Package Ecosystem Affected Versions Fixed Version
nukeviet/nukeviet
Packagist
< 4.6.01
4.6.01

References

Frequently Asked Questions

What is CVE-2026-94562?
CVE-2026-94562 is a security vulnerability in NukeViet CMS involving Remote Code Execution via unrestricted custom field validation callback in the `users` module under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection').
Which NukeViet CMS versions are affected?
Affected versions include releases prior to 4.6.01 across affected packages: nukeviet/nukeviet.
What version fixes CVE-2026-94562?
Upgrading to 4.6.01 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nukeviet/nukeviet affected?
Yes, nukeviet/nukeviet is affected in releases prior to 4.6.01. Upgrade your dependency to 4.6.01 or later.
What is the CVSS score of CVE-2026-94562?
CVE-2026-94562 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-94562?
CVE-2026-94562 is classified under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.).
How can I check Packagist dependencies for CVE-2026-94562?
Run the dependency tree command: 'inspect dependencies for nukeviet/nukeviet'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hjxg-4v29-j33c",
  "modified" : "2026-11-30T20:32:58Z",
  "published" : "2026-11-30T20:32:58Z",
  "aliases" : [ "CVE-2026-94562" ],
  "summary" : "NukeViet CMS: Remote Code Execution via unrestricted custom field validation callback in the `users` module",
  "details" : "### Impact\n\n_What kind of vulnerability is it? Who is impacted?_\n\nThe `users` module lets an administrator define custom profile fields. When a field uses the `callback` validation type, the supplied function name (`func_callback`) was accepted after only a `function_exists()` check — with **no allow-list and no restriction on which functions may be used**.\n\nAs a result, a function such as `system`, `exec`, `shell_exec` or `passthru` could be stored as the field's validator. The value is later passed to `call_user_func($func_callback, $value)` in `modules/users/fields.check.php` when the field is submitted (e.g. via `editinfo`, `register`, or admin edit), causing **arbitrary command execution on the server** under the web-server account (e.g. `www-data`).\n\n**Type:** Unsafe reflection / code injection leading to OS command execution (RCE).\n\n**Who is impacted / preconditions:**\n\n- Creating a malicious callback field requires the **users module field-management privilege, which is gated behind super-administrator access (`NV_IS_SPADMIN`)** — it is *not* reachable by a low-privilege admin or a normal user.\n- Once such a field exists, the callback runs whenever the field is validated (including by unprivileged users), but the trust boundary that is crossed is **super-admin → OS command execution as the web user**, not root and not an anonymous-to-admin escalation.\n\nBecause exploitation requires an already highly-trusted super-administrator and execution is confined to the unprivileged web account, the real-world severity is **Medium**, not critical.\n\n- **CVSS 3.1:** `AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H` = **7.2 (High)**\n\n### Patches\n\n_Has the problem been patched? What versions should users upgrade to?_\n\nYes. Validation of `func_callback` is now enforced against an explicit allow-list at write time. A callback function is only stored when it both exists **and** is declared in a new site configuration whitelist:\n\n```php\n// config.php\n$global_config['user_field_callbacks'] = ['your_validator_1', 'your_validator_2'];\n```\n\nIf the supplied function is not on the list, the callback is discarded and the field falls back to no validation, so a dangerous function such as `system` can no longer be attached to a field through the admin form. The admin field form also shows an on-screen note explaining that a callback must first be declared in `config.php`.\n\nUsers should upgrade to the patched release of NukeViet 4.6 that includes this change (or apply the corresponding commit).\n\n### Workarounds\n\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n- **Restrict super-administrator accounts.** Only site super-admins can create/modify custom fields; limiting and monitoring these accounts removes the attack surface.\n- **Audit existing data.** Inspect the module field table (e.g. `nv4_users_field` and the `*_field` table of any module using this feature) for rows where `match_type = 'callback'`, and remove or correct any `func_callback` that is not a legitimate boolean-returning validator (e.g. `system`, `exec`, `shell_exec`, `passthru`, `assert`, `call_user_func`, etc.). This matters even after upgrading, because the fix validates at write time; a malicious value already present in the database must be cleaned manually.\n- **Harden the runtime.** Disable dangerous PHP functions via `disable_functions` in `php.ini` (e.g. `system,exec,shell_exec,passthru,proc_open,popen`) so that even an attacker-supplied callback cannot spawn OS commands.\n\n### Related\n\n_Are there any links users can visit to find out more?_\n\n- Sink: `modules/users/fields.check.php` — `call_user_func($row_f['func_callback'], $value)`\n- Source / fix location: `modules/users/admin/fields.php` — `func_callback` handling on field save\n- Configuration whitelist: `config.php` — `$global_config['user_field_callbacks']`",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/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.6.01"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nukeviet/nukeviet/security/advisories/GHSA-hjxg-4v29-j33c"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-94562"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nukeviet/nukeviet/commit/1aa773c7feb41ffe95b53501df5a6956002ca61b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nukeviet/nukeviet"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nukeviet/nukeviet/releases/tag/4.6.01"
  }, {
    "type" : "WEB",
    "url" : "https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-01-857.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-470", "CWE-749", "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-30T20:32:58Z",
    "nvd_published_at" : "2026-11-20T19:18:56Z"
  }
}