{"id":"CVE-2022-31026","published":"2022-06-06T21:05:14Z","modified":"2025-04-23T18:18:51Z","title":"Use of Uninitialized Variable in trilogy","vendor":"GitHub","product":"trilogy","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01094,"percentile":0.66311,"provenance":"source"},"cwes":[{"id":"CWE-908","name":"Use of Uninitialized Resource"}],"references":[{"url":"https://github.com/github/trilogy/security/advisories/GHSA-5g4r-2qhx-vqfm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/github/trilogy/commit/6bed62789eaf119902b0fe247d2a91d56c31a962","tags":["x_refsource_MISC"]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":13.26},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"github","affectedVersions":[{"vendor":"github","product":"trilogy","versions":["< 2.1.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:06:00.238351Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"trilogy","vulnerableRanges":["<2.1.1"],"patched":["2.1.1"],"from":["GHSA-5g4r-2qhx-vqfm"],"provenance":"source"}],"summary":{"text":"The trilogy client library for MySQL, developed by GitHub, contains a use of uninitialized variable flaw in which stack memory can be read during the authentication handshake. A malicious server that the client connects to can send a specially crafted authentication packet, causing the client to return up to 12 bytes of uninitialized stack data, and exploitation requires only that the client connect to an attacker-controlled server, with no authentication or user interaction needed and high attack complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:22Z"},"euvd":{"id":"EUVD-2022-5938","exploited":false,"provenance":"source"}}