CVE-2026-21439 Details
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.
A vulnerability exists in badkeys, a tool and library for evaluating cryptographic public keys for known vulnerabilities, in versions 0.0.15 and earlier. The issue allows an attacker to inject content containing ASCII control characters, such as vertical tabs and ANSI escape sequences, which can distort the output of the badkeys command-line tool. This flaw affects the scanning of DKIM keys (both '--dkim' and '--dkim-dns' modes), SSH keys (in '--ssh-lines' mode), and filenames across various modes.
Users can upgrade to badkeys version 0.0.16 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/badkeys/badkeys/issues/40 | CISA-ADP | ExploitIssue TrackingThird Party Advisory |
| https://github.com/badkeys/badkeys/commit/635a2f3b1b50a895d8b09ec8629efc06189f349a | [email protected] | Patch |
| https://github.com/badkeys/badkeys/commit/de631f69f040974bb5fb442cdab9a1d904c64087 | [email protected] | Patch |
| https://github.com/badkeys/badkeys/issues/40 | [email protected] | ExploitIssue TrackingThird Party Advisory |
| https://github.com/badkeys/badkeys/security/advisories/GHSA-wjpc-4f29-83h3 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| badkeys badkeys | < 0.0.16 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 12, 2026 | Initial Analysis | [email protected] |
| Jan 6, 2026 | CVE Modified | CISA-ADP |
| Jan 6, 2026 | New CVE Received | [email protected] |