Read the docs
TI-2023-08966 Aliases CVE-2023-22794GHSA-hq7p-j377-6v63

SQL injection in https://github.com/rails/rails

Priority MEDIUM 42CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-89.

Summary

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.

Why it matters now

EPSS 0.02153 82nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed activerecord (RubyGems): 6.0.6.1, 6.1.7.1, 7.0.4.1Red Hat: 1 advisory

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—https://github.com/rails/rails6.0.6.1, 6.1.7.1, 7.0.4.1—No fix listedCNA
—activerecord (RubyGems)6.0.0 to before 6.0.6.16.0.6.1Patch availableGHSA-hq7p-j377-6v63
—activerecord (RubyGems)6.1.0 to before 6.1.7.16.1.7.1Patch availableGHSA-hq7p-j377-6v63
—activerecord (RubyGems)7.0.0 to before 7.0.4.17.0.4.1Patch availableGHSA-hq7p-j377-6v63
  • https://github.com/rails/rails Vendor— Affected 6.0.6.1, 6.1.7.1, 7.0.4.1 Fixed in — No fix listed CNA
  • activerecord (RubyGems) Vendor— Affected 6.0.0 to before 6.0.6.1 Fixed in 6.0.6.1 Patch available GHSA-hq7p-j377-6v63
  • activerecord (RubyGems) Vendor— Affected 6.1.0 to before 6.1.7.1 Fixed in 6.1.7.1 Patch available GHSA-hq7p-j377-6v63
  • activerecord (RubyGems) Vendor— Affected 7.0.0 to before 7.0.4.1 Fixed in 7.0.4.1 Patch available GHSA-hq7p-j377-6v63

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*6.0.0 to before 6.0.6.1; 6.1.0 to before 6.1.7.1; 7.0.0 to before 7.0.4.1VulnerableActiverecord Project
  • cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:* Versions 6.0.0 to before 6.0.6.1; 6.1.0 to before 6.1.7.1; 7.0.0 to before 7.0.4.1 Vulnerable ·Activerecord Project

Remediation

  • Fix · GHSA-hq7p-j377-6v63 activerecord (RubyGems) Fixed in 6.0.6.1 Advisory →
  • Fix · GHSA-hq7p-j377-6v63 activerecord (RubyGems) Fixed in 6.1.7.1 Advisory →
  • Fix · GHSA-hq7p-j377-6v63 activerecord (RubyGems) Fixed in 7.0.4.1 Advisory →

Red Hat 1 advisory

  • RHSA-2023:6818 Released 2023-11-08 · Red Hat rating Important
    Satellite 6.14 security and bug fix update
    • Red Hat Satellite 6.14 for RHEL 8 foreman-3.7.0.9-1.el8sat, foreman-cli-3.7.0.9-1.el8sat, foreman-debug-3.7.0.9-1.el8sat +33

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Satellite 6.14 for RHEL 8Fixed RHSA-2023:6818
Not affected: 1 product
  • Red Hat Satellite 6.14 for RHEL 8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-22794
  2. 2026-10-03 Alias added: GHSA-hq7p-j377-6v63

References

  • TI-2022-13933 Deserialization of untrusted data in https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
  • TI-2022-21907 Uncontrolled resource consumption in https://github.com/rails/rails CVSS 3.1HIGH 7.5

Sources