Skip to main content
← All vulnerabilities
CVE-2023-22794GHSA-HQ7P-J377-6V63

A vulnerability in ActiveRecord <6.0.6.1, v6.1.7.1 and v7.0.4.1 related to the sanitization of comments.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.0.6.1, 6.1.7.1, 7.0.4.1
None on Exploit-DB, Metasploit or GitHub

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a https://github.com/rails/rails

    Version range not reported

  • activerecordRubyGems

    From 6.0.0 · fixed in 6.0.6.1

  • activerecordRubyGems

    From 6.1.0 · fixed in 6.1.7.1

  • activerecordRubyGems

    From 7.0.0 · fixed in 7.0.4.1

References 3

discuss.rubyonrails.org

debian.org

security.netapp.com