CVE-2026-21439 badkeys vulnerable to ASCII control character injection on console via malformed input
LowCVSS 2.0
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
badkeys is a tool and library for checking cryptographic public keys for known vulnerabilities. In versions 0.0.15 and below, an attacker may inject content with ASCII control characters like vertical tabs, ANSI escape sequences, etc., that can create misleading output of the badkeys command-line tool. This impacts scanning DKIM keys (both --dkim and --dkim-dns), SSH keys (--ssh-lines mode), and filenames in various modes. This issue is fixed in version 0.0.16.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| badkeys | < 0.0.16; = < 0.0.16 | 0.0.16 | Fixed |
| pypi badkeys(PyPI) | < 0.0.16; <= 0.0.15; = 0.0.1; = 0.0.2 +13 more | 0.0.16 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi badkeys(PyPI) | < 0.0.16 | 0.0.16 |
| pypi badkeys(PyPI) | = 0.0.1 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.10 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.11 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.12 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.13 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.14 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.15 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.2 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.3 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.4 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.5 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.6 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.7 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.8 | No fix listed |
| pypi badkeys(PyPI) | = 0.0.9 | No fix listed |
| badkeys | = < 0.0.16 | No fix listed |
| pypi badkeys(PyPI) | <= 0.0.15 | No fix listed |
| badkeys | < 0.0.16 | 0.0.16 |
References
- https://github.com/badkeys/badkeys/security/advisories/GHSA-wjpc-4f29-83h3 third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/badkeys/badkeys/issues/40 exploit issue-tracking third-party-advisory
- https://github.com/badkeys/badkeys/commit/635a2f3b1b50a895d8b09ec8629efc06189f349a patch
- https://github.com/badkeys/badkeys/commit/de631f69f040974bb5fb442cdab9a1d904c64087 patch
- github.com product
- pypi.org product
- github.com vendor-advisory