SQL Injection Affecting marginalia package, versions <1.6.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (55th 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-RUBY-MARGINALIA-461068
  • published6 Sept 2019
  • disclosed20 Sept 2018
  • creditUnknown

Introduced: 20 Sep 2018

CVE-2019-1010191  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade marginalia to version 1.6.0 or higher.

Overview

marginalia is a gem that Attach comments to your ActiveRecord queries.

Affected versions of this package are vulnerable to SQL Injection via Marginalia::Comment. All SQL queries are affected when a user controller argument is added as a component. This affects users that add a component that is user controller, for instance a parameter or a header.

References

CVSS Scores

version 3.1