{"id":"GHSA-73pr-g6jj-5hc9","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).","aliases":["CVE-2021-3779"],"modified":"2024-02-21T05:29:44.756734Z","published":"2022-06-29T00:00:27Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-07-05T22:08:34Z","nvd_published_at":"2022-06-28T17:15:00Z","cwe_ids":["CWE-610"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3779"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-mysql/CVE-2021-3779.yml"},{"type":"WEB","url":"https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed"},{"type":"PACKAGE","url":"http://github.com/tmtm/ruby-mysql"}],"affected":[{"package":{"name":"ruby-mysql","ecosystem":"RubyGems","purl":"pkg:gem/ruby-mysql"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.0"}]}],"versions":["2.9.0","2.9.1","2.9.10","2.9.11","2.9.12","2.9.13","2.9.14","2.9.2","2.9.3","2.9.4","2.9.5","2.9.6","2.9.7","2.9.8","2.9.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-73pr-g6jj-5hc9/GHSA-73pr-g6jj-5hc9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]}