Moderate severityNVD Advisory· Published Jun 6, 2022· Updated Apr 23, 2025
Use of Uninitialized Variable in trilogy
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
trilogyRubyGems | < 2.1.1 | 2.1.1 |
Affected products
2Patches
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-5g4r-2qhx-vqfmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-31026ghsaADVISORY
- github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962ghsax_refsource_MISCWEB
- github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfmghsax_refsource_CONFIRMWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/trilogy/CVE-2022-31026.ymlghsaWEB
News mentions
0No linked articles in our index yet.