CVE-2025-12543: Undertow-core: undertow http server fails to reject malformed host headers leading to potential cache poisoning and ssrf
A flaw was found in the Undertow HTTP server core, which is used in WildFly, JBoss EAP, and other Java applications. The Undertow library fails to properly validate the Host header in incoming HTTP requests. As a result, requests containing malformed or malicious Host headers are processed without rejection, enabling attackers to poison caches, perform internal network scans, or hijack user sessions.
Other sources
A flaw was found in the Undertow HTTP server core, which is used in WildFly, JBoss EAP, and other Java applications. The Undertow library fails to properly validate the Host header in incoming HTTP requests.As a result, requests containing malformed or malicious Host headers are processed without rejection, enabling attackers to poison caches, perform internal network scans, or hijack user sessions.
— NVD
An Improper Input Validation vulnerability exists in the Undertow HTTP server (io.undertow:undertow-core) where the implementation does not return a 400 Bad Request response when receiving requests with invalid or malformed Host headers. The flaw can be exploited by remote attackers via specially crafted HTTP requests. Depending on the deployment, the issue enables web cache poisoning, session hijacking, or server-side request forgery (SSRF). Attackers may inject malicious responses into caches, steal authentication tokens, or redirect users to malicious endpoints. Successful exploitation can result in complete account takeover, widespread credential theft, or unauthorized access to internal network resources, thereby compromising confidentiality and integrity of user data.
— Red Hat
Apache Commons Codec could allow a remote attacker to obtain sensitive information, caused by the improper validation of input. An attacker could exploit this vulnerability using a method call to obtain sensitive information.
— IBM
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-12543?
CVE-2025-12543 is classified as a critical vulnerability due to its potential to allow attackers to execute HTTP request smuggling attacks.
How do I fix CVE-2025-12543?
To fix CVE-2025-12543, update the Undertow library to the latest patched version provided by Red Hat.
Which software is affected by CVE-2025-12543?
CVE-2025-12543 affects the Undertow HTTP server core, particularly in environments using WildFly and JBoss EAP.
What are the risks associated with CVE-2025-12543?
The risks include potential exploitation through crafted HTTP requests, leading to security breaches and unauthorized access to applications.
Is there a workaround for CVE-2025-12543?
While updating is recommended, temporarily restricting incoming HTTP requests to valid Host headers can serve as a workaround until a patch is applied.