CVE-2023-22794
Last modified
CVE-2023-22794 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 2.15% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Activerecord Project | Activerecord | >= 6.0.0, < 6.0.6.1 |
| Activerecord Project | Activerecord | >= 6.1.0, < 6.1.7.1 |
| Activerecord Project | Activerecord | >= 7.0.0, < 7.0.4.1 |
References
- https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117Exploit, Patch, Vendor Advisory
- https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117Exploit, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-22794?
How severe is CVE-2023-22794?
How do I fix CVE-2023-22794?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-22788Multiple authenticated command injection vulnerabilities exi…8.8
- CVE-2023-22789Multiple authenticated command injection vulnerabilities exi…8.8
- CVE-2023-2279The WP Directory Kit plugin for WordPress is vulnerable to C…5.4
- CVE-2023-22790Multiple authenticated command injection vulnerabilities exi…8.8
- CVE-2023-22791A vulnerability exists in Aruba InstantOS and ArubaOS 10 whe…4.8
- CVE-2023-22792A regular expression based DoS vulnerability in Action Dispa…7.5
- CVE-2023-22795A regular expression based DoS vulnerability in Action Dispa…7.5
- CVE-2023-22796A regular expression based DoS vulnerability in Active Suppo…7.5
- CVE-2023-22797An open redirect vulnerability is fixed in Rails 7.0.4.1 wit…6.1
- CVE-2023-22798Prior to commit 51867e0d15a6d7f80d5b714fd0e9976b9c160bb0, ht…6.1
- CVE-2023-22799A ReDoS based DoS vulnerability in the GlobalID <1.0.1 which…7.5
- CVE-2023-2280The WP Directory Kit plugin for WordPress is vulnerable to u…5.3
Are you affected by CVE-2023-22794?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
