CVE-2023-22794 — Vulnerability in activerecord — CVE Details
SQL Injection Vulnerability via ActiveRecord comments
Summary
Advisory Timeline
- First published January 18, 2023 (1363 days ago).
- Last revised February 21, 2024 — 398 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install activerecord -v 6.1.7.1
gem install activerecord -v 7.0.4.1
gem install activerecord -v 6.0.6.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| activerecord | rubygems | 6.1.0, 6.1.1, 6.1.2, 6.1.2.1 (+16 more) | 6.1.7.1 |
| activerecord | rubygems | 7.0.0, 7.0.1, 7.0.2, 7.0.2.1 (+6 more) | 7.0.4.1 |
| activerecord | rubygems | 6.0.0, 6.0.1, 6.0.1.rc1, 6.0.2 (+25 more) | 6.0.6.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-22794ADVISORY
- https://github.com/rails/rails/commit/d7aba06953f9fa789c411676b941d20df8ef73deWEB
- https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117WEB
- https://github.com/rails/railsPACKAGE
- https://github.com/rails/rails/releases/tag/v7.0.4.1WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2023-22794.ymlWEB
- https://security.netapp.com/advisory/ntap-20240202-0008WEB
- https://www.debian.org/security/2023/dsa-5372WEB
Frequently Asked Questions
- What is CVE-2023-22794?
- SQL Injection Vulnerability via ActiveRecord comments This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2023-22794?
- CVE-2023-22794 affects activerecord. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-22794 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2022-32224CRITICAL
Active Record RCE bug with Serialized Columns
- CVE-2013-3221CRITICAL
Active Record component in Ruby on Rails has a data-type injection vulnerability
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2022-44566HIGH
Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter
- CVE-2021-22880HIGH
Active Record subject to Regular Expression Denial-of-Service (ReDoS)
- CVE-2016-6317HIGH
ActiveRecord in Ruby on Rails allows database-query bypass
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
- CVE-2025-55193MEDIUM
Active Record logging vulnerable to ANSI escape injection
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies