Critical Jenkins Server Vulnerability Could Leak Sensitive Information

Jenkins—a common open up-resource automation server software—published an advisory on Monday regarding a crucial vulnerability in the Jetty world-wide-web server that could final result in memory corruption and bring about confidential information to be disclosed.

Tracked as CVE-2019-17638, the flaw has a CVSS score of 9.4 and impacts Eclipse Jetty versions 9.4.27.v20200227 to 9.4.29.v20200521—a total-showcased tool that offers a Java HTTP server and net container for use in computer software frameworks.

“Jenkins bundles Winstone-Jetty, a wrapper all over Jetty, to act as HTTP and servlet server when begun working with java -jar jenkins.war. This is how Jenkins is operate when utilizing any of the installers or deals, but not when run making use of servlet containers these kinds of as Tomcat,” read through the advisory.


“The vulnerability may well allow unauthenticated attackers to receive HTTP response headers that may perhaps contain delicate information intended for yet another person.”

The flaw, which impacts Jetty and Jenkins Core, seems to have been launched in Jetty edition 9.4.27, which included a mechanism to take care of large HTTP reaction headers and reduce buffer overflows.

“The challenge was in the circumstance of a buffer overflow, we unveiled the header buffer, but did not null the area,” Jetty’s project head Greg Wilkins said.

To take care of this, Jetty throws an exception to make an HTTP 431 mistake, which leads to the HTTP response headers to be produced to the buffer pool 2 times, in switch resulting in memory corruption and information disclosure.

Thus, thanks to the double release, two threads can get the exact buffer from the pool at the similar time and likely enabling one ask for to obtain a reaction penned by the other thread, which may perhaps incorporate session identifiers, authentication qualifications, and other delicate info.

Put in another way, “whilst thread1 is about to use the ByteBuffer to produce response1 data, thread2 fills the ByteBuffer with reaction2 details. Thread1 then proceeds to generate the buffer that now is made up of response2 knowledge. This effects in customer1, which issued ask for1 and expects responses, to see response2 which could comprise sensitive facts belonging to shopper2.”

In a person circumstance, the memory corruption built it doable for clientele to shift amongst sessions, therefore getting cross-account access, as authentication cookies from one particular user’s response have been sent to a different consumer, thereby making it possible for consumer A to bounce in person B’s session.

After the protection implications have been disclosed, the vulnerability was resolved in Jetty 9.4.30.v20200611 unveiled previous month. Jenkins, which bundles Jetty by way of a command-line interface referred to as Winstone, has patched the flaw in its utility in Jenkins 2.243 and Jenkins LTS 2.235.5 produced yesterday.

It is suggested that Jenkins people update their application to the latest edition to mitigate the buffer corruption flaw.

Fibo Quantum