{"api_version":"1","generated_at":"2026-07-23T11:25:09+00:00","cve":"CVE-2022-31124","urls":{"html":"https://cve.report/CVE-2022-31124","api":"https://cve.report/api/cve/CVE-2022-31124.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31124","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31124"},"summary":{"title":"CVE-2022-31124","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-07-06 18:15:00","updated_at":"2022-07-14 14:22:00"},"problem_types":["CWE-209"],"metrics":[],"references":[{"url":"https://github.com/scottcwang/openssh_key_parser/pull/5","name":"https://github.com/scottcwang/openssh_key_parser/pull/5","refsource":"MISC","tags":[],"title":"Security review by mike-arnica · Pull Request #5 · scottcwang/openssh_key_parser · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf864fb04076c","name":"https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf864fb04076c","refsource":"MISC","tags":[],"title":"Improved error handling to prevent unhandled exceptions in calling code. · scottcwang/openssh_key_parser@d5b53b4 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd2323a08d3","name":"https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd2323a08d3","refsource":"MISC","tags":[],"title":"Changed an exception message to prevent possible disclosures of keyin… · scottcwang/openssh_key_parser@26e0a47 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657554523b39","name":"https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657554523b39","refsource":"MISC","tags":[],"title":"Merge pull request #5 from mike-arnica/security-review · scottcwang/openssh_key_parser@274447f · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499","name":"https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499","refsource":"CONFIRM","tags":[],"title":"Possible leak of key's raw field if declared length is incorrect · Advisory · scottcwang/openssh_key_parser · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31124","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31124","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31124","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"openssh_key_parser_project","cpe5":"openssh_key_parser","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31124","STATE":"PUBLIC","TITLE":"Possible leak of key's raw field if declared length is incorrect in openssh_key_parser"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"openssh_key_parser","version":{"version_data":[{"version_value":"< 0.0.6"}]}}]},"vendor_name":"scottcwang"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-209: Generation of Error Message Containing Sensitive Information"}]}]},"references":{"reference_data":[{"name":"https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499","refsource":"CONFIRM","url":"https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499"},{"name":"https://github.com/scottcwang/openssh_key_parser/pull/5","refsource":"MISC","url":"https://github.com/scottcwang/openssh_key_parser/pull/5"},{"name":"https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd2323a08d3","refsource":"MISC","url":"https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd2323a08d3"},{"name":"https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657554523b39","refsource":"MISC","url":"https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657554523b39"},{"name":"https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf864fb04076c","refsource":"MISC","url":"https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf864fb04076c"}]},"source":{"advisory":"GHSA-hm37-9xh2-q499","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-07-06 18:15:00","lastModifiedDate":"2022-07-14 14:22:00","problem_types":["CWE-209"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:openssh_key_parser_project:openssh_key_parser:*:*:*:*:*:python:*:*","versionEndExcluding":"0.0.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}