CVE-2022-35956 - CVE House
Back to Database
Status published Medium CVE-2022-35956

update_by_case before 0.1.3 vulnerable to sql injection

Vulnerability Description

This Rails gem adds two methods to the ActiveRecord::Base class that allow you to update many records on a single database hit, using a case sql statement for it. 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-35956

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

activerecord-update-by-case
Vulnerable Versions:
< 0.1.3

Timeline

Official Publish: August 12th, 2022
Last Modified: April 23rd, 2025
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L

Weaknesses (CWE)