Buffer overflow in Sendmail 5.79 to 8.12.7 allows remote attackers to execute arbitrary code via certain formatted address fields, related t
Buffer overflow in Sendmail 5.79 to 8.12.7 allows remote attackers to execute arbitrary code via certain formatted address fields, related to sender and recipient header comments as processed by the crackaddr function of headers.c.
- Published
- Mar 7, 2003
- Updated
- Jun 16, 2026
- EPSS
- 72.6% · 99th percentile
- CWE
- CWE-120
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
62
This week
Don’t wait for the next maintenance window.
- CVSS
- 40 / 40 · 10.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 22 / 30 · 72.6%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| sendmail | sendmail | cpe:2.3:a:sendmail:sendmail |
| hp | alphaserver sc | cpe:2.3:h:hp:alphaserver_sc |
| gentoo | linux | cpe:2.3:o:gentoo:linux |
| hp | hp-ux | cpe:2.3:o:hp:hp-ux |
| netbsd | netbsd | cpe:2.3:o:netbsd:netbsd |
| oracle | solaris | cpe:2.3:o:oracle:solaris |
| sun | sunos | cpe:2.3:o:sun:sunos |
| windriver | bsdos | cpe:2.3:o:windriver:bsdos |
| windriver | platform sa | cpe:2.3:o:windriver:platform_sa |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- gentoo linux1.4
- hp alphaserver scall versions
- hp hp-ux10.10
- hp hp-ux10.20
- hp hp-ux11.0.4
- hp hp-ux11.00
- hp hp-ux11.11
- hp hp-ux11.22
- netbsd netbsd1.5
- netbsd netbsd1.5.1
- netbsd netbsd1.5.2
- netbsd netbsd1.5.3
- netbsd netbsd1.6
- oracle solaris2.6
- oracle solaris7.0
- oracle solaris8
- oracle solaris9
- sendmail sendmailbefore 8.9.3
- sendmail sendmail8.10.0 and later · before 8.11.6
- sendmail sendmail8.12.0 and later · before 8.12.8
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | sendmail | before 8.13.0.PreAlpha4-0 | 8.13.0.PreAlpha4-0 |
| Debian:3.0 | sendmail | before 8.12.3-5 | 8.12.3-5 |
| Debian:3.0 | sendmail-wide | before 8.12.3+3.5Wbeta-5.2 | 8.12.3+3.5Wbeta-5.2 |
Same product
sendmail: all recordsOther highest-scoring records for the same primary product.
- CVE-2003-0161The prescan() function in the address parser (parseaddr.c) in Sendmail before 8.12.9 does not properly handle certain conversions from char 52Plan
- CVE-2006-0058Signal handler race condition in Sendmail 8.13.x before 8.13.6 allows remote attackers to execute arbitrary code by triggering timeouts in a39Monitor
- CVE-2009-4565sendmail before 8.14.4 does not properly handle a '\0' character in a Common Name (CN) field of an X.509 certificate, which (1) allows man-i31Monitor
- CVE-2006-4434Use-after-free vulnerability in Sendmail before 8.13.8 allows remote attackers to cause a denial of service (crash) via a long "header line"31Monitor
- CVE-2002-2261Sendmail 8.9.0 through 8.12.6 allows remote attackers to bypass relaying restrictions enforced by the 'check_relay' function by spoofing a b31Monitor
- CVE-2002-0906Buffer overflow in Sendmail before 8.12.5, when configured to use a custom DNS map to query TXT records, allows remote attackers to cause a 31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:sendmail | 8.13.0.PreAlpha4-0 · Debian:12 | Package registry (OSV) |
| debian:sendmail-wide | 8.12.3+3.5Wbeta-5.2 · Debian:3.0 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×3
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | local | 2001-01-01 |
| Exploit-DB entry | remote | 2003-03-02 |
| Exploit-DB entry | remote | 2003-03-02 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-795 d
- Published
- TodaySep 30, 2026+8608 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')CVSS vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
nvd-primary
Root cause
When data is copied, the source length is not compared with the size of the destination buffer. Excess data overwrites adjacent memory.
The bug in code
The whole CWE-120 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
char buf[256];memcpy(buf, pkt->data, pkt->len);Fixed
char buf[256];if (pkt->len > sizeof(buf)) { return -EINVAL;}memcpy(buf, pkt->data, pkt->len);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
- Overflow Variables and TagsCAPEC-46likelihood: High · High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2003-002.txt.asc
- ftp://ftp.sco.com/pub/updates/OpenServer/CSSA-2003-SCO.6
- ftp://ftp.sco.com/pub/updates/UnixWare/CSSA-2003-SCO.5
- ftp://patches.sgi.com/support/free/security/advisories/20030301-01-P
- distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000571
- frontal2.mandriva.com/security/advisories?name=MDKSA-2003:028
- marc.info/?l=bugtraq&m=104673778105192&w=2
- marc.info/?l=bugtraq&m=104678739608479&w=2
- marc.info/?l=bugtraq&m=104678862109841&w=2
- marc.info/?l=bugtraq&m=104678862409849&w=2
- marc.info/?l=bugtraq&m=104679411316818&w=2
- www-1.ibm.com/support/search.wss?rs=0&q=IY40500&apar=only
- www-1.ibm.com/support/search.wss?rs=0&q=IY40501&apar=only
- www-1.ibm.com/support/search.wss?rs=0&q=IY40502&apar=only
- www.cert.org/advisories/CA-2003-07.html
- www.debian.org/security/2003/dsa-257
- www.iss.net/issEn/delivery/xforce/alertdetail.jsp?oid=21950
- www.iss.net/security_center/static/10748.php
- www.kb.cert.org/vuls/id/398025
- www.redhat.com/support/errata/RHSA-2003-073.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.