FreeBSD : Cyrus IMAPd -- FETCH command out of bounds memory corruption (c0a269d5-3d16-11d9-8818-008088034841)

critical Nessus Plugin ID 19109

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The argument parser of the fetch command suffers a bug very similiar to the partial command problem. Arguments like 'body[p', 'binary[p' or 'binary[p' will be wrongly detected and the bufferposition can point outside of the allocated buffer for the rest of the parsing process.
When the parser triggers the PARSE_PARTIAL macro after such a malformed argument was received this can lead to a similiar one byte memory corruption and allows remote code execution, when the heap layout was successfully controlled by the attacker.

Solution

Update the affected packages.

See Also

http://www.nessus.org/u?25075052

http://www.nessus.org/u?4f3dc805

Plugin Details

Severity: Critical

ID: 19109

File Name: freebsd_pkg_c0a269d53d1611d98818008088034841.nasl

Version: 1.17

Type: local

Published: 7/13/2005

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: Critical

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:cyrus-imapd, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 11/22/2004

Vulnerability Publication Date: 11/6/2004

Reference Information

CVE: CVE-2004-1013