GSD-2021-3779

Vulnerability from gsd - Updated: 2022-06-28 00:00
Details
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.
Aliases

{
  "GSD": {
    "alias": "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.",
    "id": "GSD-2021-3779"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "ruby-mysql",
            "purl": "pkg:gem/ruby-mysql"
          }
        }
      ],
      "aliases": [
        "CVE-2021-3779",
        "GHSA-73pr-g6jj-5hc9"
      ],
      "details": "A malicious MySQL server can request local file content from a client using ruby-mysql prior to version\n2.10.0 without explicit authorization from the user. This issue was resolved in version 2.10.0 and\nlater.\n",
      "id": "GSD-2021-3779",
      "modified": "2022-06-28T00:00:00.000Z",
      "published": "2022-06-28T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/"
        },
        {
          "type": "WEB",
          "url": "https://github.com/rubysec/ruby-advisory-db/issues/507"
        },
        {
          "type": "WEB",
          "url": "https://my.diffend.io/gems/ruby-mysql/2.9.14/2.10.0#d2h-806753-331"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 6.5,
          "type": "CVSS_V3"
        }
      ],
      "summary": "ruby-mysql Client File Read"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@rapid7.com",
        "DATE_PUBLIC": "2022-06-28T15:00:00.000Z",
        "ID": "CVE-2021-3779",
        "STATE": "PUBLIC",
        "TITLE": "Ruby-MySQL Gem Client File Read"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "ruby-mysql",
                    "version": {
                      "version_data": [
                        {
                          "version_affected": "\u003c=",
                          "version_name": "2.9.14",
                          "version_value": "2.9.14"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "Tomita Masahiro"
            }
          ]
        }
      },
      "credit": [
        {
          "lang": "eng",
          "value": "Discovered by Hans-Martin M\u00fcnch of MOGWAI LABS GmbH, reported by Rapid7, coordinated by CERT/CC and JPCERT/CC"
        }
      ],
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "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."
          }
        ]
      },
      "generator": {
        "engine": "Vulnogram 0.0.9"
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-610 Externally Controlled Reference to a Resource in Another Sphere"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/",
            "refsource": "MISC",
            "url": "https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/"
          }
        ]
      },
      "solution": [
        {
          "lang": "eng",
          "value": "Update to version 2.10.0 or later of ruby-mysql"
        }
      ],
      "source": {
        "discovery": "EXTERNAL"
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2021-3779",
      "cvss_v3": 6.5,
      "date": "2022-06-28",
      "description": "A malicious MySQL server can request local file content from a client using ruby-mysql prior to version\n2.10.0 without explicit authorization from the user. This issue was resolved in version 2.10.0 and\nlater.\n",
      "gem": "ruby-mysql",
      "ghsa": "73pr-g6jj-5hc9",
      "patched_versions": [
        "\u003e= 2.10.0"
      ],
      "related": {
        "url": [
          "https://github.com/rubysec/ruby-advisory-db/issues/507",
          "https://my.diffend.io/gems/ruby-mysql/2.9.14/2.10.0#d2h-806753-331"
        ]
      },
      "title": "ruby-mysql Client File Read",
      "url": "https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c2.10.0",
          "affected_versions": "All versions before 2.10.0",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2022-07-05",
          "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.",
          "fixed_versions": [
            "2.10.0"
          ],
          "identifier": "CVE-2021-3779",
          "identifiers": [
            "GHSA-73pr-g6jj-5hc9",
            "CVE-2021-3779"
          ],
          "not_impacted": "All versions starting from 2.10.0",
          "package_slug": "gem/ruby-mysql",
          "pubdate": "2022-06-29",
          "solution": "Upgrade to version 2.10.0 or above.",
          "title": "Externally Controlled Reference to a Resource in Another Sphere in ruby-mysql",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2021-3779",
            "https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/",
            "https://github.com/advisories/GHSA-73pr-g6jj-5hc9"
          ],
          "uuid": "8513e515-3137-495b-afd6-4d837acf38b9"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:ruby-mysql_project:ruby-mysql:*:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "versionEndExcluding": "2.10.0",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@rapid7.com",
          "ID": "CVE-2021-3779"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "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."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-610"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Mitigation",
                "Third Party Advisory"
              ],
              "url": "https://www.rapid7.com/blog/post/2022/06/28/cve-2021-3779-ruby-mysql-gem-client-file-read-fixed/"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "NONE",
            "baseScore": 4.3,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "NONE",
            "vectorString": "AV:N/AC:M/Au:N/C:P/I:N/A:N",
            "version": "2.0"
          },
          "exploitabilityScore": 8.6,
          "impactScore": 2.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": true
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N",
            "version": "3.1"
          },
          "exploitabilityScore": 2.8,
          "impactScore": 3.6
        }
      },
      "lastModifiedDate": "2022-07-07T20:59Z",
      "publishedDate": "2022-06-28T17:15Z"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.