Out-of-bounds write in Dovecot - CVE-2019-11500
Published: August 28, 2019
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to a boundary error within IMAP and ManageSieve protocol implementation the when scanning data in quoted strings. A remote attacker can send a specially crafted request to the affected server, trigger out-of-bounds write and execute arbitrary code on the target system.
Exploitation example:
perl -e 'print "a id (\"foo\" \"".("x"x1021)."\\A\" \"bar\"
\"\000".("x"x1020)."\\A\")\n"' | nc localhost 143
Affected software
Arch Linux
Gentoo Linux
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Opensuse
Fedora
dovecot (Alpine package)
dovecot (Ubuntu package)
dovecot (Debian package)
dovecot
How to mitigate CVE-2019-11500
dovecot (Alpine package) - update to 2.2.36.4-r0
dovecot (Ubuntu package) - addressed in versions 1:2.2.22-1ubuntu2.11, 1:2.2.22-1ubuntu2.12, 1:2.2.33.2-1ubuntu4.4, 1:2.2.33.2-1ubuntu4.5, 1:2.3.4.1-1ubuntu2.3, 1:2.3.4.1-1ubuntu2.4
dovecot (Debian package) - update to 1:2.2.27-3+deb9u5
dovecot - addressed in versions 2.3.7.2-1.fc29, 2.3.7.2-1.fc30, 2.3.7.2-1.fc31, 2.3.7.2-1.fc32
External References
- https://dovecot.org/pipermail/dovecot-news/2019-August/000418.html
- https://github.com/dovecot/core/commit/85fcb895ca7f0bcb8ee72047fe0e1e78532ff90b
- https://github.com/dovecot/core/commit/f904cbdfec25582bc5e2a7435bf82ff769f2526a
- https://github.com/dovecot/pigeonhole/commit/7ce9990a5e6ba59e89b7fe1c07f574279aed922c
- https://github.com/dovecot/pigeonhole/commit/4a299840cdb51f61f8d1ebc0210b19c40dfbc1cc
Related Security Bulletins
- Arch Linux update for dovecot
- Arch Linux update for pigeonhole
- Remote code execution in Dovecot IMAP server
- Arch Linux update for dovecot
- Ubuntu update for Dovecot
- Gentoo update for Dovecot
- Debian update for dovecot
- Ubuntu regression update for Dovecot
- Red Hat update for dovecot
- Red Hat update for dovecot
- Red Hat update for dovecot
- OpenSUSE Linux update for dovecot23
- OpenSUSE Linux update for dovecot23
- Out-of-bounds write in dovecot (Alpine package)
- Fedora 31 update for dovecot
- Fedora 32 update for dovecot
- Fedora 29 update for dovecot
- Fedora 30 update for dovecot