Vulnerabilities in pkg:maven/io.jooby/jooby-netty
PACKAGECVE-2020-7622 is a CRITICAL (CVSS 9.8) improper neutralization of crlf sequences vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting Jooby netty libraries in the Maven ecosystem. The issue involves improper neutralization of crlf sequences in http headers in jooby ('http response splitting). Remediation is available by upgrading affected packages to version 2.2.1.
pkg:maven/io.jooby/jooby-netty
Vulnerability advisories affecting package pkg:maven/io.jooby/jooby-netty. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gv3v-92v6-m48j | CVE-2020-7622 | CRITICAL | Improper Neutralization of CRLF Sequences in HTTP Headers in Jooby ('HTTP Response Splitting) |
CVE-2020-7622 at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix CVE-2020-7622
To remediate this vulnerability, upgrade all affected Jooby netty 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>io.jooby</groupId>
<artifactId>jooby-netty</artifactId>
<version>2.2.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.jooby
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-7622, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.jooby
Analyze the terminal output to locate any version of Jooby netty in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.jooby 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-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In Jooby netty, 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-2020-7622 Affected Jooby netty Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.jooby:jooby-netty
|
Maven |
< 2.2.1
|
2.2.1
|
References
Frequently Asked Questions
What is CVE-2020-7622?
Which Jooby netty versions are affected?
What version fixes CVE-2020-7622?
Is jooby-netty affected?
What is the CVSS score of CVE-2020-7622?
What CWE is associated with CVE-2020-7622?
How can I check Maven dependencies for CVE-2020-7622?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gv3v-92v6-m48j",
"modified" : "2021-07-29T15:47:43Z",
"published" : "2020-04-03T15:23:30Z",
"aliases" : [ "CVE-2020-7622" ],
"summary" : "Improper Neutralization of CRLF Sequences in HTTP Headers in Jooby ('HTTP Response Splitting)",
"details" : "### Impact\n\n - Cross Site Scripting\n - Cache Poisoning\n - Page Hijacking\n\n### Patches\n\nThis was fixed in version `2.2.1`.\n\n### Workarounds\n\nIf you are unable to update, ensure that user supplied data isn't able to flow to HTTP headers. If it does, pre-sanitize for CRLF characters.\n\n### References\n\n##### [CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\n\nI've been poking at libraries to see if they are vulnerable to HTTP Response Splitting and Jooby is my third case of finding this vulnerability.\n\n### Root Cause\n\nThis roots cause back to this line in the Jooby codebase:\n\nhttps://github.com/jooby-project/jooby/blob/93cfc80aa20c188f71a442ea7a1827da380e1c27/modules/jooby-netty/src/main/java/io/jooby/internal/netty/NettyContext.java#L102\n\nThe `DefaultHttpHeaders` takes a parameter `validate` which, when `true` (as it is for the no-arg constructor) validates that the header isn't being abused to do HTTP Response Splitting.\n\n### Reported By\n\nThis vulnerability was reported by @JLLeitschuh ([Twitter](https://twitter.com/JLLeitschuh))\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [jooby-project/jooby](https://github.com/jooby-project/jooby/issues)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.jooby:jooby-netty"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jooby-project/jooby/security/advisories/GHSA-gv3v-92v6-m48j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7622"
}, {
"type" : "WEB",
"url" : "https://github.com/jooby-project/jooby/commit/b66e3342cf95205324023cfdf2cb5811e8a6dcf4"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JAVA-IOJOOBY-564249"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-444" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-04-02T23:59:56Z",
"nvd_published_at" : "2020-04-06T15:15:00Z"
}
}