CVE Number – CVE-2019-8320
A vulnerability in RubyGems could allow an unauthenticated, remote attacker to modify file locations on a targeted system. The vulnerability is due to the improper handling of symlinks by the affected software. An attacker could exploit this vulnerability by submitting a malicious gem to the targeted system. A successful exploit could allow the attacker to use directory traversal techniques to delete arbitrary file locations on the targeted system.Proof-of-concept (PoC) code that demonstrates an exploit of this vulnerability is publicly available. RubyGems confirmed the vulnerability and released software updates.
- To exploit this vulnerability, the attacker must send a gem that submits malicious input to the targeted system, making exploitation more difficult in environments that restrict network access from untrusted sources.
- Administrators are advised to apply the appropriate updates.Administrators are advised to allow only trusted users to have network access.Administrators are advised to run both firewall and antivirus applications to minimize the potential of inbound and outbound threats.Administrators may consider using IP-based access control lists (ACLs) to allow only trusted systems to access the affected systems.Administrators can help protect affected systems from external attacks by using a solid firewall strategy.Administrators are advised to monitor affected systems.
- RubyGems has released a security advisory at the following link: CVE-2019-8320: Delete directory using symlink when decompressing tar
- RubyGems has released software updates at the following link: RubyGems Releases
Duncan is a technology professional with over 20 years experience of working in various IT roles. He has a interest in cyber security, and has a wide range of other skills in radio, electronics and telecommunications.