Skip to content
OpenAdvisories
Medium · 5.9 CVE-2022-31026 EUVD-2022-5938GHSA-5g4r-2qhx-vqfm

Use of Uninitialized Variable in trilogy

Published Jun 6, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
github trilogy < 2.1.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems trilogy < 2.1.1 2.1.1 GHSA-5g4r-2qhx-vqfm

References