CVE-2023-22794
Summary
| CVE | CVE-2023-22794 |
|---|---|
| State | PUBLISHED |
| Assigner | hackerone |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-02-09 20:15:11 UTC |
| Updated | 2026-10-23 23:10:00 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-89 | CWE-89 SQL Injection (CWE-89)
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Activerecord Project | Activerecord | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Na | Https//github.com/rails/rails | affected 6.0.6.1, 6.1.7.1, 7.0.4.1 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| CVE-2023-22794 Ruby on Rails Vulnerability in NetApp Products | NetApp Product Security | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | |
| Debian -- Security Information -- DSA-5372-1 rails | af854a3a-2127-422b-91ae-364da2661108 | www.debian.org | |
| [CVE-2023-22794] SQL Injection Vulnerability via ActiveRecord comments - Security Announcements - Ruby on Rails Discussions | af854a3a-2127-422b-91ae-364da2661108 | discuss.rubyonrails.org | Exploit, Patch, Vendor Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.