CVE-2023-36478HTTP/2 HPACK integer overflow and buffer allocation
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | jetty | Fix pending | UBUNTU-CVE-2023-36478 | |
| Ubuntu 14.04 | jetty | Fix pending | UBUNTU-CVE-2023-36478 | |
| Debian 14 | jetty9 | Fixed | 9.4.53-1 | DEBIAN-CVE-2023-36478 |
| Debian 13 | jetty9 | Fixed | 9.4.53-1 | DEBIAN-CVE-2023-36478 |
| Debian 12 | jetty9 | Fixed | 9.4.50-4+deb12u2 | DEBIAN-CVE-2023-36478 |
| Red Hat Enterprise Linux 9 | jetty-project | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-continuation | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-http | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-io | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-security | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-server | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-servlet | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-util | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-annotations | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-ant | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-client | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-continuation | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-deploy | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-http | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-io | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-jaas | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-jaspi | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-jmx | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-jndi | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-jsp | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-jspc-maven-plugin | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-maven-plugin | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-monitor | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-plus | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-project | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-proxy | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-rewrite | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-runner | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-security | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-server | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-servlet | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-servlets | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-start | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-util | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-util-ajax | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-webapp | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-api | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-client | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-common | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-parent | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-server | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-servlet | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-xml | Not affected | ||
| Alpine Linux 3.24 | jetty-runner | Fixed | 9.4.53.20231009-r0 | ALPINE-CVE-2023-36478 |
| Alpine Linux 3.23 | jetty-runner | Fixed | 9.4.53.20231009-r0 | ALPINE-CVE-2023-36478 |
| Alpine Linux 3.22 | jetty-runner | Fixed | 9.4.53.20231009-r0 | ALPINE-CVE-2023-36478 |
| Alpine Linux 3.21 | jetty-runner | Fixed | 9.4.53.20231009-r0 | ALPINE-CVE-2023-36478 |
| Alpine Linux 3.20 | jetty-runner | Fixed | 9.4.53.20231009-r0 | ALPINE-CVE-2023-36478 |
| Alpine Linux 3.19 | jetty-runner | Fixed | 9.4.53.20231009-r0 | ALPINE-CVE-2023-36478 |
| Alpine Linux 3.18 | jetty-runner | Fixed | 9.4.53.20231009-r0 | ALPINE-CVE-2023-36478 |
| Alpine Linux 3.17 | jetty-runner | Fixed | 9.4.53.20231009-r0 | ALPINE-CVE-2023-36478 |
| Maven library | org.eclipse.jetty.http2:http2-hpack | Fixed | 10.0.16 | GHSA-wgh7-54f2-x98r |
| Maven library | org.eclipse.jetty.http3:http3-qpack | Fixed | 10.0.16 | GHSA-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.
- eclipse jetty.project: affected: >= 10.0.0, < 10.0.16, >= 11.0.0, < 11.0.16, >= 9.3.0, < 9.4.53
References
- https://github.com/eclipse/jetty.project/security/advisories/GHSA-wgh7-54f2-x98r
- https://github.com/eclipse/jetty.project/pull/9634
- https://github.com/eclipse/jetty.project/releases/tag/jetty-10.0.16
- https://github.com/eclipse/jetty.project/releases/tag/jetty-11.0.16
- https://github.com/eclipse/jetty.project/releases/tag/jetty-9.4.53.v20231009
- http://www.openwall.com/lists/oss-security/2023/10/18/4
- https://lists.debian.org/debian-lts-announce/2023/10/msg00045.html
- https://www.debian.org/security/2023/dsa-5540
- https://security.netapp.com/advisory/ntap-20231116-0011/
- https://security.netapp.com/advisory/ntap-20240621-0006/
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.