All CVEs / Openssh Key Parser Project
CVE-2022-31124Openssh Key Parser Project Openssh Key Parser
Medium 6.5
Follow: this CVE · Openssh Key Parser Project · Openssh Key Parser Project Openssh Key Parser We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Openssh Key Parser.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| openssh_key_parser_project | openssh_key_parser | < 0.0.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory
- github.com Third Party Advisory