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 v4 NEW
โ€”
not yet in upstream
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

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 2:6.1.7.3+dfsg-1
sid Fixed 2:6.1.7.3+dfsg-1
forky Fixed 2:6.1.7.3+dfsg-1
bullseye Fixed 2:6.0.3.7+dfsg-2+deb11u1
bookworm Fixed 2:6.1.7.3+dfsg-1
rockylinux Rocky Linux Fixed 1 release
VersionStatusFixed in
8 Fixed โ€”

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

Community-verified mitigations for this CVE will appear above when contributors publish them.

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