{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-55558","id":"CVE-2026-55558","title":"aiosmtplib: STARTTLS response injection","description":"aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.2, SMTPProtocol.start_tls in src/aiosmtplib/protocol.py consumes the server's 220 response and starts the TLS handshake without clearing SMTPProtocol._buffer. An active network attacker can place attacker-chosen SMTP response lines after the plaintext 220 response in the same network segment. The method then calls loop.st","descriptionLong":"aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.2, SMTPProtocol.start_tls in src/aiosmtplib/protocol.py consumes the server's 220 response and starts the TLS handshake without clearing SMTPProtocol._buffer. An active network attacker can place attacker-chosen SMTP response lines after the plaintext 220 response in the same network segment. The method then calls loop.start_tls; those bytes survive the transport upgrade and are parsed as the first response from inside the TLS session, desynchronizing subsequent SMTP command and response pairs. Connections using start_tls=True or opportunistic STARTTLS are affected, while connections using use_tls=True are not. This issue is fixed in version 5.1.2.","published":"2026-08-20T14:29:58.580Z","updated":"2026-10-28T02:31:10.104079880Z","reserved":"2026-06-16T23:11:20.213Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["cole aiosmtplib"],"affectedProducts":[{"vendor":"cole","product":"aiosmtplib","defaultStatus":null,"versions":[{"version":"< 5.1.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"aiosmtplib","purl":"pkg:pypi/aiosmtplib","ranges":["<5.1.2"],"fixed":["5.1.2"],"advisory":"GHSA-vxj7-4xrp-5vr4"}],"cwes":["CWE-74"],"aliases":["GHSA-vxj7-4xrp-5vr4","PYSEC-2026-3805"],"references":[{"url":"https://github.com/cole/aiosmtplib/security/advisories/GHSA-vxj7-4xrp-5vr4","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/cole/aiosmtplib/commit/9fab7ba1361dbf7622ede1315a24be805cff09c9","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cole/aiosmtplib/releases/tag/v5.1.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55558.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55558","tags":["advisory"]},{"url":"https://github.com/cole/aiosmtplib","tags":["package"]},{"url":"https://pypi.org/project/aiosmtplib","tags":["package"]},{"url":"https://github.com/advisories/GHSA-vxj7-4xrp-5vr4","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00403,"epssPercentile":0.35277,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-55558","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55558","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-55558","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vxj7-4xrp-5vr4","ok":true,"note":"GHSA-vxj7-4xrp-5vr4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-55558","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}