CVE-2014-1831: Low severity phusion passenger vulnerability

Published Jan 28, 2014
·
Updated

An upstream commit [1] to the Passenger rubygem indicated that versions 4.0.5 and later are affected by a temporary file flaw described as follows:

" Phusion Passenger creates a "server instance directory" in /tmp during startup, which is a temporary directory that Phusion Passenger uses to store working files. This directory is deleted after Phusion Passenger exits. For various technical reasons, this directory must have a semi-predictable filename. If a local attacker can predict this filename, and precreates a symlink with the same filename that points to an arbitrary directory with mode 755, owner root and group root, then the attacker will succeed in making Phusion Passenger write files and create subdirectories inside that target directory. The following files/subdirectories are created:

controlprocess.pid generation-X, where X is a number.

If you happen to have a file inside the target directory called controlprocess.pid, then that file's contents are overwritten.

These files and directories are deleted during Phusion Passenger exit. The target directory itself is not deleted, nor are any other contents inside the target directory, although the symlink is. "

It is fixed in upstream version 4.0.33.

[1] https://github.com/phusion/passenger/commit/34b1087870c2

Other sources

Phusion Passenger before 4.0.37 allows local users to write to certain files and directories via a symlink attack on (1) controlprocess.pid or a (2) generation- file.

MITRE

Affected Software

3 affected componentsFixes available
redhat/rubygem-passenger<4.0.38
4.0.38
debian/passenger
5.0.30-1.2+deb11u16.0.17+ds-16.0.20+ds-1
Phusion Passenger<=4.0.36

Event History

Jan 28, 2014
Data Sourced
07:21 PM
SeverityAffected Software
Data Sourced
via Red Hat·11:18 PM
DescriptionSeverityAffected Software
Feb 19, 2015
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2014-1831?

CVE-2014-1831 has a moderate severity rating due to potential exposure of sensitive data through temporary files.

2

What versions of Phusion Passenger are affected by CVE-2014-1831?

CVE-2014-1831 affects Phusion Passenger versions up to 4.0.36.

3

How do I fix CVE-2014-1831?

To fix CVE-2014-1831, upgrade Phusion Passenger to version 4.0.38 or later.

4

Is there a specific patch for CVE-2014-1831?

There is no specific patch for CVE-2014-1831; users should update to a secure version of Phusion Passenger.

5

Are there any distributions affected by CVE-2014-1831?

Yes, Red Hat and Debian distributions are affected but can be mitigated by updating to the respective fixed versions.

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