SQL Injection Affecting update_by_case package, versions <0.1.3


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.18% (56th 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-UPDATEBYCASE-2980124
  • published12 Aug 2022
  • disclosed11 Aug 2022
  • creditUnknown

Introduced: 11 Aug 2022

CVE-2022-35956  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade update_by_case to version 0.1.3 or higher.

Overview

update_by_case is an a package that allows you to update multiple ActiveRecord records based on case values on a single database hit

Affected versions of this package are vulnerable to SQL Injection in the UpdateByCase and Utils classes, which accept and process SQL strings without sanitization.

References

CVSS Scores

version 3.1