{"id":"CVE-2026-38728","aliases":["CVE-2026-38728","GHSA-fv2f-rw9f-v9cm"],"related":[],"kind":"vulnerability","state":"published","title":"smtp-server's command parser memory exhaustion denial-of-service","summary":"An issue in Nodemailer smtp_server before v.3.18.3 allows a remote attacker to cause a denial of service via the SMTPStream._write, lib/smtp-stream.js components","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue in Nodemailer smtp_server before v.3.18.3 allows a remote attacker to cause a denial of service via the SMTPStream._write, lib/smtp-stream.js components","source":"cvelist"},{"lang":"en","text":"smtp-server prior to v3.18.3 are vulnerable to unauthenticated memory exhaustion denial-of-service. smtp-server's command parser allows any remote client to consume server memory by sending data without newline characters. The server's `_remainder` buffer in `SMTPStream._write` grows without limit, leading to heap exhaustion, prolonged GC pauses that freeze the event loop, and in some cases, process crash.\n\nThe `_write` method in `lib/smtp-stream.js` appends incoming TCP chunks to `this._remainder` in command mode. The buffer is only emptied when a newline is found. If a client never sends a newline, the `_remainder` value will grow indefinitely, causing excess memory consumption.","format":"markdown","source":"ghsa"}],"published":"2026-05-15T00:00:00.000Z","modified":"2026-06-29T23:26:32.795Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.18.3"}],"ecosystem":"npm","package":"smtp-server","purl":"pkg:npm/smtp-server","source":"ghsa"}],"references":[{"url":"https://github.com/nodemailer/smtp-server","tags":["package"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nodemailer/smtp-server/releases/tag/v3.18.3","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bytecreator.dev/blog/CVE-2026-38728","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-38728","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nodemailer/smtp-server/commit/592c5666fa0c76d1d04c1a32abad0ef806fbfe97","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-15T15:27:50.293Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-38728","url":"https://www.cve.org/CVERecord?id=CVE-2026-38728","licence":"CVE Terms of Use","modified":"2026-05-15T15:28:53.678Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fv2f-rw9f-v9cm","url":"https://github.com/advisories/GHSA-fv2f-rw9f-v9cm","licence":"CC-BY-4.0","modified":"2026-06-29T23:26:32.795Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-38728","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-38728","licence":"Public domain","modified":"2026-06-17T10:41:45.860Z"}],"updatedAt":"2026-11-25T22:59:21.811Z","epss":{"score":0.0075,"percentile":0.51206,"date":"2026-11-30T12:00:22.000Z"}}