CVE-2012-4522

The rb_get_path_check function in file.c in Ruby 1.9.3 before patchlevel 286 and Ruby 2.0.0 before r37163 allows context-dependent attackers to create files in unexpected locations or with unexpected names via a NUL byte in a file path.

Published: 2012-11-24 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2012-4522 is rated Moderate Risk (50/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 2.20%). Core evidence: EPSS rose +1.98% over the last day, indicating growing attacker interest. Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2012-4522

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.22% 2.20% +1.98%
2 2026-06-04 0.27% 0.22% -0.05%
3 2026-06-02 0.27%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2012-4522

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:N/I:P/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:N)
No confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:N)
No availability impact.
10.0 2.9 [email protected]

Weakness enumeration for CVE-2012-4522

OS Trackers for CVE-2012-4522

vendor priority summary link
redhat medium https://access.redhat.com/security/cve/CVE-2012-4522
ubuntu medium CVE-2012-4522 medium priority: Ubuntu including 3 source packages (ruby1.8, ruby1.9, ruby1.9.1), 21 status rows across 7 suites (hardy, lucid, natty, oneiric, precise, quantal, upstream): not-affected 9, DNE 5, released 4, ignored 2, needs-triage 1. https://ubuntu.com/security/CVE-2012-4522

Affected software / configurations for CVE-2012-4522

Vendor Product Version Raw CPE
ruby-lang ruby 1.9.3 cpe:2.3:a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:*
ruby-lang ruby 2.0.0 cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:*

References for CVE-2012-4522

cvelogic Threat Intelligence