Advisory

GHSA-73pr-g6jj-5hc9

Also known as: CVE-2021-3779

Summary

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

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-06-29 00:00 UTC
Modified
2024-02-21 05:29 UTC

Affected packages and fixes

ruby-mysql

RubyGems · All systems

Affected

  • introduced 0, fixed 2.10.0 (ecosystem)

Fixed versions

2.10.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences