5.9medium
Use of Uninitialized Variable in trilogy
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.09% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5g4r-2qhx-vqfm
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github trilogy | < 2.1.1 | CVE List |
| trilogy (RubyGems) | before 2.1.1 | GitHub Advisory Database |
| trilogy_project trilogy | before 2.1.1 | NVD |
All scores
| GitHub_M | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
Users of the trilogy gem should upgrade to version 2.1.1
Workarounds
This issue can be avoided by only connecting to trusted servers.
Acknowledgements
We would like to thank Sergei Volokitin for reporting this vulnerability
For more information
If you have any questions or comments about this advisory:
- Open an issue in trilogy
NVD (es)
Trilogy es una biblioteca cliente para MySQL. Cuando es autenticado, un servidor malicioso podría devolver un paquete de autenticación especialmente diseñado, causando que el cliente lea y devuelva hasta 12 bytes de datos de una variable no inicializada en la memoria de la pila. Los usuarios de la gema trilogía deberían actualizar a versión 2.1.1. Este problema puede evitarse conectándose únicamente a servidores confiables
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31026 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5g4r-2qhx-vqfm changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-31026 changed 2026-06-17 | Public domain |