Bug 244277 (CVE-2007-3257) - CVE-2007-3257 evolution malicious server arbitrary code execution
Summary: CVE-2007-3257 evolution malicious server arbitrary code execution
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2007-3257
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Depends On: 244283 244285 244287 244289 244290 244291 244292 244293 244295
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-14 19:51 UTC by Josh Bressers
Modified: 2019-09-29 12:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-10 05:47:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 447414 0 None None None Never
Red Hat Product Errata RHSA-2007:0509 0 normal SHIPPED_LIVE Important: evolution security update 2008-01-07 22:27:00 UTC
Red Hat Product Errata RHSA-2007:0510 0 normal SHIPPED_LIVE Important: evolution-data-server security update 2007-06-25 13:39:16 UTC

Description Josh Bressers 2007-06-14 19:51:01 UTC
A bug was reported to the upstream BTS detailing a flaw in the way evolution
accepts IMAP server data.  To quote the upstream bug:

    The "SEQUENCE" value in the GData of the IMAP code (camel-imap-folder.c)
    is converted from a string using strtol. This allows for negative values.

    The imap_rescan uses this value as an int. It checks for !seq and
    seq>summary.length. It doesn't check for seq < 0. Although seq is used as
    the index of an array.

    This means that a negative index number can be fed to the array lookup by
    altering the output of an IMAP server.

    I'm marking this as a blocker (very very serious) security bug as this is
    remotely exploitable (I can put shell code in the UID field of the IMAP
    code, and make it execute on the victim's computer, as at the seq'd field
    of the index a g_strdup of the UID is written to memory. By carefully
    calculating the negative value and overwriting the instruction pointer
    near the array's start, I can let it point to that memory and get it to
    execute).

This flaw is only exploitable via a man in the middle, or a malicious IMAP server.

Comment 4 Matthew Barnes 2008-03-10 05:47:34 UTC
I assume this has been released by now.  Closing as ERRATA.


Note You need to log in before you can comment on or make changes to this bug.