CVE-2014-0185: High severity PHP PHP vulnerability

Published Apr 30, 2014
·
Updated

It was reported that, on some distributions, PHP FPM (a FastCGI Process Manager for PHP) used a UNIX socket with insecure, default permissions. This would allow local users to execute PHP scripts with the privileges of the "apache" user. This is a similar situation to using modphp where users can place scripts in their "~/publichtml/" directory.

Original report: http://www.openwall.com/lists/oss-security/2014/04/29/5

On Red Hat Enterprise Linux 6, when using the Apache HTTP Server with modphp, the use of "~/publichtml/" is disabled by default; however, the default FPM configuration is more open, allowing users to talk directly to FPM and have their PHP scripts executed. (Note that there is currently no fastcgi module for the Apache HTTP Server in Red Hat Enterprise Linux 6, or for any other web server.)

Acknowledgements:

Red Hat would like to thank Christian Hoffmann for reporting this issue.

Other sources

sapi/fpm/fpm/fpmunix.c in the FastCGI Process Manager (FPM) in PHP before 5.4.28 and 5.5.x before 5.5.12 uses 0666 permissions for the UNIX socket, which allows local users to gain privileges via a crafted FastCGI client.

— MITRE

Affected Software

6 affected componentsFixes available
redhat/php<5.4.28
5.4.28
redhat/php<5.5.12
5.5.12
PHP PHP>=5.3.0<5.3.28
PHP PHP>=5.4.0<5.4.28
PHP PHP>=5.5.0<5.5.12
debian/php5
5.4.4-14+deb7u105.5.12+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.4.28
  2. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.5.12
  3. Upgrade

    Upgrade debian/php5 to a version that resolves this vulnerability.

    Fixed in 5.4.4-14+deb7u10Fixed in 5.5.12+dfsg-1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.4.28
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.5.12

Event History

Apr 30, 2014
Data Sourced
03:31 AM
DescriptionSeverityAffected Software
May 6, 2014
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
10:44 AM
RemedyWeakness
Data Sourced
via NVD·10:44 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 12, 2023
Data Sourced
via Red Hat·03:23 AM
DescriptionSeverityAffected Software
May 6, 2026
Updated
via NVD·10:30 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2014-0185?

The severity of CVE-2014-0185 is classified as a high risk due to the potential for local users to execute scripts with elevated privileges.

2

How do I fix CVE-2014-0185?

To fix CVE-2014-0185, ensure that the permissions for the UNIX socket used by PHP FPM are set securely.

3

Which PHP versions are affected by CVE-2014-0185?

CVE-2014-0185 affects PHP versions between 5.3.0 and 5.5.12.

4

Can CVE-2014-0185 be exploited remotely?

CVE-2014-0185 is a local vulnerability and cannot be exploited remotely.

5

What types of distributions are impacted by CVE-2014-0185?

CVE-2014-0185 impacts various Linux distributions that use insecure default permissions for the PHP FPM UNIX socket.

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