CVE-2017-5946: USN-9364-1: rubyzip vulnerabilities
Vulnerability · Reported by Ubuntu Security Notices · · CWE-22
- Severity
- Critical Risk score 98/100
- CVSS
- 9.8 v3.1 · from NVD
- Exploit chance (EPSS)
- 3.44% Higher than 89% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
It was discovered that rubyzip did not properly validate file paths in ZIP archives. If a user or automated system were tricked into extracting a specially crafted ZIP archive, an attacker could possibly use this issue to write arbitrary files outside the destination directory. (CVE-2017-5946) It was discovered that rubyzip did not properly handle symbolic links and absolute paths in ZIP archives. If a user or automated system were tricked into extracting a specially crafted ZIP archive, an attacker could possibly use this issue to write arbitrary files outside the destination directory. (CVE-2018-1000544)
How this vulnerability can be exploited
This is a path traversal flaw (CWE-22). An attacker can exploit this vulnerability remotely over the network, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed. If successful, the attacker could read sensitive data, modify data or code and crash or disrupt the service.
Is it being exploited?
The EPSS model estimates a 3.44% chance this CVE will be exploited in the next 30 days, which is elevated and higher than 89% of all published CVEs.
Patch priority and what to do
Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Tags
CVE-2017-5946
Sources & references
- Original article / advisory (Ubuntu Security Notices) ↗
- NIST NVD: CVE-2017-5946 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.