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
NISTNIST
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
hackeroneCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 88%
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
bullseye (security)
2:6.0.3.7+dfsg-2+deb11u2
fixed
bullseye
2:6.0.3.7+dfsg-2+deb11u2
fixed
buster
not-affected
bookworm
2:6.1.7.3+dfsg-2~deb12u1
fixed
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
oracular
needs-triage
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
ignored
rails-4.0
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
dne
trusty
ignored
ruby-actionpack-3.2
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
dne
trusty
ignored
ruby-activemodel-3.2
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
dne
trusty
ignored
ruby-activerecord-3.2
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
dne
trusty
ignored
ruby-activesupport-3.2
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
dne
trusty
ignored
ruby-rails-3.2
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
dne
trusty
ignored