CVE-2023-22794

high
Published 2023-01-18 · Modified 2024-02-21
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v2
VIR risk
8.0

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2023-22794

vendor Authored 2026-05-27

Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2023:6818

OS impact

OSVersionStatusFixed in
rockylinux rocky8fixed
debian debianbookwormfixed2:6.1.7.3+dfsg-1
debian debianbullseyefixed2:6.0.3.7+dfsg-2+deb11u1
debian debianforkyfixed2:6.1.7.3+dfsg-1
debian debiansidfixed2:6.1.7.3+dfsg-1
debian debiantrixiefixed2:6.1.7.3+dfsg-1

Package impact

EcosystemPackageVulnerableFixed
ruby RubyGemsactiverecord!< 6.0.0||<~> 6.0.6, >= 6.0.6.1~> 6.0.6, >= 6.0.6.1
ruby RubyGemsactiverecord>=6.0.0,<6.0.6.16.0.6.1
ruby RubyGemsactiverecord>=6.1.0,<6.1.7.16.1.7.1
ruby RubyGemsactiverecord>=7.0.0,<7.0.4.17.0.4.1

References

Verify integrity in audit chain (admin only). AS-IS.