<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="202310-13">
    <title>GNU Mailutils: unexpected processsing of escape sequences</title>
    <synopsis>A vulnerability has been discovered in Mailutils where escape sequences are processed in a context where this may lead to RCE.</synopsis>
    <product type="ebuild">mailutils</product>
    <announced>2023-10-19</announced>
    <revised count="1">2023-10-19</revised>
    <bug>802867</bug>
    <access>remote</access>
    <affected>
        <package name="net-mail/mailutils" auto="yes" arch="*">
            <unaffected range="ge">3.12-r3</unaffected>
            <vulnerable range="lt">3.12-r3</vulnerable>
        </package>
    </affected>
    <background>
        <p>GNU Mailutils is a collection of mail-related utilities, including an IMAP4 server (imap4d) and a Mail User Agent (mail).</p>
    </background>
    <description>
        <p>A vulnerability has been discovered in GNU Mailutils. Please review the CVE identifier referenced below for details.</p>
    </description>
    <impact type="high">
        <p>mail(1) from mailutils would process escape sequences (like ~! shellcommand) in message bodies piped/redirected in. This creates an RCE if some part of the message body is under an attacker&#39;s control.</p>
    </impact>
    <workaround>
        <p>There is no known workaround at this time.</p>
    </workaround>
    <resolution>
        <p>All Mailutils users should upgrade to the latest version:</p>
        
        <code>
          # emerge --sync
          # emerge --ask --oneshot --verbose ">=net-mail/mailutils-3.12-r3"
        </code>
    </resolution>
    <references>
        <uri link="https://nvd.nist.gov/vuln/detail/CVE-2021-32749">CVE-2021-32749</uri>
    </references>
    <metadata tag="requester" timestamp="2023-10-19T05:47:33.365385Z">graaff</metadata>
    <metadata tag="submitter" timestamp="2023-10-19T05:47:33.367529Z">graaff</metadata>
</glsa>