SQL Injection Affecting rubygem-activerecord package, versions *


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
2.18% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL7-RUBYGEMACTIVERECORD-4507673
  • published26 Mar 2023
  • disclosed20 Jan 2023

Introduced: 20 Jan 2023

CVE-2023-22794  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:7 rubygem-activerecord.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rubygem-activerecord package and not the rubygem-activerecord package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1