CVE-2020-7247

critical KEV
Published 2022-03-25 ยท Modified 2022-03-25
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
10.0

Description

smtp_mailaddr in smtp_session.c in OpenSMTPD, as used in OpenBSD and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session.

CISA KEV

Vendor
OpenBSD
Product
OpenSMTPD
Due date
2022-04-15

Predictions

Exploit likelihood
99%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-48051 remote openbsd verified
Marco Ivaldi ยท 2020-02-11

OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation + Remote Code Execution

Source code queued for fetch โ€” refresh in a moment.
EDB-47984 remote linux verified
1F98D ยท 2020-01-30

OpenSMTPD 6.6.1 - Remote Code Execution

Source code queued for fetch โ€” refresh in a moment.
EDB-48038 remote linux verified
Metasploit ยท 2020-02-10

OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

OpenSMTPD MAIL FROM Remote Code Execution
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 6.6.2p1-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 6.6.2p1-1
sid Fixed 6.6.2p1-1
forky Fixed 6.6.2p1-1
bullseye Fixed 6.6.2p1-1
bookworm Fixed 6.6.2p1-1

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.