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:
NV_IS_SPADMIN) — it is not reachable by a low-privilege admin or a normal user.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.
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H = 7.2 (High)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).
Is there a way for users to fix or remediate the vulnerability without upgrading?
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.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.Are there any links users can visit to find out more?
modules/users/fields.check.php — call_user_func($row_f['func_callback'], $value)modules/users/admin/fields.php — func_callback handling on field saveconfig.php — $global_config['user_field_callbacks']{
"cwe_ids": [
"CWE-470",
"CWE-749",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-30T20:32:58Z",
"nvd_published_at": "2026-11-20T19:18:56Z",
"severity": "HIGH"
}