7.5high
smtp-server's command parser memory exhaustion denial-of-service
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.75% (higher than 51% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-fv2f-rw9f-v9cm
Description
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| smtp-server (npm) | before 3.18.3 | GitHub Advisory Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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
GitHub Advisory Database
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.
The _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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-38728 changed 2026-05-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fv2f-rw9f-v9cm changed 2026-06-29 | CC-BY-4.0 |
| NVD | CVE-2026-38728 changed 2026-06-17 | Public domain |