Medium, CVSS 5.8RubyGemsPublished
update_by_case before 0.1.3 can be vulnerable to sql injection
CVE-2022-35956 · GHSA-33wh-w4m7-c6r8
- Affected
- RubyGems update_by_case < 0.1.3
- Fixed in
- 0.1.3· Vendor fix available
- Issue
- Before version 0.1.3 updatebycase 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.
Recommended action: Upgrade to 0.1.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.