FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

bogofilter -- heap corruption through malformed input

Affected packages
0.93.5 <= bogofilter < 0.96.3

Details

VuXML ID 92140bc9-7bde-11da-8ec4-0002b3b60e4c
Discovery 2005-10-22
Entry 2006-01-07

Matthias Andree reports:

When using Unicode databases (default in more recent bogofilter installations), upon encountering invalid input sequences, bogofilter or bogolexer could overrun a malloc()'d buffer, corrupting the heap, while converting character sets. Bogofilter would usually be processing untrusted data received from the network at that time.

This problem was aggravated by an unrelated bug that made bogofilter process binary attachments as though they were text, and attempt charset conversion on them. Given the MIME default character set, US-ASCII, all input octets in the range 0x80...0xff were considered invalid input sequences and could trigger the heap corruption.

References

CVE Name CVE-2005-4591
URL http://bogofilter.sourceforge.net/security/bogofilter-SA-2005-01