REDHAT-BUG-892806: Low severity Ruby ruby_parser vulnerability
Michael Scherer discovered that the rubyparser ruby gem did not create temporary files in a safe manner. In /usr/share/gems/gems/rubyparser-2.0.4/lib/gauntletrubyparser.rb's diffpp function it creates files as /tmp/a.[pid] and /tmp/b.[pid] which can be predicted and used for either a denial of service (file cannot be overwritten), or to change the contents of a files that are writable.
The initial report is in bug #892221.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-892806?
The severity of REDHAT-BUG-892806 can lead to potential denial of service due to predictable temporary file creation.
How do I fix REDHAT-BUG-892806?
To fix REDHAT-BUG-892806, update the ruby_parser gem to a patched version that implements secure temporary file creation.
What is the impact of REDHAT-BUG-892806?
The impact of REDHAT-BUG-892806 includes potential unauthorized access and denial of service from the misuse of predictable temporary files.
Who discovered REDHAT-BUG-892806?
REDHAT-BUG-892806 was discovered by Michael Scherer.
Which software is affected by REDHAT-BUG-892806?
The software affected by REDHAT-BUG-892806 is the ruby_parser gem version 2.0.4.