CVE-2025-12543
Java vulnerability analysis and mitigation

Overview

CVE-2025-12543 is a Host header validation bypass vulnerability in the Undertow HTTP server core (io.undertow:undertow-core), used in WildFly, JBoss EAP, Red Hat Single Sign-On, Red Hat Fuse, Red Hat Data Grid, and other Java applications. The flaw was reported on October 31, 2025, and publicly disclosed on January 7, 2026. Affected versions include Undertow below 2.2.39.Final, versions 2.3.0.Alpha1 through 2.3.21.Final (exclusive), and the 2.4.0.Alpha1 branch; JBoss EAP 8.0.x before 8.0.12 and 8.1.x before 8.1.3 are also affected. It carries a CVSS v3.1 base score of 9.6 (Critical) (GitHub Advisory, Red Hat CVE).

Technical details

The root cause is improper input validation (CWE-20) in Undertow's HTTP request processing pipeline: the server fails to return a 400 Bad Request response when it receives requests containing invalid or malformed Host headers, allowing such requests to be processed normally. This network-based attack requires no privileges but does require some form of user interaction (e.g., a victim visiting a page or following a link), with a changed scope indicating cross-component impact. Exploitation techniques include web cache poisoning (injecting malicious responses into shared caches), server-side request forgery (SSRF) for internal network reconnaissance, and session hijacking by manipulating Host-dependent session tokens or redirects. The vulnerability is tracked upstream as UNDERTOW-2656 and was fixed via pull requests undertow-io/undertow#1857 and #1860 (GitHub Advisory, Red Hat Bugzilla).

Impact

Successful exploitation can lead to web cache poisoning (injecting malicious content served to other users), session hijacking (stealing authentication tokens or redirecting users to attacker-controlled endpoints), and SSRF enabling unauthorized access to internal network resources. The changed scope means a single vulnerable Undertow instance can affect other components in the same infrastructure, potentially enabling complete account takeover, widespread credential theft, or lateral movement into internal systems. Confidentiality and integrity are rated High, with availability impact rated Low by the CNA (GitHub Advisory, Red Hat Bugzilla).

Exploitation steps

  1. Reconnaissance: Identify internet-facing or network-accessible Undertow-based servers (WildFly, JBoss EAP, Red Hat SSO, etc.) running vulnerable versions (Undertow < 2.2.39.Final or 2.3.0–2.3.20.Final) using tools like Shodan, Censys, or banner grabbing.
  2. Craft malformed Host header: Construct an HTTP request with a malformed or attacker-controlled Host header value (e.g., containing extra ports, IP addresses, or injected hostnames such as Host: attacker.com or Host: internal-service:8080).
  3. Send request to vulnerable endpoint: Transmit the crafted request to any HTTP endpoint served by the vulnerable Undertow instance. The server processes the request without rejecting it with a 400 error.
  4. Cache poisoning: If a caching proxy sits in front of the server, the malicious response keyed to the spoofed Host may be cached and served to legitimate users, delivering attacker-controlled content.
  5. SSRF / internal scanning: Use the Host header manipulation to redirect server-side requests to internal services (e.g., Host: 169.254.169.254 for cloud metadata endpoints), enabling reconnaissance of internal network resources.
  6. Session hijacking: Exploit Host-header-dependent session token generation or password reset flows to redirect victims to attacker-controlled domains, capturing authentication tokens or credentials (GitHub Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Network: HTTP requests with anomalous or unexpected Host header values (e.g., IP addresses, internal hostnames, attacker-controlled domains, or headers with extra port numbers not matching the server's configured virtual hosts); outbound connections from the Undertow server process to unexpected internal IP ranges or cloud metadata endpoints (e.g., 169.254.169.254).
  • Logs: Undertow/WildFly/JBoss EAP access logs showing requests with malformed Host headers that were processed (HTTP 200/302) rather than rejected (HTTP 400); repeated requests to the same endpoint with varying Host header values from the same source IP.
  • Application Behavior: Unexpected cache entries containing content referencing external or attacker-controlled domains; password reset or session-related emails/redirects pointing to unrecognized hostnames; users reporting being redirected to unexpected domains after interacting with the application.

Mitigation and workarounds

The primary remediation is to upgrade Undertow to version 2.2.39.Final or later (for the 2.2.x branch) or 2.3.21.Final or later (for the 2.3.x branch). For Red Hat products, apply the relevant errata: RHSA-2026:0383, RHSA-2026:0384, and RHSA-2026:0386 (JBoss EAP 8.1.3); RHSA-2026:3889 through RHSA-2026:3892 (JBoss EAP 8.0); RHSA-2026:4915 through RHSA-2026:4924 (JBoss EAP 7.4 ELS); and RHSA-2026:3890 (Red Hat build of Apache Camel 4.14.4). As a network-level workaround where immediate patching is not possible, deploy a reverse proxy or WAF configured to validate and enforce strict Host header values before forwarding requests to Undertow (Red Hat RHSA-2026:0383, GitHub Advisory).

Community reactions

The vulnerability received notable coverage from security news outlets including SecurityOnline, CyberSecurityNews, GBHackers, CyberPress, and The Hacker News (weekly recap), reflecting broad community awareness of the critical CVSS score. Endor Labs published a dedicated technical write-up on the Host header validation bypass. Security researchers on Mastodon (infosec.exchange) and Bluesky discussed the flaw shortly after disclosure. The vulnerability was also highlighted in the Oracle April 2026 Critical Patch Update, indicating downstream impact beyond Red Hat's ecosystem (Endor Labs, Oracle CPU).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-p279-2cqp-84jgCRITICAL9.6
  • Java logoJava
  • org.openidentityplatform.opendj:opendj-server-legacy
NoYesJul 24, 2026
GHSA-fp43-vj7g-pg92HIGH7.5
  • Java logoJava
  • org.omnifaces:omnifaces
NoYesJul 24, 2026
GHSA-7ppr-r889-mcf2HIGH7.5
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.12
NoYesJul 24, 2026
GHSA-mhvj-jhpq-885vHIGH7.4
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.13
NoYesJul 24, 2026
GHSA-46q4-43ph-c6frHIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.12
NoYesJul 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management