CVE-2023-22794

Summary

CVECVE-2023-22794
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-02-09 20:15:00 UTC
Updated2024-02-02 14:15:00 UTC
DescriptionA 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.

Risk And Classification

Problem Types: CWE-89

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Activerecord Project Activerecord All All All All

References

ReferenceSourceLinkTags
Debian -- Security Information -- DSA-5372-1 rails DEBIAN www.debian.org
CVE-2023-22794 Ruby on Rails Vulnerability in NetApp Products | NetApp Product Security security.netapp.com
[CVE-2023-22794] SQL Injection Vulnerability via ActiveRecord comments - Security Announcements - Ruby on Rails Discussions MISC discuss.rubyonrails.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 181676 Debian Security Update for rails (DSA 5372-1)
  • 184713 Debian Security Update for rails (CVE-2023-22794)
  • 242347 Red Hat Update for Satellite 6.14 (RHSA-2023:6818)
  • 284280 Fedora Security Update for rubygem (FEDORA-2023-f60cca0686)
  • 961065 Rocky Linux Security Update for Satellite (RLSA-2023:6818)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report