From ${URL} : n 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: * control_process.pid * generation-X, where X is a number. If you happen to have a file inside the target directory called `control_process.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.37. [1] https://github.com/phusion/passenger/commit/34b1087870c2 @maintainer(s): since the fixed package is already in the tree, please let us know if it is ready for the stabilization or not.
(In reply to Agostino Sarubbo from comment #0) > @maintainer(s): since the fixed package is already in the tree, please let > us know if it is ready for the stabilization or not. This is not relevant since the currently stable 3.x versions are not affected by this bug. I also don't consider 4.0.x ready for stabilization yet given the stream of bug fixes it still sees. Only thing left on our side is cleanup which I'll do next week once it is clear that this new release won't break things.
(In reply to Hans de Graaff from comment #1) > Only thing left on our side is cleanup which I'll do next week once it is > clear that this new release won't break things. Vulnerable versions have been cleaned up.
CVE-2014-1831 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2014-1831): Phusion Passenger before 4.0.37 allows local users to write to certain files and directories via a symlink attack on (1) control_process.pid or a (2) generation-* file.