CVE-2012-4522

ruby: unintentional file creation caused by inserting an illegal NUL character

Published Nov 24, 2012 CVSS 2.0 · 5.0 Medium EPSS 2.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-235-1 ruby1.9.1 security update
EUVD EUVD EUVD-2012-4450 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.
Ubuntu USN Ubuntu USN USN-1614-1 Ruby vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 6, 2024, 8:42 PM
Reserved
Aug 21, 2012, 12:00 AM
Status
Modified
Published
Nov 24, 2012, 8:55 PM
Modified
Jun 16, 2026, 11:45 PM
Severity
Moderate
Public date
Oct 12, 2012, 12:00 AM