RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any file on the filesystem.
https://www.exploit-db.com/exploits/42611/
https://www.debian.org/security/2017/dsa-3966
https://usn.ubuntu.com/3685-1/
https://usn.ubuntu.com/3553-1/
https://security.gentoo.org/glsa/201710-01
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
https://hackerone.com/reports/243156
https://github.com/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2
https://access.redhat.com/errata/RHSA-2018:0585
https://access.redhat.com/errata/RHSA-2018:0583
https://access.redhat.com/errata/RHSA-2018:0378
https://access.redhat.com/errata/RHSA-2017:3485
http://www.securitytracker.com/id/1039249