{"id":"CVE-2021-3779","aliases":["EUVD-2022-5970","GHSA-73pr-g6jj-5hc9","UBUNTU-CVE-2021-3779"],"status":"published","title":"Ruby-MySQL Gem Client File Read","description":"A malicious MySQL server can request local file content from a client using ruby-mysql prior to version 2.10.0 without explicit authorization from the user. This issue was resolved in version 2.10.0 and later.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01192,"percentile":0.68217,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-610"],"published":"2022-06-28T16:30:15Z","modified":"2026-06-17T04:05:44Z","fixes":[{"ecosystem":"RubyGems","package":"ruby-mysql","fixed_in":["2.10.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"ruby-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.0"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"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"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"ruby-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.9.1-1build2","2.9.1-1build3","2.9.1-1build4","2.9.1-1build5","2.9.1-1ubuntu1"]}],"products":[{"vendor":"ruby-mysql_project","product":"ruby-mysql"},{"vendor":"tomita masahiro","product":"ruby-mysql"}],"references":[{"url":"https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/","tags":["x_refsource_MISC","x_transferred","Exploit","Mitigation","Third Party Advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3779","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-mysql/CVE-2021-3779.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-73pr-g6jj-5hc9"},{"url":"https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed","tags":["web"]},{"url":"http://github.com/tmtm/ruby-mysql","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-3779","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3779","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3779","title":"Ruby-MySQL Gem Client File Read","description":"A malicious MySQL server can request local file content from a client using ruby-mysql prior to version 2.10.0 without explicit authorization from the user. This issue was resolved in version 2.10.0 and later.","status":"published","published":"2022-06-28T16:30:15.611Z","modified":"2024-09-17T00:16:17.183Z","cwes":["CWE-610"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2022-5970","description":"A malicious MySQL server can request local file content from a client using ruby-mysql prior to version 2.10.0 without explicit authorization from the user. This issue was resolved in version 2.10.0 and later.","status":"published","published":"2022-06-28T16:30:15Z","modified":"2024-09-17T00:16:17Z","updated_at":"2026-11-03T00:29:00.656249Z"}],"ghsa":[{"id":"GHSA-73pr-g6jj-5hc9","title":"Externally Controlled Reference to a Resource in Another Sphere in ruby-mysql","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).","status":"published","published":"2022-06-29T00:00:27Z","modified":"2023-01-27T05:04:54Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-610"],"updated_at":"2026-11-02T14:36:20.985872Z"}],"nvd":[{"id":"CVE-2021-3779","description":"A malicious MySQL server can request local file content from a client using ruby-mysql prior to version 2.10.0 without explicit authorization from the user. This issue was resolved in version 2.10.0 and later.","status":"published","published":"2022-06-28T17:15:07.827Z","modified":"2026-06-17T04:05:44.84Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-610"],"updated_at":"2026-11-02T14:07:06.501652Z"}],"osv":[{"id":"GHSA-73pr-g6jj-5hc9","title":"Externally Controlled Reference to a Resource in Another Sphere in ruby-mysql","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).","status":"published","published":"2022-06-29T00:00:27Z","modified":"2024-02-21T05:29:44.756734Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-610"],"updated_at":"2026-11-02T15:46:40.308826Z"},{"id":"UBUNTU-CVE-2021-3779","description":"A malicious MySQL server can request local file content from a client using ruby-mysql prior to version 2.10.0 without explicit authorization from the user. This issue was resolved in version 2.10.0 and later.","status":"published","published":"2022-06-28T17:15:00Z","modified":"2025-10-24T04:49:57Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:28.526929Z"}]}}
