CVE-2026-21439
LOW 2.0CVSS 4.0badkeys vulnerable to ASCII control character injection on console via malformed input
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.
- Published
- 6 Jan 2026
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-150
- Also known as
- GHSA-wjpc-4f29-83h3PYSEC-2026-1212
- Sources
- NVDJSONOSV GHSA-wjpc-4f29-83h3JSONOSV PYSEC-2026-1212JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | badkeys | badkeyscpe:2.3:a:badkeys:badkeys:*:*:*:*:*:python:*:* |
< 0.0.16 | 0.0.16 |
| OSV | PyPI | badkeys | < 0.0.16 | 0.0.16 |
References
- https://github.com/badkeys/badkeys/commit/635a2f3b1b50a895d8b09ec8629efc06189f349a · Patch, WEB
- https://github.com/badkeys/badkeys/commit/de631f69f040974bb5fb442cdab9a1d904c64087 · Patch, WEB
- https://github.com/badkeys/badkeys/issues/40 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/badkeys/badkeys/security/advisories/GHSA-wjpc-4f29-83h3 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-21439 · ADVISORY
- https://github.com/badkeys/badkeys · PACKAGE
- https://pypi.org/project/badkeys · PACKAGE
- https://github.com/advisories/GHSA-wjpc-4f29-83h3 · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 6 Jan 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Jan 2026)