Vulnerability · CVE-2023-22794
A vulnerability in ActiveRecord <6.0.6.1, v6.1.7.1 and v7.0.4.1 related to the sanitization of comments.
Published Feb 9, 2023 · catalog updated Oct 23, 2026 · activerecord project
Last checked Oct 24, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2023-22794. EPSS is 2.15%. Act only if a listed version of activerecord project is installed.
Gaps on this record
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
Same product and reporting
- CVE-2022-44566 · High
- Severity
- High8.8
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 2.15%
- Remediation
- Version ranges on file
- Affected products
- cpe activerecord project/activerecord
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 query method, the 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.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe activerecord project/activerecord< 6.0.6.1
- cpe activerecord project/activerecord< 6.1.7.1
- cpe activerecord project/activerecord< 7.0.4.1
How to fix CVE-2023-22794
Upgrade
CVE-2023-22794 lists a fix boundary at 6.0.6.1. Compare the installed build with that boundary before you change production.
Version check
Affected < 6.0.6.1
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2023-22794. EPSS is 2.15%. Act only if a listed version of activerecord project is installed.
Which versions are affected?
Compare what you have installed with activerecord project/activerecord < 6.0.6.1; activerecord project/activerecord < 6.1.7.1; activerecord project/activerecord < 7.0.4.1. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-89: SQL Injection. EPSS 2.15%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Feb 9, 2023 · NIST NVD
Detected
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 query method, the 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.
Oct 23, 2026 · NIST NVD
Updated
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 query method, the 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.
Sources
- CVE.orgVulnerability recordCVE-2023-22794
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2023-22794
30-day exploitation probability 2.15%
first.org - NIST NVDVulnerability recordCVE-2023-22794
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 query method, the query method, or through the QueryLogs interface which automatically adds annota
nvd.nist.gov
References
Freshness
Last verified in this catalog Oct 24, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- CVE.orgOct 24, 2026
- FIRST EPSSOct 24, 2026
- NIST NVDOct 24, 2026