# CVE-2021-3779: Ruby-MySQL Gem Client File Read

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.22%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-06-28T16:30:15.611Z
- Modified: 2026-06-17T04:05:44.840Z
- Also known as: GHSA-73pr-g6jj-5hc9
- Weaknesses: CWE-610
- Assigned by: rapid7

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

(As written by CVE List.)

## Affected

- Tomita Masahiro ruby-mysql: from 2.9.14 up to 2.9.14
- ruby-mysql (RubyGems): before 2.10.0
- ruby-mysql_project ruby-mysql: before 2.10.0

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/> (exploit, mitigation, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3779> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-mysql/CVE-2021-3779.yml> (web)
- <https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed> (web)
- <http://github.com/tmtm/ruby-mysql> (package)

## Sources

- CVE List: [CVE-2021-3779](https://www.cve.org/CVERecord?id=CVE-2021-3779), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-73pr-g6jj-5hc9](https://github.com/advisories/GHSA-73pr-g6jj-5hc9), CC-BY-4.0, modified 2024-02-21
- NVD: [CVE-2021-3779](https://nvd.nist.gov/vuln/detail/CVE-2021-3779), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3779 · Whole record: https://cve.day/CVE-2021-3779.json · Rebuilt by cve.day 2026-11-25T22:58:07.689Z
