{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-35956","published":"2022-08-12T21:15:08.113000Z","last_modified":"2026-06-17T04:52:35.877000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-89"],"cpes":[{"criteria":"cpe:2.3:a:update_by_case_project:update_by_case:*:*:*:*:*:ruby:*:*","part":"a","vendor":"update_by_case_project","product":"update_by_case","version_end_excluding":"0.1.3"}],"cpes_truncated":false,"vendors":["update_by_case_project"],"products":["update_by_case_project/update_by_case"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00672,"percentile":0.47149,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-33wh-w4m7-c6r8","ecosystem":"RubyGems","name":"update_by_case","purl":"pkg:gem/update_by_case","ranges":[{"introduced":"0","fixed":"0.1.3"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2022-35956/","html_en":"/en/cve/CVE-2022-35956/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-35956","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-35956"},"untrusted":{"vendor_name":"Update By Case Project","product_name":"Update By Case","desc_en":"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.","affected":[{"untrusted_vendor":"camilova","untrusted_product":"activerecord-update-by-case","versions":[]}],"references":[{"url":"https://github.com/camilova/activerecord-update-by-case/releases/tag/v0.1.3-stable","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/camilova/activerecord-update-by-case/security/advisories/GHSA-33wh-w4m7-c6r8","tags":["Third Party Advisory"]}]}}