CVE-2023-22794
No exploitation reported by the sources we read.
- Published2023-02-09
- Fixed in7.0.4.1 · 6.1.7.1 · 6.0.6.1
- WeaknessCWE-89
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2023-02-0920:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.0 | ≥ 7.0.0, < 7.0.4.1 | 7.0.4.1 | NVD · OSV |
| 6.1 | ≥ 6.1.0, < 6.1.7.1 | 6.1.7.1 | NVD · OSV |
| 6.0 | ≥ 6.0.0, < 6.0.6.1 | 6.0.6.1 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- foremanRed Hat:satellite:6.14::el8all versions · fixed in 0:3.7.0.9-1.el8satand 13 other packages
- foremanRed Hat:satellite_utils:6.14::el8all versions · fixed in 0:3.7.0.9-1.el8satand 1 other package
- foremanRed Hat:satellite_capsule:6.14::el8all versions · fixed in 0:3.7.0.9-1.el8satand 1 other package
- puppet-agentRed Hat:satellite:6.14::el8all versions · fixed in 0:7.26.0-3.el8sat
- puppet-agentRed Hat:satellite_capsule:6.14::el8all versions · fixed in 0:7.26.0-3.el8sat
- puppetserverRed Hat:satellite:6.14::el8all versions · fixed in 0:7.11.0-1.el8sat
- puppetserverRed Hat:satellite_capsule:6.14::el8all versions · fixed in 0:7.11.0-1.el8sat
- python-djangoRed Hat:satellite:6.14::el8all versions · fixed in 0:3.2.21-1.el8pcand 1 other package
35 more package ranges on OSV.dev
Vendor advisories
rubygem-activerecord: SQL Injection
Red Hat Security Advisory: Satellite 6.14 security and bug fix update
Fix
- Update Activerecord project activerecord to 7.0.4.1 · 6.1.7.1 · 6.0.6.1
- Vendor fix Red Hat Product Security RHSA-2023:6818 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.14/html/upgrading_red_hat_satellite_to_6.14/index
Advisories and patches
- discuss.rubyonrails.orgPatch · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.18.8read 2026-10-24
- CNAweakness (CWE)CWE-89known since 2026-10-24
- NVDweakness (CWE)CWE-89read 2026-10-24
- FIRST EPSSEPSS score2.2 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHigh2023-01-18
Identifiers
- EUVD-2023-0490same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-hq7p-j377-6v63same flawGitHub Advisory Database · CC-BY-4.0
- DSA-5372-1advisory covering several CVEsDebian · LicenseRef-unstated
- OESA-2023-1132advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1133advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:12766-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14069-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15112-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:6818advisory covering several CVEsRed Hat · CC-BY-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2023-02-09
- Last modified
- 2026-10-23
- NVD status
- Modified
- GitHub advisory
- GHSA-hq7p-j377-6v63
Frequently asked questions
What is CVE-2023-22794?
Is CVE-2023-22794 actively exploited?
What is the CVSS score for CVE-2023-22794?
Running activerecord? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-hq7p-j377-6v63
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0