CVE-2022-31026: Use of Uninitialized Variable in trilogy
Vulnerability summary
CVE-2022-31026 is a high (CVSS 7.5) Use of Uninitialized Resource vulnerability in github trilogy. EPSS estimates a 1.09% chance of exploitation in the next 30 days, higher than 66.6% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 06-06-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · RubygemsEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
1.09%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.09% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Github1 product
- trilogy< 2.1.1
RubyGems1 product
- trilogy< 2.1.1
Trilogy_project1 product
- trilogy< 2.1.1
3 vendors · 3 products
References
5 links- github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfmX Refsource CONFIRMWEBThird Party Advisory
- github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962X Refsource MISCWEBPatchThird Party Advisory
- github.com/github/trilogyPACKAGE