CVE-2023-22794
rubygem-activerecord: SQL Injection
Severity Score
8.8
*CVSS v3.1
Exploit Likelihood
*EPSS
Affected Versions
*CPE
Public Exploits
1
*Multiple Sources
Exploited in Wild
-
*KEV
Decision
-
*SSVC
Descriptions
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.
A flaw was found in RubyGem's activerecord gem, which is vulnerable to SQL injection. This flaw allows a remote attacker to send specially-crafted SQL statements to the comments, allowing the attacker to view, add, modify, or delete information in the back-end database.
*Credits:
N/A
CVSS Scores
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
* Common Vulnerability Scoring System
SSVC
- Decision:-
Exploitation
Automatable
Tech. Impact
* Organization's Worst-case Scenario
Timeline
- 2023-01-06 CVE Reserved
- 2023-02-09 CVE Published
- 2024-08-02 CVE Updated
- 2024-08-02 First Exploit
- 2024-09-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CAPEC
References (5)
URL | Tag | Source |
---|---|---|
https://security.netapp.com/advisory/ntap-20240202-0008 |
URL | Date | SRC |
---|---|---|
https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117 | 2024-08-02 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://www.debian.org/security/2023/dsa-5372 | 2024-02-02 | |
https://access.redhat.com/security/cve/CVE-2023-22794 | 2023-11-08 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2164785 | 2023-11-08 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Activerecord Project Search vendor "Activerecord Project" | Activerecord Search vendor "Activerecord Project" for product "Activerecord" | >= 6.0.0 < 6.0.6.1 Search vendor "Activerecord Project" for product "Activerecord" and version " >= 6.0.0 < 6.0.6.1" | ruby |
Affected
| ||||||
Activerecord Project Search vendor "Activerecord Project" | Activerecord Search vendor "Activerecord Project" for product "Activerecord" | >= 6.1.0 < 6.1.7.1 Search vendor "Activerecord Project" for product "Activerecord" and version " >= 6.1.0 < 6.1.7.1" | ruby |
Affected
| ||||||
Activerecord Project Search vendor "Activerecord Project" | Activerecord Search vendor "Activerecord Project" for product "Activerecord" | >= 7.0.0 < 7.0.4.1 Search vendor "Activerecord Project" for product "Activerecord" and version " >= 7.0.0 < 7.0.4.1" | ruby |
Affected
|