Skip to content

update_by_case before 0.1.3 can be vulnerable to sql injection

Moderate
camilova published GHSA-33wh-w4m7-c6r8 Aug 10, 2022

Package

bundler update_by_case (RubyGems)

Affected versions

< 0.1.3

Patched versions

0.1.3

Description

Impact

Before version 0.1.3 update_by_case gem used custom sql strings, and it was not sanitized, making it vulnerable to sql injection.

Patches

Upgrade to version >= 0.1.3 that uses Arel instead to construct the resulting sql statement, with sanitized sql.

Severity

Moderate

CVE ID

CVE-2022-35956

Weaknesses

No CWEs