Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. trilogy
  4. ›
  5. CVE-2022-31026

CVE-2022-31026: Use of Uninitialized Resource

June 9, 2022 (updated June 15, 2022)

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.

References

  • github.com/advisories/GHSA-5g4r-2qhx-vqfm
  • github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962
  • github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm
  • nvd.nist.gov/vuln/detail/CVE-2022-31026

Code Behaviors & Features

Detect and mitigate CVE-2022-31026 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.1

Fixed versions

  • 2.1.1

Solution

Upgrade to version 2.1.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-908: Use of Uninitialized Resource

Source file

gem/trilogy/CVE-2022-31026.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:15 +0000.