CVE-2023-22794
SQL Injection Vulnerability via ActiveRecord comments
8.8
HIGH
CVSS 3.1
EPSS 5.8%
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.
How to fix CVE-2023-22794
To remediate CVE-2023-22794, upgrade the affected package to a fixed version below.
- —upgrade to 2:6.0.3.7+dfsg-2+deb11u1 or later
- —upgrade to 6.0.6.1 or later
Is CVE-2023-22794 being exploited?
Moderate — EPSS is 5.8%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (2)
- from 0, < 2:6.0.3.7+dfsg-2+deb11u1
- >= 6.0.0, < 6.0.6.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |