Skip to content

GHSA-7cv3-gvmc-8mq5 CVE-2018-12026

Phusion Passenger SpawningKit Contains Arbitrary Read/Write Vulnerability

Critical RubyGems
Severity
9.8 / 10
Critical · CVSS 3.0
Exploit chance (EPSS)
1.92%
Chance of exploitation in the next 30 days. Higher than 79.88% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-59 Improper Link Resolution Before File Access ('Link Following')
Fix
5.3.2
Upgrade passenger to this version or later

Description

During the spawning of a malicious Passenger-managed application, SpawningKit in Phusion Passenger 5.3.x before 5.3.2 allows such applications to replace key files or directories in the spawning communication directory with symlinks. This then could result in arbitrary reads and writes, which in turn can result in information disclosure and privilege escalation.

Affected versions

RubyGems

PackageVulnerableFixed in
passenger
>= 5.3.0, < 5.3.2
5.3.2

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

passenger RubyGems → 5.3.2

bundler
bundle update passenger # Gemfile: gem "passenger", ">= 5.3.2"

Severity breakdown

CVSS 3.0 9.8

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Weakness

CWE-59: Improper Link Resolution Before File Access ('Link Following')

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.

How to prevent it
  • Architecture and Design: Follow the principle of least privilege when assigning access rights to entities in a software system. Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-2cj2-qqxj-5m3r
Phusion Passenger denial of service
High Also affects passenger
GHSA-jjcj-fgfm-9g9r
Phusion Passenger Race Condition Allows Privilege Escalation
High Also affects passenger
GHSA-4284-jfhc-f854
Phusion Passenger incorrect permission assignment
Medium Also affects passenger
GHSA-whfx-877c-5p28
Insecure Permissions in Phusion Passenger
High Also affects passenger
GHSA-jjhj-8gx7-x836
Incorrect Access Control in Phusion Passenger
High Also affects passenger
GHSA-cv3f-px9r-54hm
Phusion Passenger information disclosure
Medium Also affects passenger
GHSA-8mw8-j583-vqfg
RubyGems passenger gem allows remote attackers to delete files
High Also affects passenger
GHSA-qw8w-2xcp-xg59
Insecure use of temporary files in Phusion passenger
Low Also affects passenger
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor