Live threats

All CVEs / Update By Case Project

CVE-2022-35956Update By Case Project Update By Case

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
0.7%
probability of exploitation in 30 days · percentile 47
Auth required
No
Published
Aug 12, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Update By Case.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems update_by_case < 0.1.3 0.1.3 gem "update_by_case", ">= 0.1.3"

Per OSV / GitHub Advisories (GHSA-33wh-w4m7-c6r8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
update_by_case_projectupdate_by_case< 0.1.3

Official sources

References

Links published by the sources. Open them with care.