{"id":"CVE-2022-31124","published":"2022-07-06T17:30:27Z","modified":"2025-04-22T17:51:53Z","title":"Possible leak of key's raw field if declared length is incorrect in openssh_key_parser","vendor":"scottcwang","product":"openssh_key_parser","tier":"tail","description":{"text":"openssh_key_parser is an open source Python package providing utilities to parse and pack OpenSSH private and public key files. In versions prior to 0.0.6 if a field of a key is shorter than it is declared to be, the parser raises an error with a message containing the raw field value. An attacker able to modify the declared length of a key's sensitive field can thus expose the raw value of that field. Users are advised to upgrade to version 0.0.6, which no longer includes the raw field value in the error message. There are no known workarounds for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01334,"percentile":0.71862,"provenance":"source"},"cwes":[{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information"}],"references":[{"url":"https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/scottcwang/openssh_key_parser/pull/5","tags":["x_refsource_MISC"]},{"url":"https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd2323a08d3","tags":["x_refsource_MISC"]},{"url":"https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657554523b39","tags":["x_refsource_MISC"]},{"url":"https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf864fb04076c","tags":["x_refsource_MISC"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":14.37},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"scottcwang","affectedVersions":[{"vendor":"scottcwang","product":"openssh_key_parser","versions":["< 0.0.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:45:44.952333Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"openssh-key-parser","vulnerableRanges":["<0.0.6"],"patched":["0.0.6"],"from":["GHSA-hm37-9xh2-q499","PYSEC-2022-233"],"provenance":"source"}],"summary":{"text":"The openssh_key_parser Python package, an open source utility for parsing and packing OpenSSH private and public key files, contains a flaw in its error handling where, when a key field is shorter than its declared length, the resulting error message includes the raw field value. An attacker who has low-privilege access and can modify the declared length of a key's sensitive field, with no user interaction required, can cause the parser to expose that raw value.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:58Z"},"euvd":{"id":"EUVD-2022-0188","exploited":false,"provenance":"source"}}