CVE-2025-61771
Full vulnerability record from the local CVENow database.
Description
Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, ``Rack::Multipart::Parser` stores non-file form fields (parts without a `filename`) entirely in memory as Ruby `String` objects. A single large text field in a multipart/form-data request (hundreds of megabytes or more) can consume equivalent process memory, potentially leading to out-of-memory (OOM) conditions and denial of service (DoS). Attackers can send large non-file fields to trigger excessive memory usage. Impact scales with request size and concurrency, potentially leading to worker crashes or severe garbage-collection overhead. All Rack applications processing multipart form submissions are affected. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a reasonable size cap for non-file fields (e.g., 2 MiB). Workarounds include restricting maximum request body size at the web-server or proxy layer (e.g., Nginx `client_max_body_size`) and validating and rejecting unusually large form fields at the application level.
View original CVE JSON
{
"id": "CVE-2025-61771",
"sourceIdentifier": "[email protected]",
"published": "2025-10-07T15:16:03.123",
"lastModified": "2026-10-19T16:10:00.260",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, ``Rack::Multipart::Parser` stores non-file form fields (parts without a `filename`) entirely in memory as Ruby `String` objects. A single large text field in a multipart/form-data request (hundreds of megabytes or more) can consume equivalent process memory, potentially leading to out-of-memory (OOM) conditions and denial of service (DoS). Attackers can send large non-file fields to trigger excessive memory usage. Impact scales with request size and concurrency, potentially leading to worker crashes or severe garbage-collection overhead. All Rack applications processing multipart form submissions are affected. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a reasonable size cap for non-file fields (e.g., 2 MiB). Workarounds include restricting maximum request body size at the web-server or proxy layer (e.g., Nginx `client_max_body_size`) and validating and rejecting unusually large form fields at the application level."
},
{
"lang": "es",
"value": "Rack es una interfaz modular de servidor web Ruby. En versiones anteriores a la 2.2.19, 3.1.17 y 3.2.2, 'Rack::Multipart::Parser' almacena campos de formulario que no son archivos (partes sin un 'filename') completamente en memoria como objetos Ruby 'String'. Un único campo de texto grande en una solicitud multipart/form-data (cientos de megabytes o más) puede consumir memoria de proceso equivalente, lo que podría llevar a condiciones de falta de memoria (OOM) y denegación de servicio (DoS). Los atacantes pueden enviar campos grandes que no son archivos para desencadenar un uso excesivo de memoria. El impacto escala con el tamaño de la solicitud y la concurrencia, lo que podría llevar a fallos de los workers o a una sobrecarga severa de la recolección de basura. Todas las aplicaciones Rack que procesan envíos de formularios multipart están afectadas. Las versiones 2.2.19, 3.1.17 y 3.2.2 imponen un límite de tamaño razonable para los campos que no son archivos (p. ej., 2 MiB). Las soluciones incluyen restringir el tamaño máximo del cuerpo de la solicitud en la capa del servidor web o proxy (p. ej., Nginx 'client_max_body_size') y validar y rechazar campos de formulario inusualmente grandes a nivel de aplicación."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "rack",
"product": "rack",
"versions": [
{
"version": "< 2.2.19",
"status": "affected"
},
{
"version": ">= 3.1, < 3.1.17",
"status": "affected"
},
{
"version": ">= 3.2, < 3.2.2",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-10-07T17:51:58.348077Z",
"id": "CVE-2025-61771",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-400"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*",
"versionEndExcluding": "2.2.19",
"matchCriteriaId": "EBB6060B-A06F-4A88-8457-AD850E63E562"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*",
"versionStartIncluding": "3.1.0",
"versionEndExcluding": "3.1.17",
"matchCriteriaId": "850EC79C-0F31-441F-9001-B7CA0CD7758F"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*",
"versionStartIncluding": "3.2.0",
"versionEndExcluding": "3.2.2",
"matchCriteriaId": "9A009CC5-8010-446E-A12B-BF5314CA5BEB"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/rack/rack/security/advisories/GHSA-w9pc-fmgc-vxvw",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
}
]
}