https://github.com/rails/rails
At a glance
- Source
- NVD
- EPSS
- EPSS 2.15 % · percentile 82 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- hackerone
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-89 — Improper Neutralization of Special Elements used in an SQL Command
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-hq7p-j377-6v63 — SQL Injection Vulnerability via ActiveRecord comments
European references
- ENISA EUVD · EUVD-2023-0490
- GCVE · GCVE-0-2023-22794
Affected configurations (NVD CPE)
cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*≥ 6.0.0 < 6.0.6.1cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*≥ 6.1.0 < 6.1.7.1cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*≥ 7.0.0 < 7.0.4.1
Affected products
| Product | Versions |
|---|---|
| https://github.com/rails/rails | affected 6.0.6.1, 6.1.7.1, 7.0.4.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |