{"id":"CVE-2026-21439","published":"2026-01-05T23:51:35Z","modified":"2026-01-06T19:01:48Z","title":"badkeys vulnerable to ASCII control character injection on console via malformed input","vendor":"badkeys","product":"badkeys","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00331,"percentile":0.26964,"provenance":"source"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"references":[{"url":"https://github.com/badkeys/badkeys/security/advisories/GHSA-wjpc-4f29-83h3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/badkeys/badkeys/issues/40","tags":["x_refsource_MISC"]},{"url":"https://github.com/badkeys/badkeys/commit/635a2f3b1b50a895d8b09ec8629efc06189f349a","tags":["x_refsource_MISC"]},{"url":"https://github.com/badkeys/badkeys/commit/de631f69f040974bb5fb442cdab9a1d904c64087","tags":["x_refsource_MISC"]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":5.39},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"badkeys","affectedVersions":[{"vendor":"badkeys","product":"badkeys","versions":["< 0.0.16"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-06T14:24:28.663559Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"badkeys","vulnerableRanges":["<0.0.16"],"patched":["0.0.16"],"from":["GHSA-wjpc-4f29-83h3","PYSEC-2026-1212"],"provenance":"source"}],"summary":{"text":"The badkeys command-line tool and library, which checks cryptographic public keys for known weaknesses, fails to neutralise ASCII control characters and ANSI escape sequences in its console output when scanning DKIM keys, SSH keys and filenames. An attacker who can supply a malformed key or filename to be scanned can make the tool's output misleading, requiring only local access with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:09Z"},"euvd":{"id":"EUVD-2026-0823","exploited":false,"provenance":"source"}}