Bug 1902826 (CVE-2020-27218) - CVE-2020-27218 jetty: buffer not correctly recycled in Gzip Request inflation
Summary: CVE-2020-27218 jetty: buffer not correctly recycled in Gzip Request inflation
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-27218
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1891693 1891694 1891695 1891703 1902827 1905620 1907765 1952337 1952340 1972361
Blocks: 1902828
TreeView+ depends on / blocked
 
Reported: 2020-11-30 19:20 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-06-14 23:16 UTC (History)
59 users (show)

See Also:
Fixed In Version: jetty-9.4.35.v20201120, jetty-10.0.0.beta3, jetty-11.0.0.beta3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-04 14:41:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:0329 0 None None None 2021-02-02 07:36:36 UTC
Red Hat Product Errata RHSA-2021:0417 0 None None None 2021-02-04 13:36:37 UTC
Red Hat Product Errata RHSA-2021:2431 0 None None None 2021-07-02 00:18:21 UTC
Red Hat Product Errata RHSA-2021:2499 0 None None None 2021-06-29 06:16:12 UTC
Red Hat Product Errata RHSA-2021:2517 0 None None None 2021-06-30 15:45:23 UTC
Red Hat Product Errata RHSA-2021:4767 0 None None None 2021-11-23 10:34:34 UTC
Red Hat Product Errata RHSA-2021:5134 0 None None None 2021-12-14 21:33:10 UTC
Red Hat Product Errata RHSA-2022:1029 0 None None None 2022-03-23 08:22:30 UTC

Description Guilherme de Almeida Suckevicz 2020-11-30 19:20:54 UTC
In Eclipse Jetty version 9.4.0.RC0 to 9.4.34.v20201102, 10.0.0.alpha0 to 10.0.0.beta2, and 11.0.0.alpha0 to 11.0.0.beta2, if GZIP request body inflation is enabled and requests from different clients are multiplexed onto a single connection, and if an attacker can send a request with a body that is received entirely but not consumed by the application, then a subsequent request on the same connection will see that body prepended to its body. The attacker will not see any data but may inject data into the body of the subsequent request.

References:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=568892
https://github.com/eclipse/jetty.project/security/advisories/GHSA-86wm-rrjm-8wh8

Comment 1 Guilherme de Almeida Suckevicz 2020-11-30 19:21:18 UTC
Created jetty tracking bugs for this issue:

Affects: fedora-all [bug 1902827]

Comment 2 Paramvir jindal 2020-12-02 05:56:54 UTC
RHSSO doesn't ship Jetty at all, just adapters that can be deployed on top of Jetty.

Comment 4 Jonathan Christison 2020-12-02 09:57:48 UTC
This vulnerability is out of security support scope for the following products:
 * Red Hat JBoss Fuse 6
 * Red Hat JBoss Fuse Service Works 6
 * Red Hat JBoss AMQ 6

Please refer to https://access.redhat.com/support/policy/updates/jboss_notes for more details.

Comment 8 Przemyslaw Roguski 2020-12-08 14:55:28 UTC
External References:

https://github.com/eclipse/jetty.project/security/advisories/GHSA-86wm-rrjm-8wh8

Comment 10 Jonathan Christison 2020-12-09 16:20:40 UTC
Marking Red Hat Camel K as having a low impact, although Camel K distributes jetty artifacts through camel-jetty, camel-jetty itself is not available for use by the application developer, http functionality is provided by camel-k default runtime, Quarkus.

Comment 11 Jonathan Christison 2020-12-10 14:47:29 UTC
A word on scoring, our scoring is currently 4.8/CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L and NVD score of 3.7/CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N 

My take: 

Exploitability Metrics: 

Attack Vector Network (AV:N) -
Agree here, Jetty is both a HTTP server and client, in the context of this vulnerability it is the server that is affected, the component is commonly bound to the network stack and also commonly a WAN facing service. 

Attack Complexity High (AC:H)

