Vulnerability advisory

CVE-2024-26142

Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch

Published Updated OSV record ↗

Also known as BIT-rails-2024-26142GHSA-jjhx-jhvp-74wq

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/rails/rails ↗
d39db5d1891f7509cde2efc425c9d69bbb77e670 to before d73ed958dc91d6b8cbb0bef7b4cdcfc013bd876fd73ed958dc91d6b8cbb0bef7b4cdcfc013bd876f
Not specifiedb4d3bfb5ed8a5b5a90aad3a3b28860c7a931e272
Also listed as affected (4)
  • v7.1.3
  • v7.1.2
  • v7.1.1
  • v7.1.0

Description

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools