CVE-2023-41337 Details
Description
h2o is an HTTP server with support for HTTP/1.x, HTTP/2 and HTTP/3. In version 2.3.0-beta2 and prior, when h2o is configured to listen to multiple addresses or ports with each of them using different backend servers managed by multiple entities, a malicious backend entity that also has the opportunity to observe or inject packets exchanged between the client and h2o may misdirect HTTPS requests going to other backends and observe the contents of that HTTPS request being sent. The attack involves a victim client trying to resume a TLS connection and an attacker redirecting the packets to a different address or port than that intended by the client. The attacker must already have been configured by the administrator of h2o to act as a backend to one of the addresses or ports that the h2o instance listens to. Session IDs and tickets generated by h2o are not bound to information specific to the server address, port, or the X.509 certificate, and therefore it is possible for an attacker to force the victim connection to wrongfully resume against a different server address or port on which the same h2o instance is listening. Once a TLS session is misdirected to resume to a server address / port that is configured to use an attacker-controlled server as the backend, depending on the configuration, HTTPS requests from the victim client may be forwarded to the attacker's server. An H2O instance is vulnerable to this attack only if the instance is configured to listen to different addresses or ports using the listen directive at the host level and the instance is configured to connect to backend servers managed by multiple entities. A patch is available at commit 35760540337a47e5150da0f4a66a609fad2ef0ab. As a workaround, one may stop using using host-level listen directives in favor of global-level ones.
A vulnerability in the h2o HTTP server in versions through 2.3.0-beta2 allows for misdirection of TLS session resumption, potentially leading to interception of HTTPS request contents. This issue arises when h2o listens on multiple addresses or ports with different backend servers, and a malicious backend entity can observe or inject packets. The vulnerability allows an attacker to redirect a client's TLS connection resume request to a different server address or port, where the same h2o instance is listening, but controlled by the attacker. As a result, HTTPS requests from the client may be forwarded to the attacker's server.
Update h2o to version 2.3.0 or later, or stop using host-level listen directives in favor of global-level ones.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/h2o/h2o/commit/35760540337a47e5150da0f4a66a609fad2ef0ab | CVE | Patch |
| https://github.com/h2o/h2o/security/advisories/GHSA-5v5r-rghf-rm6q | CVE | MitigationPatchVendor Advisory |
| https://github.com/h2o/h2o/commit/35760540337a47e5150da0f4a66a609fad2ef0ab | [email protected] | Patch |
| https://github.com/h2o/h2o/security/advisories/GHSA-5v5r-rghf-rm6q | [email protected] | MitigationPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-347 | Improper Verification of Cryptographic Signature | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| dena h2o | <= 2.2.6 2.3.0 beta1 2.3.0 beta2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Dec 19, 2023 | Initial Analysis | [email protected] |
| Dec 12, 2023 | New CVE Received | [email protected] |