{"id":"CVE-2026-34829","aliases":["CVE-2026-34829","GHSA-8vqr-qjwx-82mw"],"related":[],"kind":"vulnerability","state":"published","title":"Rack: Denial of Service via Unbounded Multipart File Upload Without Content-Length","summary":"Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Multipart::Parser only wraps the request body in a BoundedIO when CONTENT_LENGTH is present. When a multipart/form-data request is sent without a Content-Length header, such as with HTTP chunked transfer encoding, multipart parsing continues until end-of-stream with no total size limit. For file parts, the uploaded body is written directly to a temporary file on disk rather than being constrained by the buffered in-memory upload limit. An unauthenticated attacker can therefore stream an arbitrarily large multipart file upload and consume unbounded disk space. This results in a denial of service condition for Rack applications that accept multipart form data. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Multipart::Parser only wraps the request body in a BoundedIO when CONTENT_LENGTH is present. When a multipart/form-data request is sent without a Content-Length header, such as with HTTP chunked transfer encoding, multipart parsing continues until end-of-stream with no total size limit. For file parts, the uploaded body is written directly to a temporary file on disk rather than being constrained by the buffered in-memory upload limit. An unauthenticated attacker can therefore stream an arbitrarily large multipart file upload and consume unbounded disk space. This results in a denial of service condition for Rack applications that accept multipart form data. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n`Rack::Multipart::Parser` only wraps the request body in a `BoundedIO` when `CONTENT_LENGTH` is present. When a `multipart/form-data` request is sent without a `Content-Length` header, such as with HTTP chunked transfer encoding, multipart parsing continues until end-of-stream with no total size limit.\n\nFor file parts, the uploaded body is written directly to a temporary file on disk rather than being constrained by the buffered in-memory upload limit. An unauthenticated attacker can therefore stream an arbitrarily large multipart file upload and consume unbounded disk space.\n\nThis results in a denial of service condition for Rack applications that accept multipart form data.\n\n## Details\n\n`Rack::Multipart::Parser.parse` applies `BoundedIO` only when `content_length` is not `nil`:\n\n```ruby\nio = BoundedIO.new(io, content_length) if content_length\n```\n\nWhen `CONTENT_LENGTH` is absent, the parser reads the multipart body until EOF without a global byte limit.\n\nAlthough Rack enforces `BUFFERED_UPLOAD_BYTESIZE_LIMIT` for retained non-file parts, file uploads are handled differently. When a multipart part includes a filename, the body is streamed to a `Tempfile`, and the retained-size accounting is not applied to that file content. As a result, file parts are not subject to the same upload size bound.\n\nAn attacker can exploit this by sending a chunked `multipart/form-data` request containing a file part and continuously streaming data without declaring a `Content-Length`. Rack will continue writing the uploaded data to disk until the client stops or the server exhausts available storage.\n\n## Impact\n\nAny Rack application that accepts `multipart/form-data` uploads may be affected if no upstream component enforces a request body size limit.\n\nAn unauthenticated attacker can send a large chunked file upload to consume disk space on the application host. This may cause request failures, application instability, or broader service disruption if the host runs out of available storage.\n\nThe practical impact depends on deployment architecture. Reverse proxies or application servers that enforce upload limits may reduce or eliminate exploitability, but Rack itself does not impose a total multipart upload limit in this code path when `CONTENT_LENGTH` is absent.\n\n## Mitigation\n\n* Update to a patched version of Rack that enforces a total multipart upload size limit even when `CONTENT_LENGTH` is absent.\n* Enforce request body size limits at the reverse proxy or application server.\n* Isolate temporary upload storage and monitor disk consumption for multipart endpoints.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Rack es una interfaz modular de servidor web Ruby. Antes de las versiones 2.2.23, 3.1.21 y 3.2.6, Rack::Multipart::Parser solo envuelve el cuerpo de la solicitud en un BoundedIO cuando CONTENT_LENGTH está presente. Cuando se envía una solicitud multipart/form-data sin una cabecera Content-Length, como con la codificación de transferencia fragmentada HTTP, el análisis multipart continúa hasta el final del flujo sin un límite de tamaño total. Para las partes de archivos, el cuerpo subido se escribe directamente en un archivo temporal en disco en lugar de estar limitado por el límite de carga en memoria almacenado en búfer. Un atacante no autenticado puede, por lo tanto, transmitir una carga de archivo multipart arbitrariamente grande y consumir espacio en disco ilimitado. Esto resulta en una condición de denegación de servicio para las aplicaciones Rack que aceptan datos de formulario multipart. Este problema ha sido parcheado en las versiones 2.2.23, 3.1.21 y 3.2.6.","source":"nvd"}],"published":"2026-04-02T16:46:47.357Z","modified":"2026-09-10T03:51:01.258Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 2.2.23","status":"affected"},{"version":">= 3.0.0.beta1, < 3.1.21","status":"affected"},{"version":">= 3.2.0, < 3.2.6","status":"affected"}],"vendor":"rack","product":"rack","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/cluster-logging-operator-bundle","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/cluster-logging-rhel9-operator","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/eventrouter-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/fluentd-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/log-file-metric-exporter-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/logging-view-plugin-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/vector-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp20/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp20/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp21/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp21/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp21/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp22/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp22/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp22/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp24/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp24/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp24/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp25/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp25/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp25/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp26/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp26/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp26/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/backend-rhel7","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/backend-rhel8","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/system-rhel7","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/system-rhel8","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/system-rhel9","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/zync-rhel7","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/zync-rhel8","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/zync-rhel9","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"pcs","cpe":"cpe:/o:redhat:enterprise_linux:10","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"pcs","cpe":"cpe:/o:redhat:enterprise_linux:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"pcs","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"pcs","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.23"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0.beta1","status":"affected","fixed":"3.1.21"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2.0","status":"affected","fixed":"3.2.6"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.23"},{"status":"affected","introduced":"3.0.0","fixed":"3.1.21"},{"status":"affected","introduced":"3.2.0","fixed":"3.2.6"}],"vendor":"rack","product":"rack","cpe":"cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-8vqr-qjwx-82mw","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34829","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2454488","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34829.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34829","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rack/rack","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-34829.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-02T17:41:27.704Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34829","url":"https://www.cve.org/CVERecord?id=CVE-2026-34829","licence":"CVE Terms of Use","modified":"2026-07-15T01:03:38.459Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8vqr-qjwx-82mw","url":"https://github.com/advisories/GHSA-8vqr-qjwx-82mw","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:01.258Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34829","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34829","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:17.811Z","epss":{"score":0.00423,"percentile":0.38559,"date":"2026-12-02T12:00:21.000Z"}}