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, 82.5th percentile (last changed ); unchanged over 30 days. About EPSS.
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 exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-active… (Exploit, Patch, Vendor Advisory)
- DSA-5372 (vendor-advisory)
- security.netapp.com/advisory/ntap-20240202-0008/