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
EPSS: 0.022 (80.3th percentile) — read the EPSS interpretation.
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.
Affected products
- Activerecord_project Activerecord
- N/a 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
- support@hackerone.com (Exploit, Patch, Vendor Advisory)
- support@hackerone.com (vendor-advisory)
- support@hackerone.com
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.