RubySec

Providing security resources for the Ruby community

CVE-2022-35956 (update_by_case): update_by_case before 0.1.3 can be vulnerable to sql injection

ADVISORIES

GEM

update_by_case

SEVERITY

CVSS v3.x: 5.8 (Medium)

PATCHED VERSIONS

  • >= 0.1.3

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.