SQL Injection in Camilova Activerecord-Update-By-Case
CVE-2022-35956
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L.
EPSS exploit prediction
EPSS: 0.006 (47.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 48th percentile — 47.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.006 · change: 0.000
Affected products
- Camilova Activerecord-Update-By-Case — versions < 0.1.3
- Update By Case Project
Weakness classification (CWE)
References
- github.com/camilova/activerecord-update-by-case/security/advisories/GHSA-33wh-w… (Third Party Advisory)
- github.com/camilova/activerecord-update-by-case/releases/tag/v0.1.3-stable (Third Party Advisory, Release Notes)
Frequently asked questions
- What is CVE-2022-35956?
- CVE-2022-35956 is a medium-severity vulnerability in Camilova Activerecord-Update-By-Case, classified under SQL Injection. CVSS score: 5.8/10. Published 2022-08-12.
- How severe is CVE-2022-35956?
- Medium severity. CVSS v3 base score is 5.8 out of 10.