CVE-2022-31124

CVE-2022-31124 is a high-severity vulnerability in Openssh Key Parser Project Openssh Key Parser with a CVSS 3.x base score of 7.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-209.

Key facts

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.

Frequently asked questions

What is CVE-2022-31124?
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.
How severe is CVE-2022-31124?
CVE-2022-31124 has a CVSS 3.x base score of 7.7, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2022-31124 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (66th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2022-31124?
CVE-2022-31124 affects Openssh Key Parser Project Openssh Key Parser. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2022-31124?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
When was CVE-2022-31124 published?
CVE-2022-31124 was published on 2022-07-06 and last updated on 2026-06-17.

References

Affected products (1)

Other CWE-209 (Generation of Error Message Containing Sensitive Information) vulnerabilities

Browse all CWE-209 (Generation of Error Message Containing Sensitive Information) vulnerabilities →