GSD-2022-31026

Vulnerability from gsd - Updated: 2022-06-06 00:00
Details
### Impact When authenticating, a malicious server could return a specially crafted authentication packet, causing the client to read and return up to 12 bytes of data from an uninitialized variable in stack memory. ### Patches Users of the trilogy gem should upgrade to version 2.1.1 ### Workarounds This issue can be avoided by only connecting to trusted servers.
Aliases

{
  "GSD": {
    "alias": "CVE-2022-31026",
    "description": "Trilogy is a client library for MySQL. When authenticating, a malicious server could return a specially crafted authentication packet, causing the client to read and return up to 12 bytes of data from an uninitialized variable in stack memory. Users of the trilogy gem should upgrade to version 2.1.1 This issue can be avoided by only connecting to trusted servers.",
    "id": "GSD-2022-31026"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "trilogy",
            "purl": "pkg:gem/trilogy"
          }
        }
      ],
      "aliases": [
        "CVE-2022-31026",
        "GHSA-5g4r-2qhx-vqfm"
      ],
      "details": "### Impact\n\nWhen authenticating, a malicious server could return a specially crafted authentication\npacket, causing the client to read and return up to 12 bytes of data from an\nuninitialized variable in stack memory.\n\n### Patches\n\nUsers of the trilogy gem should upgrade to version 2.1.1\n\n### Workarounds\n\nThis issue can be avoided by only connecting to trusted servers.\n",
      "id": "GSD-2022-31026",
      "modified": "2022-06-06T00:00:00.000Z",
      "published": "2022-06-06T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm"
        },
        {
          "type": "WEB",
          "url": "https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 5.9,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Use of Uninitialized Variable in trilogy"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-31026",
        "STATE": "PUBLIC",
        "TITLE": "Use of Uninitialized Variable in trilogy"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "trilogy",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "\u003c 2.1.1"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "github"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "Trilogy is a client library for MySQL. When authenticating, a malicious server could return a specially crafted authentication packet, causing the client to read and return up to 12 bytes of data from an uninitialized variable in stack memory. Users of the trilogy gem should upgrade to version 2.1.1 This issue can be avoided by only connecting to trusted servers."
          }
        ]
      },
      "impact": {
        "cvss": {
          "attackComplexity": "HIGH",
          "attackVector": "NETWORK",
          "availabilityImpact": "HIGH",
          "baseScore": 5.9,
          "baseSeverity": "MEDIUM",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "privilegesRequired": "NONE",
          "scope": "UNCHANGED",
          "userInteraction": "NONE",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-908: Use of Uninitialized Resource"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm",
            "refsource": "CONFIRM",
            "url": "https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm"
          },
          {
            "name": "https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962",
            "refsource": "MISC",
            "url": "https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962"
          }
        ]
      },
      "source": {
        "advisory": "GHSA-5g4r-2qhx-vqfm",
        "discovery": "UNKNOWN"
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2022-31026",
      "cvss_v3": 5.9,
      "date": "2022-06-06",
      "description": "### Impact\n\nWhen authenticating, a malicious server could return a specially crafted authentication\npacket, causing the client to read and return up to 12 bytes of data from an\nuninitialized variable in stack memory.\n\n### Patches\n\nUsers of the trilogy gem should upgrade to version 2.1.1\n\n### Workarounds\n\nThis issue can be avoided by only connecting to trusted servers.\n",
      "gem": "trilogy",
      "ghsa": "5g4r-2qhx-vqfm",
      "patched_versions": [
        "\u003e= 2.1.1"
      ],
      "related": {
        "url": [
          "https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962"
        ]
      },
      "title": "Use of Uninitialized Variable in trilogy",
      "url": "https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c2.1.1",
          "affected_versions": "All versions before 2.1.1",
          "cvss_v2": "AV:N/AC:L/Au:N/C:P/I:N/A:N",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
          "cwe_ids": [
            "CWE-1035",
            "CWE-908",
            "CWE-937"
          ],
          "date": "2022-06-15",
          "description": "Trilogy is a client library for MySQL. When authenticating, a malicious server could return a specially crafted authentication packet, causing the client to read and return up to 12 bytes of data from an uninitialized variable in stack memory. Users of the trilogy gem should upgrade to version 2.1.1 This issue can be avoided by only connecting to trusted servers.",
          "fixed_versions": [
            "2.1.1"
          ],
          "identifier": "CVE-2022-31026",
          "identifiers": [
            "CVE-2022-31026",
            "GHSA-5g4r-2qhx-vqfm",
            "GMS-2022-1921"
          ],
          "not_impacted": "All versions starting from 2.1.1",
          "package_slug": "gem/trilogy",
          "pubdate": "2022-06-09",
          "solution": "Upgrade to version 2.1.1 or above.",
          "title": "Use of Uninitialized Resource",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-31026",
            "https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm",
            "https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962",
            "https://github.com/advisories/GHSA-5g4r-2qhx-vqfm"
          ],
          "uuid": "80460833-6ccd-4c5a-8923-d5b172efa664"
        },
        {
          "affected_range": "\u003c0",
          "affected_versions": "All versions before 2.1.1",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2022-06-06",
          "description": "### Impact\n\nWhen authenticating, a malicious server could return a specially crafted authentication packet, causing the client to read and return up to 12 bytes of data from an uninitialized variable in stack memory.\n\n### Patches\n\nUsers of the trilogy gem should upgrade to version 2.1.1\n\n### Workarounds\n\nThis issue can be avoided by only connecting to trusted servers.\n\n### Acknowledgements \n\nWe would like to thank Sergei Volokitin for reporting this vulnerability\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [trilogy](https://github.com/github/trilogy)\n",
          "fixed_versions": [
            "2.1.1"
          ],
          "identifier": "GMS-2022-1921",
          "identifiers": [
            "GHSA-5g4r-2qhx-vqfm",
            "GMS-2022-1921",
            "CVE-2022-31026"
          ],
          "not_impacted": "All versions starting from 2.1.1",
          "package_slug": "gem/trilogy",
          "pubdate": "2022-06-06",
          "solution": "Upgrade to version 2.1.1 or above.",
          "title": "Duplicate of ./gem/trilogy/CVE-2022-31026.yml",
          "urls": [
            "https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm",
            "https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962",
            "https://github.com/advisories/GHSA-5g4r-2qhx-vqfm"
          ],
          "uuid": "615b129c-d4f5-401f-aec9-754131ab207f"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:trilogy_project:trilogy:*:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "versionEndExcluding": "2.1.1",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "security-advisories@github.com",
          "ID": "CVE-2022-31026"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "Trilogy is a client library for MySQL. When authenticating, a malicious server could return a specially crafted authentication packet, causing the client to read and return up to 12 bytes of data from an uninitialized variable in stack memory. Users of the trilogy gem should upgrade to version 2.1.1 This issue can be avoided by only connecting to trusted servers."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-908"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm"
            },
            {
              "name": "https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "LOW",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "NONE",
            "baseScore": 5.0,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "NONE",
            "vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N",
            "version": "2.0"
          },
          "exploitabilityScore": 10.0,
          "impactScore": 2.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
            "version": "3.1"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 3.6
        }
      },
      "lastModifiedDate": "2022-06-15T18:26Z",
      "publishedDate": "2022-06-09T13:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…