PT-2022-5001 · Unknown · Ruby-Mysql

Hans-Martin Münch

·

Published

2022-06-28

·

Updated

2022-07-07

·

CVE-2021-3779

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:C/I:N/A:N
Name of the Vulnerable Software and Affected Versions ruby-mysql versions prior to 2.10.0
Description The issue allows a malicious MySQL server to request local file content from a client using ruby-mysql without explicit authorization from the user. 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. The server can 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.
Recommendations For versions prior to 2.10.0, update to version 2.10.0 or later to resolve the issue. As a temporary workaround, consider restricting access to the LOAD DATA LOCAL statement until a patch is available. Avoid using the LOAD DATA LOCAL statement in the affected API endpoint until the issue is resolved.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2022-06214
CVE-2021-3779
GHSA-73PR-G6JJ-5HC9

Affected Products

Ruby-Mysql