cbcvebase.
CVE-2020-28020
published 2021-05-06

CVE-2020-28020: Exim 4 before 4.92 allows Integer Overflow to Buffer Overflow, in which an unauthenticated remote attacker can execute arbitrary code by leveraging the…

PriorityP261critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
7.80%
93.9th percentile
Exim 4 before 4.92 allows Integer Overflow to Buffer Overflow, in which an unauthenticated remote attacker can execute arbitrary code by leveraging the mishandling of continuation lines during header-length restriction.

Affected

2 ranges
VendorProductVersion rangeFixed in
debianexim4< exim4 4.92~RC5-1 (bookworm)exim4 4.92~RC5-1 (bookworm)
eximexim>= 4.00 < 4.924.92

Detection & IOCsextracted from sources · hover to see the quote

snort
alert smtp any any -> [$HOME_NET,$HTTP_SERVERS,$SMTP_SERVERS] any (msg:"ET EXPLOIT Exim receive_msg Integer Overflow Attempt Inbound M1 (CVE-2020-28020)"; flow:established,to_server; content:"|0a 20|"; content:"|0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a|"; fast_pattern; isdataat:50000,relative; reference:url,www.qualys.com/2021/05/04/21nails/21nails.txt; reference:cve,2020-28020; classtype:attempted-admin; sid:2032898; rev:1; metadata:attack_target SMTP_Server, created_at 2021_05_04, cve CVE_2020_28020, deployment Perimeter, deployment Internal, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2021_05_04;)
snort
alert smtp any any -> [$HOME_NET,$HTTP_SERVERS,$SMTP_SERVERS] any (msg:"ET EXPLOIT Exim receive_msg Integer Overflow Attempt Inbound M2 (CVE-2020-28020)"; flow:established,to_server; content:"|0a 09|"; content:"|0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a|"; fast_pattern; isdataat:50000,relative; reference:url,www.qualys.com/2021/05/04/21nails/21nails.txt; reference:cve,2020-28020; classtype:attempted-admin; sid:2032899; rev:1; metadata:attack_target SMTP_Server, created_at 2021_05_04, cve CVE_2020_28020, deployment Perimeter, deployment Internal, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2021_05_04;)
bytes
|0a 20| followed by |0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a| with isdataat:50000,relative (M1)
bytes
|0a 09| followed by |0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a| with isdataat:50000,relative (M2)
  • Target inbound SMTP traffic to server assets; exploit arrives as an unauthenticated inbound SMTP connection carrying malformed continuation lines (LF+SPACE or LF+TAB) followed by a long run of bare LF bytes (≥17) with at least 50,000 additional bytes following — indicative of the integer overflow trigger in Exim's receive_msg header-length handling.
  • The vulnerability is exploitable by an unauthenticated remote attacker, so no prior authentication or session state is required — monitor for the byte patterns even at the very start of an SMTP DATA phase.
  • ·Affected versions are Exim 4 before 4.92; upgrade to 4.92 or later (Debian fixed at 4.92~RC5-1) to remediate.
  • ·Snort rules use 'isdataat:50000,relative' after the bare-LF sequence, meaning the rule only fires when at least 50,000 bytes follow that pattern — tune threshold carefully in high-volume SMTP environments to avoid performance impact.
  • ·Rules are classified 'confidence Medium' by Proofpoint Nexus; validate against your SMTP traffic baseline before enabling in block mode.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_ubuntu9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.