kbrain

CVE-2012-4522

MEDIUM · CVSS 5.0EPSS 2.2%EU EUVD

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.

Key facts

CVSS score
5.0 (v2.0)
Severity
MEDIUM
CVSS vector
AV:N/AC:L/Au:N/C:N/I:P/A:N
Weakness (CWE)
CWE-264
EPSS score
2.2% (83th percentile)
In CISA KEV
No
In EU EUVD
Yes (EUVD-2012-4450)
Published
November 24, 2012
NVD last modified
June 16, 2026
Status
Modified

EU Vulnerability Database (EUVD)

This vulnerability is also tracked by ENISA as EUVD-2012-4450 in the EU Vulnerability Database. Last updated in EUVD on August 6, 2024.

View on the EU Vulnerability Database

Affected products

  • ruby-lang / ruby
  • ruby-lang / ruby

References

Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS

Query CVEs from your AI assistant

The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.

Add the CVE brain