CVE-2017-16943

CRITICAL

Exim 4.88-4.89 - Remote Code Execution via BDAT Command Use-After-Free

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-16943. PoCs published by beraphin.

AI-analyzed exploit summary This repository provides a detailed analysis of CVE-2017-16943, a use-after-free (UAF) vulnerability in Exim's receive_msg function. It includes environment setup instructions, vulnerability analysis, and a step-by-step explanation of how the UAF can be triggered to achieve RIP hijacking.

Description

The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via vectors involving BDAT commands.

Exploits (1)

nomisec WRITEUP
by beraphin · poc
https://github.com/beraphin/CVE-2017-16943

This repository provides a detailed analysis of CVE-2017-16943, a use-after-free (UAF) vulnerability in Exim's receive_msg function. It includes environment setup instructions, vulnerability analysis, and a step-by-step explanation of how the UAF can be triggered to achieve RIP hijacking.

Classification
Writeup 90%
Attack Type
Rce
Complexity
Complex
Reliability
Theoretical
Target: Exim (version up to commit 01c594601670c7e48e676d6c6d32d0f0084067fa)
No auth needed
Prerequisites: Access to a vulnerable Exim server · Ability to send crafted SMTP commands
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (11)

Core 11
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1039872
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2017/dsa-4053
Exploit, Issue Tracking x_refsource_misc
https://bugs.exim.org/show_bug.cgi?id=2199
Mailing List mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2021/05/04/7

Scores

CVSS v3 9.8
EPSS 0.4671
EPSS Percentile 98.7%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-416
Status published
Products (3)
debian/debian_linux 9.0
exim/exim 4.88
exim/exim 4.89
Published Nov 25, 2017
Tracked Since Feb 18, 2026