open-uri-cached Gem for Ruby Unsafe Temporary File Creation Enables Code Execution
High severity
GitHub Reviewed
Published
May 13, 2022
to the GitHub Advisory Database
•
Updated Jul 3, 2023
Description
Published by the National Vulnerability Database
Aug 18, 2017
Published to the GitHub Advisory Database
May 13, 2022
Reviewed
Jun 9, 2023
Last updated
Jul 3, 2023
The open-uri-cached rubygem allows local users to execute arbitrary Ruby code by creating a directory under /tmp containing "openuri-" followed by a crafted UID, and putting Ruby code in said directory once a metafile is created.
References