Quantum Secular Labs / Blog / Advisories
CVE-2018-17141: Hylafax: Remote code execution
CVE-2018-17141 is rated critical with a CVSS v3.0 base score of 9.8 and affects Hylafax, along with 1 other product in NVD’s configuration data. Per its scoring, it can be exploited over the network, without authentication, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available.
Vulnerability description
HylaFAX 6.0.6 and HylaFAX+ 5.6.0 allow remote attackers to execute arbitrary code via a dial-in session that provides a FAX page with the JPEG bit enabled, which is mishandled in FaxModem::writeECMData() in the faxd/CopyQuality.c++ file.
Severity breakdown
CVSS v3.0 9.8: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
- Attack complexity: Low. No special conditions; the attack can be repeated reliably.
- Privileges required: None. No account or prior access is needed.
- User interaction: None. No action from any user is needed.
- Scope: Unchanged. Impact stays within the vulnerable component.
- Confidentiality impact: High. Total loss of confidentiality; sensitive data can be fully disclosed.
- Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
- Availability impact: High. Total loss of availability; the component can be shut down.
Underlying weakness
CWE-787: Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.
CWE-824: Access of Uninitialized Pointer
The product accesses or uses a pointer that has not been initialized.
Affected products
- Hylafax: 6.0.6
- Hylafax+: 5.6.0
- Debian Linux: 8.0; 9.0
References
- http://www.openwall.com/lists/oss-security/2018/09/20/1
- https://lists.debian.org/debian-lts-announce/2018/09/msg00026.html
- https://seclists.org/bugtraq/2018/Sep/49
- https://www.debian.org/security/2018/dsa-4298
- https://www.x41-dsec.de/lab/advisories/x41-2018-008-hylafax/
- http://git.hylafax.org/HylaFAX?a=commit%3Bh=c6cac8d8cd0dbe313689ba77023e12bc5b3027be