CVE-2022-31026
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.09%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 1.09% probability · 65th percentile
- Public exploits
- None in Exploit-DB
- CISA KEV
- Not listed
- Weakness
- CWE-908
- Affected
- trilogy project/trilogy
- Source
- security-advisories@github.com
EPSS 1.1% since 26 October 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
References
- https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962Patch, Third Party Advisory
- https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfmThird Party Advisory
- https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962Patch, Third Party Advisory
- https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfmThird Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.