CVE-2012-4522
UnknownEPSS 2.20%
Last modified
CVE-2012-4522 is a vulnerability of currently unknown severity. 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.. EPSS estimates a 2.20% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ruby-Lang | Ruby | 1.9.3 |
| Ruby-Lang | Ruby | 2.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is 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.
How severe is CVE-2012-4522?
Severity scoring for CVE-2012-4522 is pending analysis. The EPSS model estimates a 2.20% probability of exploitation in the next 30 days.
How do I fix CVE-2012-4522?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2012
- CVE-2012-4516librdmacm 1.0.16, when ibacm.port is not specified, connects…
- CVE-2012-4517ibacm before 1.0.6 does not properly manage reference counts…
- CVE-2012-4518ibacm 1.0.7 creates files with world-writable permissions, w…
- CVE-2012-4519Zenphoto before 1.4.3.4 admin-news-articles.php date paramet…6.1
- CVE-2012-4520The django.http.HttpRequest.get_host function in Django 1.3.…
- CVE-2012-4521Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2012-4523radsecproxy before 1.6.1 does not properly verify certificat…
- CVE-2012-4524xlockmore before 5.43 'dclock' security bypass vulnerability7.5
- CVE-2012-4525piwigo has XSS in password.php6.1
- CVE-2012-4526piwigo has XSS in password.php (incomplete fix for CVE-2012-…6.1
- CVE-2012-4527Stack-based buffer overflow in mcrypt 2.6.8 and earlier allo…
- CVE-2012-4528The mod_security2 module before 2.7.0 for the Apache HTTP Se…
Are you affected by CVE-2012-4522?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
