CVE-2013-4136
insecure temporary directory usage in passenger
CVE-2013-4136 is a medium vulnerability (CVSS 4.4) in Phusion Passenger, published August 22, 2013. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.33%, the 25th percentile. Fixed in passenger 4.0.6.
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
Exploit likelihood
What each source reports
NVD Score used
4.4
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
- Record
CVE-2013-4136- CVSS 2.0
- 4.4 Medium
AV:L/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-59
- Updated
- 2026-11-02
CVE List No score
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
- Record
CVE-2013-4136- Updated
- 2026-11-02
EUVDEUVD-2017-0321 No score
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
- Record
EUVD-2017-0321- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-w6rc-q387-vpgq No score
insecure temporary directory usage in passenger
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
- Record
GHSA-w6rc-q387-vpgq- Weakness
- CWE-59
- Updated
- 2026-11-02
OSV No score
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
- Record
CVE-2013-4136- Updated
- 2026-11-02
OSVDEBIAN-CVE-2013-4136 No score
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
- Record
DEBIAN-CVE-2013-4136- Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-w6rc-q387-vpgq No score
insecure temporary directory usage in passenger
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
- Record
GHSA-w6rc-q387-vpgq- Weakness
- CWE-59
- Updated
- 2026-11-02
OSVMGASA-2013-0253 No score
Updated rubygem-passenger package fixes CVE-2013-4136 & apache module
Updated rubygem-passenger package fixes security vulnerability:
It was reported that Phusion Passenger would reuse existing server instance directories (temporary directories) which could cause Passenger to remove or overwrite files belonging to other instances (CVE-2013-4136).
Additionally, the package has been fixed so that the Apache module should load.
- Record
MGASA-2013-0253- Updated
- 2026-11-02
OSVSUSE-SU-2016:0042-1 No score
Security update for rubygem-passenger
This update fixes the following security issues:
-
CVE-2015-7519: Passenger is not filtering environment like apache is doing (bnc#956281)
-
CVE-2013-4136: Fixed security issue Passenger would reuse existing server instance directories (temporary directories) which could cause Passenger to remove or overwrite files belonging to other instances. Solution: If the server instance directory already exists, it will now be removed first in order get correct directory permissions. If the directory still exists after removal, Phusion Passenger aborts to avoid writing to a directory with unexpected permissions.(bnc#919726)
-
CVE-2013-2119: Fixed security issue related with incorrect temporary file usage (bnc#828005)
- Record
SUSE-SU-2016:0042-1- Updated
- 2026-11-02
OSVUBUNTU-CVE-2013-4136 No score
ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.
- Record
UBUNTU-CVE-2013-4136- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
passengerRubyGems |
before 4.0.6 | 4.0.6 |
passengerDebian:12 |
before 3.0.13debian-1.2 | 3.0.13debian-1.2 |
passengerDebian:13 |
before 3.0.13debian-1.2 | 3.0.13debian-1.2 |
passengerDebian:14 |
before 3.0.13debian-1.2 | 3.0.13debian-1.2 |
passengerRubyGems |
before 4.0.6, plus listed versions 1.0.11.0.21.0.31.0.41.0.5 Show 45 moreShow less2.0.12.0.22.0.32.0.42.0.52.0.62.1.22.1.32.2.02.2.12.2.102.2.112.2.122.2.132.2.142.2.152.2.22.2.32.2.42.2.52.2.62.2.72.2.82.2.93.0.03.0.0.pre13.0.0.pre23.0.0.pre33.0.0.pre43.0.13.0.103.0.113.0.123.0.133.0.143.0.153.0.173.0.183.0.193.0.23.0.213.0.33.0.43.0.53.0.6 |
4.0.6 |
rubygem-passengerMageia:3 |
before 3.0.21-2.2.mga3 | 3.0.21-2.2.mga3 |
mod_passengerRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
ruby193-mod_passengerRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
ruby193-rubygem-passengerRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
ruby193-rubygem-passenger-debuginfoRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ruby193-rubygem-passenger-develRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
ruby193-rubygem-passenger-docRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
ruby193-rubygem-passenger-nativeRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
ruby193-rubygem-passenger-native-libsRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
rubygem-file-tailRed Hat:openshift:1.2::el6 |
before 0:1.0.5-4.el6op | 0:1.0.5-4.el6op |
rubygem-file-tail-docRed Hat:openshift:1.2::el6 |
before 0:1.0.5-4.el6op | 0:1.0.5-4.el6op |
rubygem-passengerRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
rubygem-passenger-debuginfoRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
rubygem-passenger-develRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
rubygem-passenger-docRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
rubygem-passenger-nativeRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
rubygem-passenger-native-libsRed Hat:openshift:1.2::el6 |
before 0:3.0.21-3.el6op | 0:3.0.21-3.el6op |
rubygem-spruzRed Hat:openshift:1.2::el6 |
before 0:0.2.5-4.el6op | 0:0.2.5-4.el6op |
rubygem-spruz-docRed Hat:openshift:1.2::el6 |
before 0:0.2.5-4.el6op | 0:0.2.5-4.el6op |
rubygem-passengerSUSE:Lifecycle Management Server 1.3 |
before 3.0.14-0.14.1 | 3.0.14-0.14.1 |
rubygem-passengerSUSE:Studio Onsite 1.3 |
before 3.0.14-0.14.1 | 3.0.14-0.14.1 |
rubygem-passengerSUSE:WebYast 1.3 |
before 3.0.14-0.14.1 | 3.0.14-0.14.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | affected | |
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/phusion/passenger/blob/release-4.0.6/NEWS
code.google.com/p/phusion-passenger/issues/detail?id=910
github.com/phusion/passenger/commit/5483b3292cc2af1c83033eaaadec20dba4dcfd9b
rhn.redhat.com/errata/RHSA-2013-1136.html
openwall.com/lists/oss-security/2013/07/16/6
nvd.nist.gov/vuln/detail/CVE-2013-4136
Show 26 moreShow less
github.com/advisories/GHSA-w6rc-q387-vpgq
github.com/rubysec/ruby-advisory-db/blob/master/gems/passenger/CVE-2013-4136.yml
security-tracker.debian.org/tracker/CVE-2013-4136
github.com/phusion/passenger
advisories.mageia.org/MGASA-2013-0253.html
lists.fedoraproject.org/pipermail/package-announce/2013-July/112716.html
bugs.mageia.org/show_bug.cgi?id=10890
access.redhat.com/errata/RHSA-2013:1136
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=892813
bugzilla.redhat.com/show_bug.cgi?id=985633
security.access.redhat.com/data/csaf/v2/advisories/2013/rhsa-2013_1136.json
access.redhat.com/security/cve/CVE-2013-2119
cve.org/CVERecord?id=CVE-2013-2119
nvd.nist.gov/vuln/detail/CVE-2013-2119
access.redhat.com/security/cve/CVE-2013-4136
cve.org/CVERecord?id=CVE-2013-4136
suse.com/support/update/announcement/2016/suse-su-20160042-1
bugzilla.suse.com/828005
bugzilla.suse.com/919726
bugzilla.suse.com/956281
suse.com/security/cve/CVE-2013-2119
suse.com/security/cve/CVE-2013-4136
suse.com/security/cve/CVE-2015-7519
ubuntu.com/security/CVE-2013-4136
openwall.com/lists/oss-security/2013/07/15/2
Left out here: 12 versions. The JSON record has them.