The Rubygems vulnerability was the ability to run any code you want. What you describe is remote file browsing/access.
The Rubygems vulnerability was the ability to run any code you want. What you describe is remote file browsing/access.