Loading...
Skip to main content

CVE-2021-3779 — Vulnerability in ruby-mysql — CVE Details

MEDIUM

Externally Controlled Reference to a Resource in Another Sphere in ruby-mysql

Published June 29, 2022Updated February 21, 2024Source: osv

Summary

A malicious actor can read arbitrary files from a client that uses ruby-mysql to communicate to a rogue MySQL server and issue database queries. In these cases, the server has the option to create a database reply using the LOAD DATA LOCAL statement, which instructs the client to provide additional data from a local file readable by the client (and not a "local" file on the server).

Advisory Timeline

  • First published June 29, 2022 (1566 days ago).
  • Last revised February 21, 2024 — 602 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update ruby-mysql to 2.10.0 or later
gem install ruby-mysql -v 2.10.0

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

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
ruby-mysql
rubygems
2.9.0, 2.9.1, 2.9.10, 2.9.11 (+11 more)2.10.0

Vulnerability Classification

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

CVSS Score Breakdown

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

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

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

Frequently Asked Questions

What is CVE-2021-3779?
Externally Controlled Reference to a Resource in Another Sphere in ruby-mysql This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
How do I check if my project is affected by CVE-2021-3779?
CVE-2021-3779 affects ruby-mysql. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-3779 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.5

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

Also Known As

GHSA-73pr-g6jj-5hc9

Related CVEs

Check if you're affected

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

Scan Your Dependencies