Loading...
Skip to main content

CVE-2022-35956 — Vulnerability in update_by_case — CVE Details

MEDIUM

update_by_case before 0.1.3 can be vulnerable to sql injection

Published August 11, 2022Updated November 8, 2023Source: osv

Summary

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.

Advisory Timeline

  • First published August 11, 2022 (1523 days ago).
  • Last revised November 8, 2023 — 453 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update update_by_case to 0.1.3 or later
gem install update_by_case -v 0.1.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
update_by_case
rubygems
All versions0.1.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
Low

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

Frequently Asked Questions

What is CVE-2022-35956?
update_by_case before 0.1.3 can be vulnerable to sql injection This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.8/10).
How do I check if my project is affected by CVE-2022-35956?
CVE-2022-35956 affects update_by_case. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-35956 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.8

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-33wh-w4m7-c6r8

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies