Vulnerability
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.
10 advisories report this vulnerability, across 6 ecosystems.
Advisories
-
DEBIAN-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…
-
DSA-5372-1
rails - security update
-
GHSA-hq7p-j377-6v63
SQL Injection Vulnerability via ActiveRecord comments
-
OESA-2023-1132
rubygem-activerecord security update
-
OESA-2023-1133
rubygem-activerecord security update
-
RHSA-2023:6818
Red Hat Security Advisory: Satellite 6.14 security and bug fix update
-
UBUNTU-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…
-
openSUSE-SU-2024:12766-1
ruby3.1-rubygem-activerecord-7.0-7.0.4.1-1.1 on GA media
-
openSUSE-SU-2024:14069-1
ruby3.3-rubygem-activerecord-7.0-7.0.8.4-1.1 on GA media
-
openSUSE-SU-2025:15112-1
ruby3.4-rubygem-activerecord-7.0-7.0.8.6-1.3 on GA media