update_by_case before 0.1.3 can be vulnerable to sql injection
Published: August 11, 2022
SECURITY IDENTIFIERS
- CVE: CVE-2022-35956 (NVD)
- GHSA: GHSA-33wh-w4m7-c6r8
- Vendor Advisory: https://github.com/camilova/activerecord-update-by-case/security/advisories/GHSA-33wh-w4m7-c6r8
GEM
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.
