CVE-2022-35956
Summary
| CVE | CVE-2022-35956 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-08-12 21:15:00 UTC |
| Updated | 2022-08-16 16:09:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-89
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Update By Case Project | Update By Case | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Release v0.1.3-stable · camilova/activerecord-update-by-case · GitHub | MISC | github.com | |
| update_by_case before 0.1.3 can be vulnerable to sql injection · Advisory · camilova/activerecord-update-by-case · GitHub | CONFIRM | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.