logo

CVE-2022-35956 update_by_case

Package

Manager: gem
Name: update_by_case
Vulnerable Version: >=0 <0.1.3

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L

EPSS: 0.00218 pctl0.44408

Details

update_by_case before 0.1.3 can be vulnerable to sql injection 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.

Metadata

Created: 2022-08-11T21:18:31Z
Modified: 2022-08-15T20:00:28Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-33wh-w4m7-c6r8/GHSA-33wh-w4m7-c6r8.json
CWE IDs: ["CWE-89"]
Alternative ID: GHSA-33wh-w4m7-c6r8
Finding: F297
Auto approve: 1