CVE-2022-2048: Http2 server Denial of Service Vulnerability
HIGHCVE-2022-2048 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Http2 server libraries in the Maven ecosystem. The issue involves jetty vulnerable to invalid http/2 requests that can lead to denial of service. Remediation is available by upgrading affected packages to version 9.4.47, 10.0.10, 11.0.10.
CVE-2022-2048 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2022-2048
To remediate this vulnerability, upgrade all affected Http2 server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.eclipse.jetty.http2</groupId>
<artifactId>http2-server</artifactId>
<version>9.4.47</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.http2</groupId>
<artifactId>http2-server</artifactId>
<version>10.0.10</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.http2</groupId>
<artifactId>http2-server</artifactId>
<version>11.0.10</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.eclipse.jetty.http2
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-2048, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.eclipse.jetty.http2
Analyze the terminal output to locate any version of Http2 server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.4.47), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.eclipse.jetty.http2 command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Http2 server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-2048 Affected Http2 server Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.eclipse.jetty.http2:http2-server
|
Maven |
< 9.4.47
|
9.4.47
|
|
org.eclipse.jetty.http2:http2-server
|
Maven |
≥ 10.0.0
< 10.0.10
|
10.0.10
|
|
org.eclipse.jetty.http2:http2-server
|
Maven |
≥ 11.0.0
< 11.0.10
|
11.0.10
|
References
Frequently Asked Questions
What is CVE-2022-2048?
Which Http2 server versions are affected?
What version fixes CVE-2022-2048?
Is http2-server affected?
What is the CVSS score of CVE-2022-2048?
What CWE is associated with CVE-2022-2048?
How can I check Maven dependencies for CVE-2022-2048?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wgmr-mf83-7x4j",
"modified" : "2022-07-19T19:42:51Z",
"published" : "2022-07-07T20:55:40Z",
"aliases" : [ "CVE-2022-2048" ],
"summary" : "Jetty vulnerable to Invalid HTTP/2 requests that can lead to denial of service",
"details" : "### Description\nInvalid HTTP/2 requests (for example, invalid URIs) are incorrectly handled by writing a blocking error response directly from the selector thread.\nIf the client manages to exhaust the HTTP/2 flow control window, or TCP congest the connection, the selector thread will be blocked trying to write the error response.\nIf this is repeated for all the selector threads, the server becomes unresponsive, causing the denial of service.\n\n### Impact\nA malicious client may render the server unresponsive.\n\n### Patches\nThe fix is available in Jetty versions 9.4.47. 10.0.10, 11.0.10.\n\n### Workarounds\nNo workaround available within Jetty itself.\nOne possible workaround is to filter the requests before sending them to Jetty (for example in a proxy)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at security@webtide.com.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty.http2:http2-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.4.47"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty.http2:http2-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0"
}, {
"fixed" : "10.0.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty.http2:http2-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0"
}, {
"fixed" : "11.0.10"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/eclipse/jetty.project/security/advisories/GHSA-wgmr-mf83-7x4j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-2048"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eclipse/jetty.project"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2022/08/msg00011.html"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20220901-0006"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2022/dsa-5198"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/09/09/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-410" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-07T20:55:40Z",
"nvd_published_at" : "2022-07-07T21:15:00Z"
}
}