Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2023-22794
VULNERABILITY

CVE-2023-22794

Common Vulnerabilities and Exposures record

HIGH

Summary

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

CVSS
8.8
Severity
HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Timeline

Published
Feb 9, 2023 20:15
Modified
Oct 23, 2026 23:10
Last observed
Oct 23, 2026 20:11

CWE

CWE-89

Affected product identifiers

cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*

References