CVE-2012-6135:
RubyGems passenger gem allows remote attackers to delete files
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.78611%
CWE
Published
4/23/2022
Updated
7/5/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
passenger | rubygems | < 4.0.0.rc4 | 4.0.0.rc4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper validation of socket filenames reported by application processes during startup. The pre-patch version of handleSpawnResponse directly processed socket addresses from untrusted sources without:
- Checking if paths were absolute
- Verifying file ownership
- Preventing directory traversal (../ patterns)
This allowed malicious applications to report crafted socket paths that would get processed by Passenger's cleanup routines, leading to arbitrary file deletion. The commit added validateSocketAddress checks and path validation logic to fix this.