Advisory

GHSA-33wh-w4m7-c6r8

Also known as: CVE-2022-35956

Summary

update_by_case before 0.1.3 can be vulnerable to sql injection

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-08-11 21:18 UTC
Modified
2023-11-08 04:09 UTC

Affected packages and fixes

update_by_case

RubyGems · All systems

Affected

  • introduced 0, fixed 0.1.3 (ecosystem)

Fixed versions

0.1.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences