# CVE-2026-21439: badkeys vulnerable to ASCII control character injection on console via malformed input

- Severity: Low 2.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-05T19:42:12.000Z
- Modified: 2026-07-07T17:56:57.269Z
- Also known as: GHSA-wjpc-4f29-83h3, PYSEC-2026-1212
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- badkeys badkeys: < 0.0.16; before 0.0.16
- badkeys (PyPI): before 0.0.16

## Every score

- GitHub_M: CVSS:4.0 2.0 Low `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`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: 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`

## References

- <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://github.com/badkeys/badkeys/commit/635a2f3b1b50a895d8b09ec8629efc06189f349a> (patch, web)
- <https://github.com/badkeys/badkeys/commit/de631f69f040974bb5fb442cdab9a1d904c64087> (patch, 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)

## Sources

- CVE List: [CVE-2026-21439](https://www.cve.org/CVERecord?id=CVE-2026-21439), CVE Terms of Use, modified 2026-01-06
- GitHub Advisory Database: [GHSA-wjpc-4f29-83h3](https://github.com/advisories/GHSA-wjpc-4f29-83h3), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-21439](https://nvd.nist.gov/vuln/detail/CVE-2026-21439), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1212](https://osv.dev/vulnerability/PYSEC-2026-1212), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2026-21439 · Whole record: https://cve.day/CVE-2026-21439.json · Rebuilt by cve.day 2026-11-25T22:59:12.612Z
