high

CVE-2026-94562

Packagist · nukeviet/nukeviet

Summary

NukeViet CMS: Remote Code Execution via unrestricted custom field validation callback in the `users` module

Severity
high
CVSS
7.2
EPSS
1.0% (p65)
CWE
CWE-94, CWE-470, CWE-749
Also known as
GHSA-hjxg-4v29-j33c
Published
2026-11-30
Updated
2026-11-30

Advisory details

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:

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.

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:

// 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?

Related

Are there any links users can visit to find out more?

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.