Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rails
  4. ›
  5. CVE-2021-22885

CVE-2021-22885: Possible Information Disclosure / Unintended Method Execution

May 27, 2021 (updated April 6, 2022)

There is a possible information disclosure / unintended method execution vulnerability in Action Pack when using the redirect_to or polymorphic_url helper with untrusted user input.

References

  • groups.google.com/g/rubyonrails-security/c/NiQl-48cXYI
  • nvd.nist.gov/vuln/detail/CVE-2021-22885

Code Behaviors & Features

Detect and mitigate CVE-2021-22885 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.2.0.0 before 5.2.4.6, all versions starting from 6.0.0.0 before 6.0.3.7, all versions starting from 6.1.0.0 before 6.1.3.1

Fixed versions

  • 5.2.4.6
  • 6.0.3.7
  • 6.1.3.1

Solution

Upgrade to versions 5.2.4.6, 6.0.3.7, 6.1.3.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-209: Generation of Error Message Containing Sensitive Information

Source file

gem/rails/CVE-2021-22885.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:47 +0000.