Operation on a Resource after Expiration or Release in Jetty - CVE-2019-17638

 

Operation on a Resource after Expiration or Release in Jetty - CVE-2019-17638

Published: July 9, 2020 / Updated: August 8, 2020


Vulnerability identifier: #VU34161
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-17638
CWE-ID: CWE-672
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to #BASIC_IMPACT#.

In Eclipse Jetty, versions 9.4.27.v20200227 to 9.4.29.v20200521, in case of too large response headers, Jetty throws an exception to produce an HTTP 431 error. When this happens, the ByteBuffer containing the HTTP response headers is released back to the ByteBufferPool twice. Because of this double release, two threads can acquire the same ByteBuffer from the pool and while thread1 is about to use the ByteBuffer to write response1 data, thread2 fills the ByteBuffer with response2 data. Thread1 then proceeds to write the buffer that now contains response2 data. This results in client1, which issued request1 and expects responses, to see response2 which could contain sensitive data belonging to client2 (HTTP session ids, authentication credentials, etc.).


Affected software

Jetty
Jenkins LTS
Jenkins
Oracle Communications Application Session Controller
Oracle Communications Session Report Manager
FMW Platform
Red Hat OpenShift Container Platform
Oracle Hospitality Guest Access
Oracle Communications Element Manager
Oracle Communications Session Route Manager
i2 Analyst's Notebook Premium
Oracle FLEXCUBE Private Banking
Oracle Application Testing Suite
Fedora
eclipse-mpc
batik
eclipse-m2e-core
univocity-parsers
eclipse-emf
jenkins (Red Hat package)
eclipse-remote
eclipse-gef
eclipse-ecf
eclipse-webtools
eclipse-mylyn
ecj
eclipse
lucene
jetty
eclipse-cdt

How to mitigate CVE-2019-17638

Install update from vendor's website.

Jenkins LTS - update to 2.235.5
Jenkins - update to 2.243
eclipse-mpc - update to 1.8.3-2.fc32
batik - update to 1.13-1.fc32
eclipse-m2e-core - update to 1.16.1-1.fc32
univocity-parsers - update to 2.8.4-5.fc32
eclipse-emf - update to 2.22.0-2.fc32
jenkins (Red Hat package) - addressed in versions 2.235.5.1600414805-1.el7, 2.235.5.1600415953-1.el7
eclipse-remote - update to 3.0.1-6.fc32
eclipse-gef - update to 3.11.0-13.fc32
eclipse-ecf - update to 3.14.8-4.fc32
eclipse-webtools - update to 3.18.0-4.fc32
eclipse-mylyn - update to 3.25.0-3.fc32
i2 Analyst's Notebook Premium - update to 4.4.0
ecj - update to 4.16-4.fc32
eclipse - update to 4.16-11.fc32
lucene - update to 8.4.1-9.fc32
jetty - update to 9.4.31-2.fc32
eclipse-cdt - update to 9.11.1-8.fc32

External References

Related Security Bulletins