CVEfocus › CVE database › CVE-2023-36478

CVE-2023-36478HTTP/2 HPACK integer overflow and buffer allocation

CVSS 7.5 HighEPSS 6.2% (higher than 94% of CVEs)Published 2023-10-10Updated 2025-02-13Assigner: GitHub_M

Eclipse Jetty provides a web server and servlet container. In versions 11.0.0 through 11.0.15, 10.0.0 through 10.0.15, and 9.0.0 through 9.4.52, an integer overflow in `MetaDataBuilder.checkSize` allows for HTTP/2 HPACK header values to exceed their size limit. `MetaDataBuilder.java` determines if a header name or value exceeds the size limit, and throws an exception if the limit is exceeded. However, when length is very large and huffman is true, the multiplication by 4 in line 295 will overflow, and length will become negative. `(_size+length)` will now be negative, and the check on line 296 will not be triggered. Furthermore, `MetaDataBuilder.checkSize` allows for user-entered HPACK header value sizes to be negative, potentially leading to a very large buffer allocation later on when the user-entered size is multiplied by 2. This means that if a user provides a negative length value (or, more precisely, a length value which, when multiplied by the 4/3 fudge factor, is negative), and this length value is a very large positive number when multiplied by 2, then the user can cause a very large buffer to be allocated on the server. Users of HTTP/2 can be impacted by a remote denial of service attack. The issue has been fixed in versions 11.0.16, 10.0.16, and 9.4.53. There are no known workarounds.

CWE-190CWE-400

What to do

Fixed builds are available from Alpine, Debian, Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

13Fixed
2Fix pending
44Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04jettyFix pendingUBUNTU-CVE-2023-36478
Ubuntu 14.04jettyFix pendingUBUNTU-CVE-2023-36478
Debian 14jetty9Fixed9.4.53-1DEBIAN-CVE-2023-36478
Debian 13jetty9Fixed9.4.53-1DEBIAN-CVE-2023-36478
Debian 12jetty9Fixed9.4.50-4+deb12u2DEBIAN-CVE-2023-36478
Red Hat Enterprise Linux 9jetty-projectNot affected
Red Hat Enterprise Linux 8jetty-continuationNot affected
Red Hat Enterprise Linux 8jetty-httpNot affected
Red Hat Enterprise Linux 8jetty-ioNot affected
Red Hat Enterprise Linux 8jetty-securityNot affected
Red Hat Enterprise Linux 8jetty-serverNot affected
Red Hat Enterprise Linux 8jetty-servletNot affected
Red Hat Enterprise Linux 8jetty-utilNot affected
Red Hat Enterprise Linux 7jetty-annotationsNot affected
Red Hat Enterprise Linux 7jetty-antNot affected
Red Hat Enterprise Linux 7jetty-clientNot affected
Red Hat Enterprise Linux 7jetty-continuationNot affected
Red Hat Enterprise Linux 7jetty-deployNot affected
Red Hat Enterprise Linux 7jetty-httpNot affected
Red Hat Enterprise Linux 7jetty-ioNot affected
Red Hat Enterprise Linux 7jetty-jaasNot affected
Red Hat Enterprise Linux 7jetty-jaspiNot affected
Red Hat Enterprise Linux 7jetty-javadocNot affected
Red Hat Enterprise Linux 7jetty-jmxNot affected
Red Hat Enterprise Linux 7jetty-jndiNot affected
Red Hat Enterprise Linux 7jetty-jspNot affected
Red Hat Enterprise Linux 7jetty-jspc-maven-pluginNot affected
Red Hat Enterprise Linux 7jetty-maven-pluginNot affected
Red Hat Enterprise Linux 7jetty-monitorNot affected
Red Hat Enterprise Linux 7jetty-plusNot affected
Red Hat Enterprise Linux 7jetty-projectNot affected
Red Hat Enterprise Linux 7jetty-proxyNot affected
Red Hat Enterprise Linux 7jetty-rewriteNot affected
Red Hat Enterprise Linux 7jetty-runnerNot affected
Red Hat Enterprise Linux 7jetty-securityNot affected
Red Hat Enterprise Linux 7jetty-serverNot affected
Red Hat Enterprise Linux 7jetty-servletNot affected
Red Hat Enterprise Linux 7jetty-servletsNot affected
Red Hat Enterprise Linux 7jetty-startNot affected
Red Hat Enterprise Linux 7jetty-utilNot affected
Red Hat Enterprise Linux 7jetty-util-ajaxNot affected
Red Hat Enterprise Linux 7jetty-webappNot affected
Red Hat Enterprise Linux 7jetty-websocket-apiNot affected
Red Hat Enterprise Linux 7jetty-websocket-clientNot affected
Red Hat Enterprise Linux 7jetty-websocket-commonNot affected
Red Hat Enterprise Linux 7jetty-websocket-parentNot affected
Red Hat Enterprise Linux 7jetty-websocket-serverNot affected
Red Hat Enterprise Linux 7jetty-websocket-servletNot affected
Red Hat Enterprise Linux 7jetty-xmlNot affected
Alpine Linux 3.24jetty-runnerFixed9.4.53.20231009-r0ALPINE-CVE-2023-36478
Alpine Linux 3.23jetty-runnerFixed9.4.53.20231009-r0ALPINE-CVE-2023-36478
Alpine Linux 3.22jetty-runnerFixed9.4.53.20231009-r0ALPINE-CVE-2023-36478
Alpine Linux 3.21jetty-runnerFixed9.4.53.20231009-r0ALPINE-CVE-2023-36478
Alpine Linux 3.20jetty-runnerFixed9.4.53.20231009-r0ALPINE-CVE-2023-36478
Alpine Linux 3.19jetty-runnerFixed9.4.53.20231009-r0ALPINE-CVE-2023-36478
Alpine Linux 3.18jetty-runnerFixed9.4.53.20231009-r0ALPINE-CVE-2023-36478
Alpine Linux 3.17jetty-runnerFixed9.4.53.20231009-r0ALPINE-CVE-2023-36478
Maven libraryorg.eclipse.jetty.http2:http2-hpackFixed10.0.16GHSA-wgh7-54f2-x98r
Maven libraryorg.eclipse.jetty.http3:http3-qpackFixed10.0.16GHSA-wgh7-54f2-x98r

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.