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
EPSS: 0.006 (46.9th percentile) — read the EPSS interpretation.
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.
Affected products
- Camilova Activerecord-update-by-case — versions < 0.1.3
- Update_by_case_project Update_by_case
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Third Party Advisory, x_refsource_MISC, 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.