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.
SQL Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 90%
Affected Products (NVD)
VendorProductVersion
activerecord_projectactiverecord
6.0.0 ≤
𝑥
< 6.0.6.1
activerecord_projectactiverecord
6.1.0 ≤
𝑥
< 6.1.7.1
activerecord_projectactiverecord
7.0.0 ≤
𝑥
< 7.0.4.1
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
rails
bookworm
2:6.1.7.3+dfsg-2~deb12u1
fixed
bullseye
2:6.0.3.7+dfsg-2+deb11u2
fixed
bullseye (security)
2:6.0.3.7+dfsg-2+deb11u2
fixed
buster
not-affected
sid
2:6.1.7.3+dfsg-4
fixed
trixie
2:6.1.7.3+dfsg-4
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
rails
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
kinetic
ignored
lunar
ignored
mantic
ignored
noble
needs-triage
oracular
needs-triage
trusty
ignored
xenial
needs-triage
rails-4.0
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
ignored
xenial
dne
ruby-actionpack-3.2
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
ignored
xenial
dne
ruby-activemodel-3.2
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
ignored
xenial
dne
ruby-activerecord-3.2
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
ignored
xenial
dne
ruby-activesupport-3.2
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
ignored
xenial
dne
ruby-rails-3.2
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
ignored
xenial
dne