CVE-2013-4136 json
insecure temporary directory usage in passenger
published 2013-09-30 13 y ago modified 2026-06-16 4 mo ago also GHSA-w6rc-q387-vpgq , EUVD-2017-0321
- cvss
- 4.4
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 25%
- public exploits
- 0
- none known
Summary
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/.
Patch / fix
- rubygems passenger 4.0.6
- passenger Debian 14, Debian 13, Debian 12 3.0.13debian-1.2
debian advisories DEBIAN-CVE-2013-4136
- rubygem-passenger openshift 1.2 3.0.21-3.el6op
- mod_passenger openshift 1.2 3.0.21-3.el6op
- rubygem-spruz openshift 1.2 0.2.5-4.el6op
- rubygem-file-tail openshift 1.2 1.0.5-4.el6op
- ruby193-mod_passenger openshift 1.2 3.0.21-3.el6op
- rubygem-passenger-native openshift 1.2 3.0.21-3.el6op
- ruby193-rubygem-passenger openshift 1.2 3.0.21-3.el6op
- rubygem-passenger-native-libs openshift 1.2 3.0.21-3.el6op
red hat advisories RHSA-2013:1136
- rubygem-passenger WebYast 1.3, Studio Onsite 1.3, Lifecycle Management Server 1.3 3.0.14-0.14.1
suse advisories SUSE-SU-2016:0042-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2013-4136 updated cvss 4.6
rubygem-passenger: insecure temporary directory usage due to reuse of existing server instance directories
-
Red Hat OpenShift Enterprise Node rubygem-spruz 0.2.5-4.el6op, mod_passenger 3.0.21-3.el6op, rubygem-file-tail 1.0.5-4.el6op, rubygem-passenger 3.0.21-3.el6op, ruby193-mod_passenger 3.0.21-3.el6op, rubygem-passenger-native 3.0.21-3.el6op, +4 more Red Hat RHOSE Infrastructure 1.2 rubygem-spruz 0.2.5-4.el6op, mod_passenger 3.0.21-3.el6op, rubygem-file-tail 1.0.5-4.el6op, rubygem-passenger 3.0.21-3.el6op, ruby193-mod_passenger 3.0.21-3.el6op, rubygem-passenger-native 3.0.21-3.el6op, +4 morefixed: vendor fix RHSA-2013:1136
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.4 | AV:L/AC:M/Au:N/C:P/I:P/A:P |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | passenger | <4.0.6 |
4.0.6 |
Classification
- Weakness
-
- CWE-59 Improper Link Resolution Before File Access
References
-
github.com
/phusion/passenger/commit/5483b3292cc2af1c83033eaaadec20dba4dcfd9b
web
-
rhn.redhat.com
/errata/RHSA-2013-1136.html
vendor-advisory, web
-
github.com
/phusion/passenger/blob/release-4.0.6/NEWS
web
-
code.google.com
/p/phusion-passenger/issues/detail?id=910
web
-
openwall.com
/lists/oss-security/2013/07/16/6
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2013-4136
advisory
-
github.com
/advisories/GHSA-w6rc-q387-vpgq
advisory
-
github.com
/phusion/passenger
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/passenger/CVE-2013-4136.yml
web
Sources
- CVE List CVE-2013-4136
- GitHub Advisory GHSA-w6rc-q387-vpgq
- NVD CVE-2013-4136
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.