Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. update_by_case
  4. ›
  5. GMS-2022-3603

GMS-2022-3603: Duplicate of ./gem/update_by_case/CVE-2022-35956.yml

August 11, 2022

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

  • github.com/advisories/GHSA-33wh-w4m7-c6r8
  • github.com/camilova/activerecord-update-by-case/security/advisories/GHSA-33wh-w4m7-c6r8

Code Behaviors & Features

Detect and mitigate GMS-2022-3603 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.3

Fixed versions

  • 0.1.3

Solution

Upgrade to version 0.1.3 or above.

Source file

gem/update_by_case/GMS-2022-3603.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:09 +0000.