ADVISORIES

GitHub Advisory Database

GHSA-33wh-w4m7-c6r8

update_by_case before 0.1.3 can be vulnerable to sql injection

Moderate CVE-2022-35956

Details

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.

Affected packages

EcosystemPackageAffected versions
RubyGemsupdate_by_case
All versions before 0.1.3 (fixed in 0.1.3)

References