CVE-2026-94566: NukeViet Login Lockout Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-ccf2-6mf6-j78j
CVSS 5.3
CWE-307
Published
Advisory Summary

CVE-2026-94566 is a MODERATE (CVSS 5.3) login lockout bypass vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting NukeViet libraries in the Packagist ecosystem. The issue involves login lockout bypass via untrusted forwarded-ip headers. Remediation is available by upgrading affected packages to version 4.6.01.

CVE-2026-94566 at a Glance

CVE Identifier CVE-2026-94566
GHSA Identifier GHSA-ccf2-6mf6-j78j
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected Product NukeViet
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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

How to Fix CVE-2026-94566

To remediate this vulnerability, upgrade all affected NukeViet 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-94566, inspect your project dependencies for NukeViet:

inspect dependencies for nukeviet/nukeviet

Analyze the terminal output to locate any version of NukeViet 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-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. In NukeViet, 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

## Summary NukeViet 4.6.00 unconditionally trusts client-controlled proxy headers, including `X-Forwarded-For`, when determining the client IP. It does not verify that the request came from a trusted reverse proxy. An unauthenticated attacker can therefore rotate the header to bypass the built-in login-attempt blocker. The same spoofable IP is also used by admin and API IP restrictions, IP bans, flood protection, and security logging. ## Affected Version - **Version:** NukeViet 4.6.00 - **Commit:** `f47de5cd6577d0d49449754be9bafe9081be4981` - **Authentication:** Not required ## Root Cause [`Ips.php`](https://github.com/nukeviet/nukeviet/blob/f47de5cd6577d0d49449754be9bafe9081be4981/vendor/vinades/nukeviet/Core/Ips.php#L128-L190) accepts `HTTP_CLIENT_IP`, `HTTP_X_FORWARDED_FOR`, and similar headers before falling back to the connection's `REMOTE_ADDR`. There is no trusted-proxy check. `NV_CLIENT_IP` is then used as the key for the login blocker in [`admin_login.php`](https://github.com/nukeviet/nukeviet/blob/f47de5cd6577d0d49449754be9bafe9081be4981/includes/core/admin_login.php#L47-L52) and [`modules/users/funcs/login.php`](https://github.com/nukeviet/nukeviet/blob/f47de5cd6577d0d49449754be9bafe9081be4981/modules/users/funcs/login.php#L816-L823). ## Reproduction From WSL, place the supplied Bash PoC in the current directory and run: ```bash bash ./nukeviet_xff_lockout_poc.sh \ http://localhost/admin/ ``` [nukeviet_xff_lockout_poc.sh](https://github.com/user-attachments/files/30169643/nukeviet_xff_lockout_poc.sh) The script uses a randomly generated nonexistent username. It does not attempt to access a real account. ## Verified Result The following result was reproduced from WSL against NukeViet 4.6.00. With `X-Forwarded-For: 203.0.113.203`, the installation returned: ```text attempt=1 blocked=false incorrect=true status=200 attempt=2 blocked=false incorrect=true status=200 attempt=3 blocked=false incorrect=true status=200 attempt=4 blocked=false incorrect=true status=200 attempt=5 blocked=false incorrect=true status=200 attempt=6 blocked=true incorrect=false status=200 ``` Changing only the header to `X-Forwarded-For: 203.0.113.204` immediately restored login attempts: ```text rotated_ip=203.0.113.204 blocked=false incorrect=true status=200 ``` <img width="1380" height="904" alt="xff" src="https://github.com/user-attachments/assets/c61592f1-3dce-482f-8660-0804f58e18e5" /> The TCP source and target were unchanged. This confirms that an unauthenticated attacker can evade the lockout by supplying a new header value for every attempt. ## Impact - **Verified impact:** bypass of administrator login lockout, enabling effectively unlimited password-guessing attempts from one source by rotating `X-Forwarded-For`. - **Additional code-level exposure:** the spoofable IP is also consumed by user-login controls, IP restrictions, bans, flood controls, and security logging. These additional consequences were not dynamically demonstrated by this PoC. This is a product-level trust issue, not merely a missing proxy configuration option: NukeViet trusts the headers even when the request is received directly. ## Remediation - Use `REMOTE_ADDR` by default. - Accept forwarded client-IP headers only when `REMOTE_ADDR` belongs to an explicitly configured trusted proxy. - Parse proxy chains from right to left and select the first untrusted address. - Ensure rate limits and security logs retain the socket peer address in addition to any validated forwarded address.

CVE-2026-94566 Affected NukeViet Versions

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

References

Frequently Asked Questions

