Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-35956: This Rails gem adds two methods to the ActiveRecord::Base class that allow you to update many records on a sin

33
Routine
MEDIUM 5.8UPGRADE

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 score5.8 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionRequired
EPSS exploit chance0.6% (top 49%)
CISA exploited listNo
WeaknessCWE-89
Published2022-08-12
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: update by case project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

update by case project update by case UPGRADE
Affected: < 0.1.3
Fixed in: 0.1.3
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy update-by-case || rpm -q update-by-case || update-by-case --version
2. UPGRADE to 0.1.3 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade update-by-case
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade update-by-case
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
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.

Software pages

Ruby on Rails vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.