All reports
Medium

update_by_case before 0.1.3 can be vulnerable to sql injection

Affected versions

Affected versions
< 0.1.3
Fixed version
0.1.3

Exploitation

CVE-2022-35956

Probability of exploitation in the next 30 days: 0.65%

FIRST EPSS · 2026-11-21

Description

Before version 0.1.3 update_by_case gem used custom sql strings, and it was not sanitized, making it vulnerable to sql injection. Upgrade to version >= 0.1.3 that uses Arel instead to construct the resulting sql statement, with sanitized sql.

Links