MODERATE 4.8

CVE-2020-27218

Buffer not correctly recycled in Gzip Request inflation

Description

Impact

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 by not consumed by the application, then a subsequent request on the same connection will see that body prepended to it's body.

The attacker will not see any data, but may inject data into the body of the subsequent request

CVE score is 4.8 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Workarounds

The problem can be worked around by either:

  • Disabling compressed request body inflation by GzipHandler.
  • By always fully consuming the request content before sending a response.
  • By adding a Connection: close to any response where the servlet does not fully consume request content.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.eclipse.jetty » jetty-server
>= 9.4.0, < 9.4.35.v20201120
9.4.35.v20201120

Blast radius

1affected artifacts
58affected versions
7,480dependent artifacts (est.)
282,492dependent versions

33% of the dependent artifacts (2,541) still pull an affected version in their latest release.

DepthDependent versions
Direct
34,439
2 hops
93,148
3 hops
78,807
4 hops
44,102
5 hops
25,611
6 hops
6,385

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References