FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

CVE-2012-4522

This CVE name corresponds to:

Entered Topic
2012-11-01 ruby -- Unintentional file creation caused by inserting an illegal NUL character

The following information is adapted from the Common Vulnerabilities and Exposures (CVE) project. CVE and the CVE logo are trademarks of The MITRE Corporation. CVE content is Copyright 2005, The MITRE Corporation.

Details

Type Candidate
Name CVE-2012-4522
Phase Assigned(20120821)

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.

References

Source Reference
MLIST [oss-security] 20121012 CVE request: ruby file creation due in insertion of illegal NUL character
MLIST [oss-security] 20121013 Re: CVE request: ruby file creation due in insertion of illegal NUL character
MLIST [oss-security] 20121016 Re: CVE request: ruby file creation due in insertion of illegal NUL character
MISC http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=37163
CONFIRM http://www.ruby-lang.org/en/news/2012/10/12/poisoned-NUL-byte-vulnerability/
FEDORA FEDORA-2012-16071
FEDORA FEDORA-2012-16086
REDHAT RHSA-2013:0129