Vulnerability

CVE-2025-15366

mediumCVSS 4.0 5.9Published 20 Jan 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /python/cpython/commit/298182272a740ce2016aee2f54acbd0bba19…
  • github.com /python/cpython/commit/6262704b134db2a4ba12e85ecfbd968534f2…
  • github.com /python/cpython/commit/71926d943c05bde79bd2a866933103541d91…
  • github.com /python/cpython/commit/d0921efb665aff26b378f495e5ff84f7e3fe…
  • github.com /python/cpython/commit/f2cd7ef89aa8a0dcbc7283bbd39548b76f2a…
  • github.com /python/cpython/issues/143921
  • github.com /python/cpython/pull/143922
  • mail.python.org /archives/list/security-announce@python.org/thread/DD7C7JZJ…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning