{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-22794","published":"2023-02-09T20:15:11.353000Z","last_modified":"2026-10-23T23:10:00.157000Z","status":"Modified","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-89"],"cpes":[{"criteria":"cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*","part":"a","vendor":"activerecord_project","product":"activerecord","version_start_including":"6.0.0","version_end_excluding":"6.0.6.1"},{"criteria":"cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*","part":"a","vendor":"activerecord_project","product":"activerecord","version_start_including":"6.1.0","version_end_excluding":"6.1.7.1"},{"criteria":"cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*","part":"a","vendor":"activerecord_project","product":"activerecord","version_start_including":"7.0.0","version_end_excluding":"7.0.4.1"}],"cpes_truncated":false,"vendors":["activerecord_project"],"products":["activerecord_project/activerecord"],"epss":{"score":0.02034,"percentile":0.81756,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-hq7p-j377-6v63","ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[{"introduced":"6.0.0","fixed":"6.0.6.1"}],"versions":["6.0.0","6.0.1","6.0.1.rc1","6.0.2","6.0.2.1","6.0.2.2","6.0.2.rc1","6.0.2.rc2","6.0.3","6.0.3.1","6.0.3.2","6.0.3.3","6.0.3.4","6.0.3.5","6.0.3.6","6.0.3.7","6.0.3.rc1","6.0.4","6.0.4.1","6.0.4.2","6.0.4.3","6.0.4.4","6.0.4.5","6.0.4.6","6.0.4.7","6.0.4.8","6.0.5","6.0.5.1","6.0.6"],"versions_truncated":false},{"advisory":"GHSA-hq7p-j377-6v63","ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[{"introduced":"6.1.0","fixed":"6.1.7.1"}],"versions":["6.1.0","6.1.1","6.1.2","6.1.2.1","6.1.3","6.1.3.1","6.1.3.2","6.1.4","6.1.4.1","6.1.4.2","6.1.4.3","6.1.4.4","6.1.4.5","6.1.4.6","6.1.4.7","6.1.5","6.1.5.1","6.1.6","6.1.6.1","6.1.7"],"versions_truncated":false},{"advisory":"GHSA-hq7p-j377-6v63","ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[{"introduced":"7.0.0","fixed":"7.0.4.1"}],"versions":["7.0.0","7.0.1","7.0.2","7.0.2.1","7.0.2.2","7.0.2.3","7.0.2.4","7.0.3","7.0.3.1","7.0.4"],"versions_truncated":false}],"severity":"high","priority_score":53,"links":{"html_es":"/es/cve/CVE-2023-22794/","html_en":"/en/cve/CVE-2023-22794/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-22794","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-22794"},"untrusted":{"vendor_name":"Activerecord Project","product_name":"Activerecord","desc_en":"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.","affected":[],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117","tags":["Exploit","Patch","Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240202-0008/","tags":[]},{"url":"https://www.debian.org/security/2023/dsa-5372","tags":[]}]},"bulletins":[{"source":"redhat","id":"RHSA-2023:6818","url":"https://access.redhat.com/errata/RHSA-2023:6818","published":"2024-10-02T11:32:05+00:00","severity":"high","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: Satellite 6.14 security and bug fix update"}}]}