CVE-2022-31026
HIGH 7.5CVSS 3.1Use of Uninitialized Variable in trilogy
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.
- Published
- 9 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-908
- Also known as
- GHSA-5g4r-2qhx-vqfm
- Sources
- NVDJSONOSV GHSA-5g4r-2qhx-vqfmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | trilogy_project | trilogycpe:2.3:a:trilogy_project:trilogy:*:*:*:*:*:ruby:*:* |
< 2.1.1 | 2.1.1 |
| OSV | RubyGems | trilogy | < 2.1.1 | 2.1.1 |
References
- https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962 · Patch, Third Party Advisory, WEB
- https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31026 · ADVISORY
- https://github.com/github/trilogy · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/trilogy/CVE-2022-31026.yml · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 9 Jun 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jun 2022)