SQL Injection in Activerecord Project
CVE-2023-22794
A vulnerability in ActiveRecord <6.0.6.1, v6.1.7.1 and v7.0.4.1 related to the sanitization of comments. If malicious user input is passed to either the `annotate` query method, the `optimizer_hints` query method, or through the QueryLogs interface which automatically adds annotations, it may be sent to the database withinsufficient sanitization and be able to inject SQL outside of the comment.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.022 (81.4th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 81st percentile — 81.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.022 · newest: 0.022 · change: 0.000
Affected products
- Activerecord Project
- Https://github.com/rails/rails — versions 6.0.6.1, 6.1.7.1, 7.0.4.1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-active… (Exploit, Patch, Vendor Advisory)
- www.debian.org/security/2023/dsa-5372 (vendor-advisory)
- security.netapp.com/advisory/ntap-20240202-0008/
Frequently asked questions
- What is CVE-2023-22794?
- CVE-2023-22794 is a high-severity vulnerability in Activerecord Project, classified under SQL Injection. CVSS score: 8.8/10. Published 2023-02-09.
- How severe is CVE-2023-22794?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2023-22794 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.