CVE-2022-31026 json
Use of Uninitialized Variable in trilogy
published 2022-06-06 4 y ago modified 2026-06-17 4 mo ago also GHSA-5g4r-2qhx-vqfm , EUVD-2022-5938
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.09% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | trilogy | <2.1.1 |
2.1.1 |
Affected products
- github trilogy
Classification
- Weakness
-
- CWE-908 Use of Uninitialized Resource
References
-
github.com
/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962
web, patch, third-party-advisory
-
github.com
/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31026
advisory
-
github.com
/github/trilogy
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/trilogy/CVE-2022-31026.yml
web
Sources
- CVE List CVE-2022-31026
- GitHub Advisory GHSA-5g4r-2qhx-vqfm
- NVD CVE-2022-31026
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.