# CVE-2022-31026: Use of Uninitialized Variable in trilogy

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-06-06 · Modified: 2025-04-23
- Aliases: GHSA-5g4r-2qhx-vqfm
- Record: https://cvemate.com/vulnerability/CVE-2022-31026 · JSON: https://cvemate.com/vulnerability/CVE-2022-31026/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.094%, percentile 66.603%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- RubyGems trilogy (RubyGems): \< 2.1.1
- github trilogy: \< 2.1.1
- trilogy\_project trilogy: \< 2.1.1

## References

- <https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm>
- <https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31026>
- <https://github.com/github/trilogy>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/trilogy/CVE-2022-31026.yml>

---

Data as of 2026-12-05T07:51:24.581Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
