{"schemaVersion":3,"id":"CVE-2013-4136","aliases":["MGASA-2013-0253","UBUNTU-CVE-2013-4136","DEBIAN-CVE-2013-4136","GHSA-w6rc-q387-vpgq"],"status":"published","duplicateOf":null,"title":null,"description":"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/.","dates":{"published":"2013-09-30T19:00:00.000Z","modified":"2024-09-17T03:38:39.532Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.4,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.4,"severity":"medium","vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00326,"percentile":0.24254,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.003000000000000008,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00329},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00326,"percentile":0.24254}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00329,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00326,"percentile":0.24254}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"debian","product":"passenger","name":"passenger","label":"passenger","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/passenger","purlType":"deb","versions":[{"text":"< 3.0.13debian-1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.13debian-1.2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby-passenger","name":"ruby-passenger","label":"ruby-passenger","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby-passenger","purlType":"deb","versions":[{"text":"< 4.0.37-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.37-2","eol":null,"hubHref":null},{"vendor":"RubyGems","product":"passenger","name":"passenger","label":"passenger","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/passenger","purlType":"gem","versions":[{"text":"< 4.0.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.6","eol":null,"hubHref":null},{"vendor":"mageia","product":"rubygem-passenger","name":"rubygem-passenger","label":"rubygem-passenger","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/rubygem-passenger","purlType":"rpm","versions":[{"text":"< 3.0.21-2.2.mga3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.21-2.2.mga3","eol":null,"hubHref":null},{"vendor":"phusion","product":"passenger","name":"passenger","label":"passenger","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 4.0.5","noFixRecorded":false,"fixedIn":null},{"text":"4.0.1","noFixRecorded":false,"fixedIn":null},{"text":"4.0.2","noFixRecorded":false,"fixedIn":null},{"text":"4.0.3","noFixRecorded":false,"fixedIn":null},{"text":"4.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.0.5 | 4.0.1 | 4.0.2 | 4.0.3 | 4.0.4","eol":null,"hubHref":"/vendor/phusion/passenger"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/phusion/passenger/blob/release-4.0.6/NEWS","label":"github.com/phusion/passenger/blob/release-4.0.6/NEWS","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://code.google.com/p/phusion-passenger/issues/detail?id=910","label":"code.google.com/p/phusion-passenger/issues/detail?id=910","hostname":"code.google.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/phusion/passenger/commit/5483b3292cc2af1c83033eaaadec20dba4dcfd9b","label":"github.com/phusion/passenger/commit/5483b3292cc2af1c83033eaaadec20dba4dcfd9b","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-1136.html","label":"rhn.redhat.com/errata/RHSA-2013-1136.html","hostname":"rhn.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"http://www.openwall.com/lists/oss-security/2013/07/16/6","label":"www.openwall.com/lists/oss-security/2013/07/16/6","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"https://advisories.mageia.org/MGASA-2013-0253.html","label":"advisories.mageia.org/MGASA-2013-0253.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2013-July/112716.html","label":"lists.fedoraproject.org/pipermail/package-announce/2013-July/112716.html","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=10890","label":"bugs.mageia.org/show_bug.cgi?id=10890","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2013-4136","label":"ubuntu.com/security/CVE-2013-4136","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"http://openwall.com/lists/oss-security/2013/07/15/2","label":"openwall.com/lists/oss-security/2013/07/15/2","hostname":"openwall.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2013-4136","label":"www.cve.org/CVERecord?id=CVE-2013-4136","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2013-4136","label":"security-tracker.debian.org/tracker/CVE-2013-4136","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-4136","label":"nvd.nist.gov/vuln/detail/CVE-2013-4136","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-w6rc-q387-vpgq","label":"github.com/advisories/GHSA-w6rc-q387-vpgq","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/phusion/passenger","label":"github.com/phusion/passenger","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/passenger/CVE-2013-4136.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/passenger/CVE-2013-4136.yml","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["RHSA-2013:1136","SUSE-SU-2016:0042-1"],"duplicates":[],"related":["SUSE-SU-2016:0042-1"]},"timeline":[{"kind":"published","date":"2013-09-30T19:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T03:38:39.532Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:38:53.382Z","stale":false,"partial":false}}