Live threats

All CVEs / Openssh Key Parser Project

CVE-2022-31124Openssh Key Parser Project Openssh Key Parser

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
Yes
Published
Jul 6, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-209
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Openssh Key Parser.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI openssh-key-parser < 0.0.6 0.0.6 pip install "openssh-key-parser>=0.0.6"
PyPI openssh-key-parser < 0.0.6 0.0.6 pip install "openssh-key-parser>=0.0.6"

Per OSV / GitHub Advisories (GHSA-hm37-9xh2-q499, PYSEC-2022-233). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
openssh_key_parser_projectopenssh_key_parser< 0.0.6

Official sources

References

Links published by the sources. Open them with care.