PT-2013-2141 · Ruby · Ruby Parser

Michael Scherer

·

Published

2013-03-01

·

Updated

2023-02-13

·

CVE-2013-0162

CVSS v2.0

2.1

Low

VectorAV:L/AC:L/Au:N/C:N/I:P/A:N
Name of the Vulnerable Software and Affected Versions ruby parser gem versions 3.1.1 and earlier
Description The issue allows local users to overwrite arbitrary files via a symlink attack on a temporary file with a predictable name in /tmp. This is due to the diff pp function in lib/gauntlet rubyparser.rb.
Recommendations For ruby parser gem versions 3.1.1 and earlier, consider restricting access to the diff pp function in lib/gauntlet rubyparser.rb until a patch is available. As a temporary workaround, avoid using the diff pp function to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Weakness Enumeration

Related Identifiers

CVE-2013-0162
GHSA-8MVW-22R7-W6FQ
RHSA-2013:0582

Affected Products

Ruby Parser