GitHub Advisoryadvisory · RubyGems

GHSA-73pr-g6jj-5hc9 Externally Controlled Reference to a Resource in Another Sphere in ruby-mysql

MEDIUM Published 2022-06-29 Modified 2022-07-08 Official page ↗
Aliases
CVE-2021-3779
Ecosystem
RubyGems
Packages
ruby-mysql
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Weaknesses
CWE-610
Reviewed
2022-07-05

Affected packages

• RubyGems ruby-mysql: < 2.10.0 → fixed in 2.10.0

Description

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).

Related

Alias · CVE (1)

  • CVE-2021-3779 A malicious MySQL server can request local file content from a client using ruby-mysql prior to version 2.10.0 without explicit… vulnerability

Weakness · CWE (1)

  • CWE-610 Externally Controlled Reference to a Resource in Another Sphere weakness

References