/

CVE-2026-94561

Severity:

HIGH RISK

(7.2)

SSRF (CWE-918) in NukeViet CMS Host Header Handling

CVE-2026-94561

Received

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-918

Impact:

Unauthorized requests to internal services

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

NukeViet CMS 4.6.00 has a server-side request forgery (SSRF) flaw caused by inconsistent handling of the forwarded and ordinary Host headers. An unauthenticated attacker may be able to influence an outbound request so it reaches an attacker-selected internal host, port, or path, potentially exposing internal HTTP endpoints.

Affected context

The issue occurs in NukeViet CMS 4.6.00 when request handling validates the forwarded host but retains the ordinary Host value for a later outbound cURL request. The risk arises when that request follows redirects, allowing it to reach a destination that would not have been permitted by the earlier validation.

Exploit preconditions

  • Attack surface: An HTTP request to a NukeViet CMS instance using the affected request-handling flow
  • Required access: No authentication is required
  • Trigger point: Processing that invokes set_ini_file() and constructs an outbound cURL request
  • Why exploitation is possible: The forwarded host is validated separately from the ordinary Host value used for the outbound request, and redirect following can carry the request to an attacker-selected internal destination

Why this happens

The application validates one host value but later uses a separately retained host value when constructing an outbound request. Following redirects can further expand the request's destination beyond the initially validated host. This maps to CWE-918: Server-Side Request Forgery, where an application makes requests to destinations influenced by untrusted input without consistently restricting the final destination.

Potential impact

  • The server may be induced to make requests to private hosts, ports, or paths.
  • Internal HTTP endpoints may be reached from the application's network position.
  • Responses or side effects from internal services could be exposed or triggered, depending on their behavior and the application's handling of results.
  • The issue could provide a foothold for further investigation of reachable internal services.

General mitigation guidance

Defensive patterns include:

  • Apply consistent validation to every host value used in outbound requests.
  • Prefer fixed, allowlisted destinations over destinations derived from request headers.
  • Restrict redirects, or revalidate each redirect target against destination policy.
  • Use network egress controls to limit access to private and otherwise sensitive address ranges.
  • Minimize the privileges and network reach of the application process.
  • Avoid treating forwarded headers as trustworthy unless they are set by a trusted proxy and validated at the appropriate boundary.

How teams detect issues like this

Review code paths that derive outbound request destinations from Host or forwarded headers, especially where validation and use occur in different components. Static analysis and code review can look for cURL or HTTP client calls whose destinations depend on request-controlled values, as well as redirect-following behavior that does not revalidate targets. Policy checks can require destination allowlists and controlled network egress; automated review tools may help identify these patterns.

Sources

SourceLink
github.comgithub.com/nukeviet/nukeviet/commit/a2ceabdacd5fb3135bde6cdfb106e76b24736095
github.comgithub.com/nukeviet/nukeviet/commit/b5305fe257a7487c7b8fbe74b31a9554793be720
github.comgithub.com/nukeviet/nukeviet/releases/tag/4.6.01
github.comgithub.com/nukeviet/nukeviet/security/advisories/GHSA-8xch-674f-grqr
nukeviet.vnnukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-01-857.html

Frequently asked

questions

The described issue can be triggered through HTTP requests to an affected, reachable NukeViet CMS instance, and authentication is not required.

No account is required. The attacker needs to reach the application and send a request that exercises the affected outbound-request flow.

Avoid deriving outbound destinations from request headers. Where dynamic destinations are necessary, enforce a strict allowlist and validate every redirect target.

Treat forwarded headers as untrusted unless they come from a trusted proxy, enforce consistent destination checks, and use network egress restrictions to limit reachable internal services.

Find out what's already
exploitable in your codebase.