ADVISORIES

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 in Debian

  • 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…

    CVE-2023-22794 Debian Updated 24 October 2026
  • DSA-5372-1

    rails - security update

    CVE-2021-22942CVE-2021-44528CVE-2022-21831CVE-2022-22577 Debian Updated 20 November 2026

References