CVE-2005-1513
Critical · 9.8CVSS
9.8
EPSS
10.8%
Published
May 11, 2005
CISA due date
—
Cloudanix analysis
An old email server program can be crashed or taken over by attackers sending specially crafted messages, potentially interrupting email service for organizations still using it.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Network Service
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- High
What it actually does
Integer overflow in stralloc_readyplus allows memory corruption when processing large SMTP requests on 64-bit systems with ample virtual memory, enabling denial of service or arbitrary code execution.
Why it matters to the business
Compromised mail servers can experience crashes, service outages, or full system takeover, disrupting email delivery and potentially exposing sensitive communications on legacy deployments.
How an attack unfolds
An attacker connects to the SMTP service and transmits an oversized request that triggers the integer overflow during memory allocation, leading to corruption that can be leveraged for code execution or crashes; public exploits have been available for years but real-world use remains low given the software's age.
How to fix it
Replace qmail with a maintained MTA such as Postfix or Exim; apply vendor patches if any community forks exist; restrict SMTP exposure to trusted networks only.
How to confirm the fix worked
Verify that qmail is no longer present or that any remaining instances reject oversized SMTP inputs without crashing; scan for legacy qmail binaries and confirm network listeners have been removed or firewalled.
Typical attack path
- Establish TCP connection to exposed SMTP port
- Send crafted oversized SMTP command or message
- Trigger integer overflow in stralloc_readyplus
- Achieve memory corruption for DoS or code execution
How to detect it
Review SMTP logs for unusually large incoming requests, unexpected process crashes, or core dumps around qmail processes; examine historical network captures for oversized SMTP traffic to affected hosts.
What your security team should do
- Immediately inventory all systems for qmail installations given the 7819-day exposure window
- Migrate away from qmail to supported mail transfer agents
- Block inbound SMTP from untrusted sources until migration completes
- Monitor for any remaining legacy email infrastructure in the environment
The record
Integer overflow in the stralloc_readyplus function in qmail, when running on 64 bit platforms with a large amount of virtual memory, allows remote attackers to cause a denial of service and possibly execute arbitrary code via a large SMTP request.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | netqmail | 0 | 1.06-6.2~deb10u1 |
| Debian:8 | netqmail | 0 | 1.06-6.2~deb8u1 |
| Debian:9 | netqmail | 0 | 1.06-6.2~deb9u1 |
| Ubuntu:16.04:LTS | netqmail | 0 | 1.06-6.2~deb10u1build0.16.04.1 |
| Ubuntu:18.04:LTS | netqmail | 0 | 1.06-6.2~deb10u1build0.18.04.1 |
| Ubuntu:20.04:LTS | netqmail | 0 | 1.06-6.2~deb10u1build0.20.04.1 |
| Ubuntu:Pro:14.04:LTS | netqmail | 0 | 1.06-6.2~deb10u1build0.14.04.1+esm1 |
Related vulnerabilities
- CVE-2026-110264 An issue has been discovered in GitLab CE/EE affecting all versions from 7.0 before… CWE-190
- CVE-2026-53615 util-linux is a random collection of Linux utilities. CWE-190
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-106571 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-75820 GNU Aspell contains an integer truncation vulnerability in the WritableDict::add()… CWE-190
- CVE-2026-102621 A vulnerability was identified in Freedesktop Poppler up to 26.08.0. CWE-190
- CVE-2026-102620 A vulnerability was determined in Freedesktop Poppler 26.06.0/26.07.0/26.08.0. CWE-190
- CVE-2026-102633 libexpat versions 2.7.2 through 2.8.5 contain an integer overflow vulnerability in… CWE-190