{"cve":"CVE-2022-31124","nvd":{"published":"2022-07-06T18:15:19.290","modified":"2026-06-17T04:44:51.220","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-209"],"references":["https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd2323a08d3","https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657554523b39","https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf864fb04076c","https://github.com/scottcwang/openssh_key_parser/pull/5","https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499"],"products":["openssh_key_parser_project:openssh_key_parser"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-31124","score":0.01334,"percentile":0.71162,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hm37-9xh2-q499","url":"https://osv.dev/vulnerability/GHSA-hm37-9xh2-q499","summary":"Possible leak of key's raw field if declared length is incorrect","modified":"2024-10-07T21:25:25.797866Z","packages":[{"ecosystem":"PyPI","name":"openssh-key-parser","purl":"pkg:pypi/openssh-key-parser","ranges":["<0.0.6"],"fixed":["0.0.6"]}]},{"id":"PYSEC-2022-233","url":"https://osv.dev/vulnerability/PYSEC-2022-233","summary":"","modified":"2023-11-08T04:09:26.994947Z","packages":[{"ecosystem":"PyPI","name":"openssh-key-parser","purl":"pkg:pypi/openssh-key-parser","ranges":["<0.0.6"],"fixed":["0.0.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}