// For flags

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
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
Low
* 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
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