Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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