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

  • 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
  • GHSA-hq7p-j377-6v63

    SQL Injection Vulnerability via ActiveRecord comments

    High CVE-2023-22794 RubyGems Updated 21 February 2024
  • OESA-2023-1132

    rubygem-activerecord security update

    High CVE-2022-44566CVE-2023-22794 openEuler Updated 18 August 2026
  • OESA-2023-1133

    rubygem-activerecord security update

    High CVE-2022-44566CVE-2023-22794 openEuler Updated 18 August 2026
  • RHSA-2023:6818

    Red Hat Security Advisory: Satellite 6.14 security and bug fix update

    Known exploited CVE-2022-0759CVE-2022-1292CVE-2022-2068CVE-2022-3644 Red Hat Updated 23 November 2026
  • 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…

    CVE-2023-22794 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2024:12766-1

    ruby3.1-rubygem-activerecord-7.0-7.0.4.1-1.1 on GA media

    CVE-2022-44566CVE-2023-22794 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14069-1

    ruby3.3-rubygem-activerecord-7.0-7.0.8.4-1.1 on GA media

    CVE-2022-32224CVE-2022-44566CVE-2023-22794CVE-2023-38037 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:15112-1

    ruby3.4-rubygem-activerecord-7.0-7.0.8.6-1.3 on GA media

    CVE-2022-32224CVE-2022-44566CVE-2023-22794CVE-2023-38037 openSUSE Updated 4 February 2026

References