CVE-2022-35956: This Rails gem adds two methods to the ActiveRecord::Base class that allow you to update many records on a sin
CVE-2022-35956 is a medium-severity flaw (CVSS 5.8) affecting update by case. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.8 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.6% (top 49%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2022-08-12 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-35956?
update by case: upgrade to 0.1.3. Exact commands for each OS are on this page.
Is CVE-2022-35956 being exploited?
CVE-2022-35956 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-35956 affect?
CVE-2022-35956 affects update by case. Severity is medium (CVSS 5.8). 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
How urgent is CVE-2022-35956?
Priority 33/100. No elevated risk signals yet.