CVE-2022-35956
Last modified
CVE-2022-35956 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.52% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Update By Case Project | Update By Case | < 0.1.3 |
References
- https://github.com/camilova/activerecord-update-by-case/releases/tag/v0.1.3-stableRelease Notes, Third Party Advisory
- https://github.com/camilova/activerecord-update-by-case/releases/tag/v0.1.3-stableRelease Notes, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-35956?
How severe is CVE-2022-35956?
How do I fix CVE-2022-35956?
Are you affected by CVE-2022-35956?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
