Vulnerability advisory

CVE-2021-22902

Published Updated OSV record ↗

Also known as GHSA-g8ww-46x2-2p65

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 ↗
66cabeda2c46c582d19738e1318be8d59584cc5b to before c04aff675d4cd3e8a54e0008dbfca10a8832a414c04aff675d4cd3e8a54e0008dbfca10a8832a414
Also listed as affected (9)
  • v6.0.3.6
  • v6.0.3.5
  • v6.0.3.4
  • v6.0.3.3
  • v6.0.3.2
  • v6.0.3.1
  • v6.0.3
  • v6.0.3.rc1
  • v6.0.0

Description

The actionpack ruby gem (a framework for handling and responding to web requests in Rails) before 6.0.3.7, 6.1.3.2 suffers from a possible denial of service vulnerability in the Mime type parser of Action Dispatch. Carefully crafted Accept headers can cause the mime type parser in Action Dispatch to do catastrophic backtracking in the regular expression engine.

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