CVE-2022-31124: openssh_key_parser is an open source Python package providing utilities to parse and pack OpenSSH private and
CVE-2022-31124 is a high-severity flaw (CVSS 7.7) affecting openssh key parser. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.7 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 1.3% (top 29%) |
| CISA exploited list | No |
| Weakness | CWE-209 |
| Published | 2022-07-06 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-31124?
openssh key parser: upgrade to 0.0.6. Exact commands for each OS are on this page.
Is CVE-2022-31124 being exploited?
CVE-2022-31124 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-31124 affect?
CVE-2022-31124 affects openssh key parser. Severity is high (CVSS 7.7). 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
How urgent is CVE-2022-31124?
Priority 55/100. High severity; Public exploit reference; On your watchlist
Software pages
OpenSSH vulnerabilities · Python vulnerabilities