VDB

CVE-2025-15366

CVE-2025-15366 PUBLISHED CVSS 5.9 MEDIUM

IMAP command injection in user-controlled commands

Reported by psf · Published January 20, 2026

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3.12-debuginfoerrata.rockylinux.org0:3.12.12-4.el9_7.1.x86_64, 0:3.12.12-4.el9_7.1.i686, 0:3.12.12-3.el10_1.1.ppc64le
python3-idleerrata.rockylinux.org3.6.8-73.el8, 0:3.12.12-3.el10_1.1.x86_64, 0:3.12.12-3.el10_1.1.s390x, 0:3.12.12-3.el10_1.1.ppc64le, 0:3.12.12-3.el10_1.1.aarch64, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.aarch64
python3.11errata.rockylinux.org0:3.11.13-5.el8_10.x86_64, 0:3.11.13-5.el8_10.src, 0:3.11.13-5.el8_10.i686, 0:3.11.13-5.1.el9_7.x86_64, 0:3.11.13-5.1.el9_7.src, 0:3.11.13-5.1.el9_7.s390x, 0:3.11.13-5.1.el9_7.i686
python3-tkintererrata.rockylinux.org3.6.8-73.el8, 0:3.12.12-3.el10_1.1.x86_64, 0:3.12.12-3.el10_1.1.s390x, 0:3.12.12-3.el10_1.1.aarch64, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.ppc64le
python3.9-debuginfoerrata.rockylinux.org0:3.9.25-3.el9_7.1.x86_64, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.aarch64
platform-python-debugerrata.rockylinux.org3.6.8-73.el8
python3-develerrata.rockylinux.org0:3.12.12-3.el10_1.1.x86_64, 0:3.12.12-3.el10_1.1.s390x, 0:3.12.12-3.el10_1.1.ppc64le, 0:3.9.25-3.el9_7.1.x86_64, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.i686, 0:3.9.25-3.el9_7.1.aarch64
python3.12errata.rockylinux.org0:3.12.12-4.el9_7.1.src, 0:3.12.12-4.el9_7.1.s390x, 0:3.12.12-4.el9_7.1.ppc64le, 0:3.12.12-4.el9_7.1.aarch64, 0:3.12.12-3.el10_1.1.src
python3.12-debugsourceerrata.rockylinux.org0:3.12.12-3.el8_10.aarch64, 0:3.12.12-3.el10_1.1.s390x
python3errata.rockylinux.org3.6.8-73.el8, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.aarch64
python3.12-idleerrata.rockylinux.org0:3.12.12-4.el9_7.1.x86_64, 0:3.12.12-4.el9_7.1.i686, 0:3.12.12-3.el8_10.x86_64, 0:3.12.12-3.el8_10.i686, 0:3.12.12-3.el8_10.aarch64
python3.11-testerrata.rockylinux.org0:3.11.13-5.el8_10.x86_64, 0:3.11.13-5.el8_10.i686, 0:3.11.13-5.1.el9_7.x86_64, 0:3.11.13-5.1.el9_7.s390x, 0:3.11.13-5.1.el9_7.i686, 0:3.11.13-5.1.el9_7.aarch64

24 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
5.9
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
Python Software FoundationCPython0, 3.14.0, 3.15.0a1
Python Software FoundationCPython
wolfipython-3.120
wolfipython-3.130
Python Software FoundationCPython3.14.0, 3.15.0a1, 0
alpinepython30
chainguardpython-3.140
chainguardpython-3.130
chainguardpython-3.120
wolfipython-3.140

Timeline

  • Jan 20, 2026 CVE Published
  • Jan 21, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 20, 2026 Distribution Patch (54 in total, the first dated here)
  • Mar 20, 2026 Security Advisory (61 in total, the first dated here)
  • Jun 21, 2026 Coalition ESS Score
  • Sep 16, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-15366
vulnetix vdb fixes CVE-2025-15366

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-15366/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • issue-tracking
  • patch
  • vendor-advisory
  • patch
  • patch
  • patch
  • patch
  • patch
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›