We agree here, the attack complexity is high because there are elements outside of GzipHandler being enabled there are other factors outside the attackers control, these factors are 

*) The end application doesn't contain any logic to handle connection closure

*) The end application doesn't fully consume a gzipped POST request

*) There is an element of chance as to if the recycled buffer will be used in such a way to allow an attack, for example differences in network speed, OS buffers and dispatching threads will all have a varying impact, meaning this attack will need to be tailored to each specific target by the attacker

Privileges Required None (PR:N) -
Agree here, the attacker does not need to be a privileged user eg. no login required to exploit the base flaw.

User Interaction None (UI:N)
Agree here, a end user does not need to be coerced into performing any action for this flaw.

Scope Unchanged (S:U)
Agree here, the attacker will not be able to escape the scope of the executing JVM solely due to this flaw
 
Impact Metrics:

Confidentiality None (C:N) 
Agree here, this is a blind attack and relies on a POST request, there is no information the attacker can divulge 

Integrity Low (I:L) 
We agree here, if the attacker is able to overcome the attack complexity and predictably exploit the buffer then the contents of other POST requests can be altered meaning data modification is taking place, but given the complexities of the attack the attacker does not have control over the consequences of the modification.

Availability Low (A:N -> A:L)
We disagree here with the original scoring of None for availability, the attack if successful will in many situations cause an exception when two request bodies are combined, depending on end application handling of these exceptions this could mean interruption to other users of the http service.

Comment 13 errata-xmlrpc 2021-02-02 07:36:33 UTC
This issue has been addressed in the following products:

  Red Hat AMQ LTS 7.4.6

Via RHSA-2021:0329 https://access.redhat.com/errata/RHSA-2021:0329

Comment 14 errata-xmlrpc 2021-02-04 13:36:34 UTC
This issue has been addressed in the following products:

  Red Hat AMQ 7.8.1

Via RHSA-2021:0417 https://access.redhat.com/errata/RHSA-2021:0417

Comment 15 Product Security DevOps Team 2021-02-04 14:41:45 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-27218

Comment 16 Przemyslaw Roguski 2021-03-29 13:11:50 UTC
Statement:

In OpenShift Container Platform (OCP), the Hive/Presto/Hadoop components that comprise the OCP Metering stack, ship the vulnerable version of jetty.
Since the release of OCP 4.6, the Metering product has been deprecated [1], hence the affected components are marked as wontfix.
This may be fixed in the future.

[1] https://docs.openshift.com/container-platform/4.6/release_notes/ocp-4-6-release-notes.html#ocp-4-6-metering-operator-deprecated

Comment 19 errata-xmlrpc 2021-06-29 06:16:09 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.6

Via RHSA-2021:2499 https://access.redhat.com/errata/RHSA-2021:2499

Comment 20 errata-xmlrpc 2021-06-30 15:45:10 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 3.11

Via RHSA-2021:2517 https://access.redhat.com/errata/RHSA-2021:2517

Comment 21 errata-xmlrpc 2021-07-02 00:18:17 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.5

Via RHSA-2021:2431 https://access.redhat.com/errata/RHSA-2021:2431

Comment 22 errata-xmlrpc 2021-11-23 10:34:31 UTC
This issue has been addressed in the following products:

  Red Hat Integration

Via RHSA-2021:4767 https://access.redhat.com/errata/RHSA-2021:4767

Comment 23 errata-xmlrpc 2021-12-14 21:33:07 UTC
This issue has been addressed in the following products:

  Red Hat Fuse 7.10

Via RHSA-2021:5134 https://access.redhat.com/errata/RHSA-2021:5134

Comment 24 errata-xmlrpc 2022-03-23 08:22:26 UTC
This issue has been addressed in the following products:

  RHINT Camel-K 1.6.4

Via RHSA-2022:1029 https://access.redhat.com/errata/RHSA-2022:1029


Note You need to log in before you can comment on or make changes to this bug.