CVE-2022-35956

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-35956
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35956.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-35956
Aliases
Published
2022-08-12T21:15:08Z
Modified
2024-05-14T12:06:32.613354Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/camilova/activerecord-update-by-case

Affected ranges

Type
GIT
Repo
https://github.com/camilova/activerecord-update-by-case
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1.2-stable