Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Openssh Key Parser Project | Openssh Key Parser | < 0.0.6 |
Related Weaknesses (CWE)
References
- https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc301PatchThird Party Advisory
- https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634PatchThird Party Advisory
- https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc6570PatchThird Party Advisory
- https://github.com/scottcwang/openssh_key_parser/pull/5ExploitIssue TrackingThird Party Advisory
- https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9Third Party Advisory
- https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc301PatchThird Party Advisory
- https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634PatchThird Party Advisory
- https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc6570PatchThird Party Advisory
- https://github.com/scottcwang/openssh_key_parser/pull/5ExploitIssue TrackingThird Party Advisory
- https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9Third Party Advisory
FAQ
What is CVE-2022-31124?
CVE-2022-31124 is a vulnerability with a CVSS score of 7.7 (HIGH). 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 dec...
How severe is CVE-2022-31124?
CVE-2022-31124 has been rated HIGH with a CVSS base score of 7.7/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-31124?
Check the references section above for vendor advisories and patch information. Affected products include: Openssh Key Parser Project Openssh Key Parser.