CVE-2009-1381: OS Command Injection

Published May 21, 2009
·
Updated

It was discovered that original upstream patch for server-side command execution flaw affecting setups with mapypalias username map enabled did not address the issue completely, due to incorrect use of quoting (backticks vs. single quotes). Code execution was still possible in upstream version 1.4.18.

Issue was fixed upstream in 1.4.19.

Updated upstream security advisory: http://www.squirrelmail.org/security/issue/2009-05-10

Full upstream patch: http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-14-STABLE/squirrelmail/functions/imapgeneral.php?r1=13549&r2=13733

Other sources

The mapypalias function in functions/imapgeneral.php in SquirrelMail before 1.4.19-1 on Debian GNU/Linux, and possibly other operating systems and versions, allows remote attackers to execute arbitrary commands via shell metacharacters in a username string that is used by the ypmatch program. NOTE: this issue exists because of an incomplete fix for CVE-2009-1579.

Red Hat

Affected Software

30 affected components
Squirrelmail Imap General.php=1.2.2
Squirrelmail Squirrelmail=1.2.5
Squirrelmail Squirrelmail=1.2.6
Squirrelmail Squirrelmail=1.2.6-rc1
Squirrelmail Squirrelmail=1.2.7
Squirrelmail Squirrelmail=1.2.8
Squirrelmail Squirrelmail=1.2.9
Squirrelmail Squirrelmail=1.2.10
Squirrelmail Squirrelmail=1.2.11
Squirrelmail Squirrelmail=1.4.0
Squirrelmail Squirrelmail=1.4.0-r1
Squirrelmail Squirrelmail=1.4.1
Squirrelmail Squirrelmail=1.4.2
Squirrelmail Squirrelmail=1.4.2-r1
Squirrelmail Squirrelmail=1.4.2-r2
Squirrelmail Squirrelmail=1.4.2-r3
Squirrelmail Squirrelmail=1.4.2-r4
Squirrelmail Squirrelmail=1.4.2-r5
Squirrelmail Squirrelmail=1.4.3_rc1
Squirrelmail Squirrelmail=1.4.3_rc1-r1
Squirrelmail Squirrelmail1.4.19-1
Squirrelmail Squirrelmail=1.4.2
Squirrelmail Squirrelmail=1.4.3_rc1
Squirrelmail Squirrelmail=1.4.2-r3
Squirrelmail Squirrelmail=1.4.2-r5
Squirrelmail Squirrelmail1.4.19-1
Squirrelmail Squirrelmail=1.4.2-r1
Squirrelmail Squirrelmail=1.4.2-r2
Squirrelmail Squirrelmail=1.4.2-r4
Squirrelmail Squirrelmail=1.4.3_rc1-r1

Event History

May 21, 2009
CVE Published
via Red Hat·12:00 AM
Data Sourced
via Red Hat·12:00 AM
RemedyDescriptionSeverityWeakness
May 22, 2009
Data Sourced
via Red Hat·06:41 AM
Affected Software
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2009-1381?

The severity of CVE-2009-1381 is rated as high due to its potential for server-side command execution.

2

How do I fix CVE-2009-1381?

To fix CVE-2009-1381, ensure that you apply the latest patches provided by the SquirrelMail project for the affected versions.

3

Which versions of SquirrelMail are affected by CVE-2009-1381?

CVE-2009-1381 affects SquirrelMail versions 1.2.2 to 1.4.1.

4

Can I safely use SquirrelMail version 1.4.2 or later regarding CVE-2009-1381?

Yes, SquirrelMail versions 1.4.2 and later are not affected by CVE-2009-1381.

5

What types of systems are at risk due to CVE-2009-1381?

Systems with SquirrelMail configurations using the map_yp_alias username map enabled are at risk due to CVE-2009-1381.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203