What is CVE-2026-94566?
CVE-2026-94566 is a security vulnerability in NukeViet involving Login Lockout Bypass via Untrusted Forwarded-IP Headers under CWE-307: Improper Restriction of Excessive Authentication Attempts.
Which NukeViet versions are affected?
Affected versions include releases prior to 4.6.01 across affected packages: nukeviet/nukeviet.
What version fixes CVE-2026-94566?
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-94566?
CVE-2026-94566 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-94566?
CVE-2026-94566 is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts (The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.).
How can I check Packagist dependencies for CVE-2026-94566?
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-ccf2-6mf6-j78j",
  "modified" : "2026-11-30T20:31:31Z",
  "published" : "2026-11-30T20:31:31Z",
  "aliases" : [ "CVE-2026-94566" ],
  "summary" : "NukeViet: Login Lockout Bypass via Untrusted Forwarded-IP Headers",
  "details" : "## Summary\n\nNukeViet 4.6.00 unconditionally trusts client-controlled proxy headers, including `X-Forwarded-For`, when determining the client IP. It does not verify that the request came from a trusted reverse proxy.\n\nAn unauthenticated attacker can therefore rotate the header to bypass the built-in login-attempt blocker. The same spoofable IP is also used by admin and API IP restrictions, IP bans, flood protection, and security logging.\n\n## Affected Version\n\n- **Version:** NukeViet 4.6.00\n- **Commit:** `f47de5cd6577d0d49449754be9bafe9081be4981`\n- **Authentication:** Not required\n\n## Root Cause\n\n[`Ips.php`](https://github.com/nukeviet/nukeviet/blob/f47de5cd6577d0d49449754be9bafe9081be4981/vendor/vinades/nukeviet/Core/Ips.php#L128-L190) accepts `HTTP_CLIENT_IP`, `HTTP_X_FORWARDED_FOR`, and similar headers before falling back to the connection's `REMOTE_ADDR`. There is no trusted-proxy check.\n\n`NV_CLIENT_IP` is then used as the key for the login blocker in [`admin_login.php`](https://github.com/nukeviet/nukeviet/blob/f47de5cd6577d0d49449754be9bafe9081be4981/includes/core/admin_login.php#L47-L52) and [`modules/users/funcs/login.php`](https://github.com/nukeviet/nukeviet/blob/f47de5cd6577d0d49449754be9bafe9081be4981/modules/users/funcs/login.php#L816-L823).\n\n## Reproduction\n\nFrom WSL, place the supplied Bash PoC in the current directory and run:\n\n```bash\nbash ./nukeviet_xff_lockout_poc.sh \\\n  http://localhost/admin/\n```\n[nukeviet_xff_lockout_poc.sh](https://github.com/user-attachments/files/30169643/nukeviet_xff_lockout_poc.sh)\n\nThe script uses a randomly generated nonexistent username. It does not attempt to access a real account.\n\n## Verified Result\n\nThe following result was reproduced from WSL against NukeViet 4.6.00. With `X-Forwarded-For: 203.0.113.203`, the installation returned:\n\n```text\nattempt=1 blocked=false incorrect=true status=200\nattempt=2 blocked=false incorrect=true status=200\nattempt=3 blocked=false incorrect=true status=200\nattempt=4 blocked=false incorrect=true status=200\nattempt=5 blocked=false incorrect=true status=200\nattempt=6 blocked=true incorrect=false status=200\n```\n\nChanging only the header to `X-Forwarded-For: 203.0.113.204` immediately restored login attempts:\n\n```text\nrotated_ip=203.0.113.204 blocked=false incorrect=true status=200\n```\n<img width=\"1380\" height=\"904\" alt=\"xff\" src=\"https://github.com/user-attachments/assets/c61592f1-3dce-482f-8660-0804f58e18e5\" />\n\nThe TCP source and target were unchanged. This confirms that an unauthenticated attacker can evade the lockout by supplying a new header value for every attempt.\n\n## Impact\n\n- **Verified impact:** bypass of administrator login lockout, enabling effectively unlimited password-guessing attempts from one source by rotating `X-Forwarded-For`.\n- **Additional code-level exposure:** the spoofable IP is also consumed by user-login controls, IP restrictions, bans, flood controls, and security logging. These additional consequences were not dynamically demonstrated by this PoC.\n\nThis is a product-level trust issue, not merely a missing proxy configuration option: NukeViet trusts the headers even when the request is received directly.\n\n## Remediation\n\n- Use `REMOTE_ADDR` by default.\n- Accept forwarded client-IP headers only when `REMOTE_ADDR` belongs to an explicitly configured trusted proxy.\n- Parse proxy chains from right to left and select the first untrusted address.\n- Ensure rate limits and security logs retain the socket peer address in addition to any validated forwarded address.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "nukeviet/nukeviet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.6.00"
      }, {
        "fixed" : "4.6.01"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nukeviet/nukeviet/security/advisories/GHSA-ccf2-6mf6-j78j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-94566"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nukeviet/nukeviet/commit/aee1a6d1ab6b0c41f9ae80fb3cc76c5b49562a22"
  }, {
    "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-307" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-30T20:31:31Z",
    "nvd_published_at" : "2026-11-20T19:18:56Z"
  }
}