CVE-2015-3211: Medium severity ubuntu php-fpm vulnerability

Published Jun 5, 2015
·
Updated

It was reported that php-fpm package is vulnerable to symlink attack:

ls -lad /var/log/php-fpm drwxrwx--- 2 apache root 4096 May 28 18:53 /var/log/php-fpm

https://git.centos.org/blob/rpms!php/4b401fd4915cda3a1a336902afad4e5321859c32/SPECS!php.spec#L1409

%attr(770,apache,root) %dir %{localstatedir}/log/php-fpm

After installing php-fpm package, any software running under apache user can create symlink /var/log/php-fpm/error.log pointing to any file. After starting php-fpm service - file pointed by symlink will be appended by php-fpm log output. If a file did not exist before - it will be created. This issue only exist for a short time - after php-fpm package install and before php-fpm process is started for the first time. Exiting working configurations are not affected by this issue.

Steps to reproduce: - make sure you don't have php-fpm leftovers: # rm -rf /var/log/php-fpm - install php-fpm: # dnf install php-fpm - as an 'apache' user create an evil symlink: # su -s /bin/bash - apache $ ln -s /root/.bashrc /var/log/php-fpm/error.log - start php-fpm process: # systemctl start php-fpm - look at the contents of /root/.bashrc file (php-fpm error log output will be appended there) # cat /root/.bashrc

Other sources

php-fpm allows local users to write to or create arbitrary files via a symlink attack.

MITRE

Affected Software

1 affected component
php-fpm PHP-FPM

Event History

Jun 5, 2015
Data Sourced
02:08 PM
DescriptionSeverityAffected Software
Aug 25, 2017
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2015-3211?

CVE-2015-3211 is classified as a medium severity vulnerability due to its impact on unauthorized access to sensitive files.

2

How do I fix CVE-2015-3211?

To resolve CVE-2015-3211, ensure that the permissions on the /var/log/php-fpm directory are properly configured to restrict access.

3

Which software is affected by CVE-2015-3211?

CVE-2015-3211 affects the php-fpm package across various versions.

4

What type of attack does CVE-2015-3211 involve?

CVE-2015-3211 involves a symlink attack, allowing an attacker to potentially access data through improperly protected log files.

5

Can CVE-2015-3211 be exploited remotely?

Yes, CVE-2015-3211 can potentially be exploited remotely by leveraging weak directory permissions.

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