CVE-2022-31124

Summary

CVECVE-2022-31124
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-07-06 18:15:00 UTC
Updated2022-07-14 14:22:00 UTC
Descriptionopenssh_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.

Risk And Classification

Problem Types: CWE-209

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Openssh Key Parser Project Openssh Key Parser All All All All

References

ReferenceSourceLinkTags
Security review by mike-arnica · Pull Request #5 · scottcwang/openssh_key_parser · GitHub MISC github.com
Improved error handling to prevent unhandled exceptions in calling code. · scottcwang/openssh_key_parser@d5b53b4 · GitHub MISC github.com
Changed an exception message to prevent possible disclosures of keyin… · scottcwang/openssh_key_parser@26e0a47 · GitHub MISC github.com
Merge pull request #5 from mike-arnica/security-review · scottcwang/openssh_key_parser@274447f · GitHub MISC github.com
Possible leak of key's raw field if declared length is incorrect · Advisory · scottcwang/openssh_key_parser · GitHub CONFIRM github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report