{"id":"GHSA-hm37-9xh2-q499","summary":"Possible leak of key's raw field if declared length is incorrect","details":"### Impact\nIf 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.\n\n### Patches\nUpgrade to version 0.0.6, which no longer includes the raw field value in the error message.\n\n### Workarounds\nN/A\n\n### References\nN/A\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [openssh_key_parser](https://github.com/scottcwang/openssh_key_parser)\n","aliases":["CVE-2022-31124","PYSEC-2022-233"],"modified":"2024-10-07T21:25:25.797866Z","published":"2022-07-06T19:24:12Z","database_specific":{"nvd_published_at":"2022-07-06T18:15:00Z","cwe_ids":["CWE-209"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-07-06T19:24:12Z"},"references":[{"type":"WEB","url":"https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31124"},{"type":"WEB","url":"https://github.com/scottcwang/openssh_key_parser/pull/5"},{"type":"WEB","url":"https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd2323a08d3"},{"type":"WEB","url":"https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657554523b39"},{"type":"WEB","url":"https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf864fb04076c"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/openssh-key-parser/PYSEC-2022-233.yaml"},{"type":"WEB","url":"https://github.com/scottcwang/openssh_key_parser"}],"affected":[{"package":{"name":"openssh-key-parser","ecosystem":"PyPI","purl":"pkg:pypi/openssh-key-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.6"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-hm37-9xh2-q499/GHSA-hm37-9xh2-q499.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N"}]}