SQL Injection Affecting rails package, versions <2:6.0.3.7+dfsg-2+deb11u1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.24% (65th 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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN11-RAILS-3251774
  • published27 Jan 2023
  • disclosed9 Feb 2023

Introduced: 27 Jan 2023

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

How to fix?

Upgrade Debian:11 rails to version 2:6.0.3.7+dfsg-2+deb11u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rails package and not the rails package as distributed by Debian. See How to fix? for Debian:11 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 Scores

version 3.1