{"id":"CVE-2024-26142","aliases":["CVE-2024-26142","GHSA-jjhx-jhvp-74wq","BIT-RAILS-2024-26142"],"related":[],"kind":"vulnerability","state":"published","title":"Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch","summary":"Rails is a web-application framework. Starting in version 7.1.0, there is a possible ReDoS vulnerability in the Accept header parsing routines of Action Dispatch. This vulnerability is patched in 7.1.3.1. Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Rails is a web-application framework. Starting in version 7.1.0, there is a possible ReDoS vulnerability in the Accept header parsing routines of Action Dispatch. This vulnerability is patched in 7.1.3.1. Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected.","source":"cvelist"},{"lang":"en","text":"# Possible ReDoS vulnerability in Accept header parsing in Action Dispatch\n\nThere is a possible ReDoS vulnerability in the Accept header parsing routines\nof Action Dispatch. This vulnerability has been assigned the CVE identifier\nCVE-2024-26142.\n\nVersions Affected:  >= 7.1.0, < 7.1.3.1\nNot affected:       < 7.1.0\nFixed Versions:     7.1.3.1\n\nImpact\n------\nCarefully crafted Accept headers can cause Accept header parsing in Action\nDispatch to take an unexpected amount of time, possibly resulting in a DoS\nvulnerability.  All users running an affected release should either upgrade or\nuse one of the workarounds immediately.\n\nRuby 3.2 has mitigations for this problem, so Rails applications using Ruby\n3.2 or newer are unaffected.\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nWorkarounds\n-----------\nThere are no feasible workarounds for this issue.\n\nPatches\n-------\nTo aid users who aren't able to upgrade immediately we have provided patches for\nthe two supported release series. They are in git-am format and consist of a\nsingle changeset.\n\n* 7-1-accept-redox.patch - Patch for 7.1 series\n\nCredits\n-------\nThanks [svalkanov](https://hackerone.com/svalkanov) for the report and patch!","format":"markdown","source":"ghsa"},{"lang":"es","text":"Rails es un framework de aplicación web. A partir de la versión 7.1.0, existe una posible vulnerabilidad ReDoS en las rutinas de análisis del encabezado Aceptar de Action Dispatch. Esta vulnerabilidad está parcheada en 7.1.3.1. Ruby 3.2 tiene mitigaciones para este problema, por lo que las aplicaciones Rails que usan Ruby 3.2 o posterior no se ven afectadas.","source":"nvd"}],"published":"2024-02-27T15:25:44.103Z","modified":"2026-09-10T03:50:06.210Z","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":"GitHub","scheme":"rating","rating":"LOW"},{"scorer":"NVD","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":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":">= 7.1.0, < 7.1.3.1","status":"affected"}],"vendor":"rails","product":"rails","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"7.1.0","lastAffected":"7.1.3.1","status":"affected"}],"vendor":"rails","product":"rails","cpe":"cpe:2.3:a:rails:rails:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"7.1.0","status":"affected","fixed":"7.1.3.1"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"7.1.0","fixed":"7.1.3.1"}],"vendor":"rubyonrails","product":"rails","cpe":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"7.1.0","status":"affected","fixed":"7.1.4"}],"ecosystem":"Bitnami","package":"rails","purl":"pkg:bitnami/rails","source":"bitnami"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-jjhx-jhvp-74wq","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/b4d3bfb5ed8a5b5a90aad3a3b28860c7a931e272","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://discuss.rubyonrails.org/t/possible-redos-vulnerability-in-accept-header-parsing-in-action-dispatch/84946","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26142.yml","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20240503-0003/","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26142","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/rails/rails","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-02-28T20:01:00.813Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26142","url":"https://www.cve.org/CVERecord?id=CVE-2024-26142","licence":"CVE Terms of Use","modified":"2025-02-13T17:41:05.743Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jjhx-jhvp-74wq","url":"https://github.com/advisories/GHSA-jjhx-jhvp-74wq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:06.210Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26142","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26142","licence":"Public domain","modified":"2026-06-17T07:17:11.210Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RAILS-2024-26142","url":"https://osv.dev/vulnerability/BIT-RAILS-2024-26142","licence":"Apache-2.0","modified":"2025-05-20T10:02:07.006Z"}],"updatedAt":"2026-11-25T22:58:37.084Z","epss":{"score":0.01498,"percentile":0.74985,"date":"2026-12-01T12:00:22.000Z"}}