SQL injection

Affecting marginalia gem, versions <1.6.0

Do your applications use this vulnerable package? Test your applications

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.

Remediation

Upgrade marginalia to version 1.6.0 or higher.

References

CVSS Score

7.5
high severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    None
  • Availability
    None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Credit
Unknown
CVE
CVE-2019-1010191
CWE
CWE-89
Snyk ID
SNYK-RUBY-MARGINALIA-461068
Disclosed
20 Sep, 2018
Published
06 Sep, 2019