Cloudanix VulnDB

CVE-2005-1513

Critical · 9.8

CVSS

9.8

EPSS

10.8%

Published

May 11, 2005

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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.

Exploit Available
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

  1. Establish TCP connection to exposed SMTP port
  2. Send crafted oversized SMTP command or message
  3. Trigger integer overflow in stralloc_readyplus
  4. 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