CVE-2023-22794CWE-89sql-injection

CVE-2023-22794

High · published February 10, 2023

CVSS v3.1
8.8
EPSS
2%
Percentile
82.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02153 · 82.0th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2023-02-10T01:15Z
Affected products (3)
ProductVersionsFixed in
activerecord_project/activerecord≥ 6.0.0, < 6.0.6.16.0.6.1
activerecord_project/activerecord≥ 6.1.0, < 6.1.7.16.1.7.1
activerecord_project/activerecord≥ 7.0.0, < 7.0.4.17.0.4.1
References (6)
EPSS history
Timeline
  • 09 FEB 00:00Z
    A vulnerability in ActiveRecord <6.0.6.1, v6.1.7.1 and v7.0.4.1 related to the sanitization of comments
    cvelistv5