High severityNVD Advisory· Published Feb 9, 2023· Updated Aug 2, 2024
CVE-2023-22794
CVE-2023-22794
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
activerecordRubyGems | >= 6.0.0, < 6.0.6.1 | 6.0.6.1 |
activerecordRubyGems | >= 6.1.0, < 6.1.7.1 | 6.1.7.1 |
activerecordRubyGems | >= 7.0.0, < 7.0.4.1 | 7.0.4.1 |
Affected products
3- ActiveRecord/ActiveRecorddescription
- ghsa-coords2 versions
>= 6.0.0, < 6.0.6.1+ 1 more
- (no CPE)range: >= 6.0.0, < 6.0.6.1
- (no CPE)range: < 7.0.4.1-1.1
Patches
Vulnerability mechanics
References
9- github.com/advisories/GHSA-hq7p-j377-6v63ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-22794ghsaADVISORY
- www.debian.org/security/2023/dsa-5372ghsavendor-advisoryWEB
- discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117ghsaWEB
- github.com/rails/rails/commit/d7aba06953f9fa789c411676b941d20df8ef73deghsaWEB
- github.com/rails/rails/releases/tag/v7.0.4.1ghsaWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2023-22794.ymlghsaWEB
- security.netapp.com/advisory/ntap-20240202-0008ghsaWEB
- security.netapp.com/advisory/ntap-20240202-0008/mitre
News mentions
0No linked articles in our index yet.