Bug 500360 (CVE-2009-1579)

Summary: CVE-2009-1579 SquirrelMail: Server-side code injection in map_yp_alias username map
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: azelinka, dkovalsk, jscotka, kreilly, mhlavink, rcvalle
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.squirrelmail.org/security/issue/2009-05-10
Whiteboard: reported=20090512,public=20090510,source=osssecurity,impact=important,cvss2=7.5/AV:N/AC:L/Au:N/C:P/I:P/A:P,cwe=CWE-78
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-26 13:48:10 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 500790, 500791, 500792, 500793, 500794, 833981    
Bug Blocks:    

Description Jan Lieskovsky 2009-05-12 08:43:04 EDT
From SquirrelMail vulnerability report:

An issue was fixed that allowed arbitrary server-side code execution when SquirrelMail was configured to use the example "map_yp_alias" username mapping functionality.

Credits: Niels Teusink

Updated upstream patch (2009-05-21):
Comment 1 Fedora Update System 2009-05-12 09:07:22 EDT
squirrelmail-1.4.18-1.fc9 has been submitted as an update for Fedora 9.
Comment 2 Fedora Update System 2009-05-12 20:20:50 EDT
squirrelmail-1.4.18-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 3 Fedora Update System 2009-05-12 20:22:25 EDT
squirrelmail-1.4.18-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 4 Fedora Update System 2009-05-12 20:23:41 EDT
squirrelmail-1.4.18-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 7 Jan Lieskovsky 2009-05-14 14:05:59 EDT

The map_yp_alias function in functions/imap_general.php in
SquirrelMail before 1.4.18 allows remote attackers to execute
arbitrary commands via shell metacharacters in a username string that
is used by the ypmatch program.
Comment 8 Jan Lieskovsky 2009-05-21 14:08:48 EDT
CVE-2009-1381 (incomplete upstream fix for CVE-2009-1579) now public:

Comment 9 errata-xmlrpc 2009-05-26 13:31:17 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3
  Red Hat Enterprise Linux 4
  Red Hat Enterprise Linux 5

Via RHSA-2009:1066 https://rhn.redhat.com/errata/RHSA-2009-1066.html