VYPR
Critical severity9.8NVD Advisory· Published Oct 16, 2017· Updated May 13, 2026

CVE-2015-7687

CVE-2015-7687

Description

A use-after-free in OpenSMTPD before 5.7.2 allows remote attackers to crash or execute arbitrary code via crafted SMTP commands.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A use-after-free in OpenSMTPD before 5.7.2 allows remote attackers to crash or execute arbitrary code via crafted SMTP commands.

Vulnerability

A use-after-free vulnerability exists in OpenSMTPD versions prior to 5.7.2, specifically in the req_ca_vrfy_smtp and req_ca_vrfy_mta functions. The flaw occurs when handling crafted SMTP commands that trigger improper memory management, allowing a remote attacker to exploit a freed memory region. This issue was discovered during a code audit by Qualys [1] and affects all versions before 5.7.2 [3].

Exploitation

An attacker can exploit this vulnerability remotely without any authentication or user interaction. By sending specially crafted SMTP commands to an affected OpenSMTPD server, the attacker triggers the use-after-free condition. The attack vector is over the network and requires no local access or prior privileges [1][4].

Impact

Successful exploitation allows an attacker to crash the OpenSMTPD daemon (denial of service) or execute arbitrary code with the privileges of the non-chrooted _smtpd user. This can lead to full compromise of the mail transfer agent, potentially enabling unauthorized access to emails or further lateral movement within the system [1][3].

Mitigation

The vulnerability was fixed in OpenSMTPD version 5.7.2, released on October 2, 2015 [3]. All users are strongly advised to upgrade to this version or later. For systems that cannot be updated immediately, network access to the SMTP service should be restricted to trusted hosts only. No other workarounds are documented in the available references [1][2][4].

AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

5
  • Range: <5.7.2
  • OpenBSD/Opensmtpd2 versions
    cpe:2.3:a:openbsd:opensmtpd:*:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:a:openbsd:opensmtpd:*:*:*:*:*:*:*:*range: <=5.7.1
    • (no CPE)range: <5.7.2
  • cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
    • cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

7

News mentions

0

No linked articles in our index yet.