CVE-2017-5208
High · 8.8CVSS
8.8
EPSS
3.6%
Published
Aug 22, 2017
CISA due date
—
Cloudanix analysis
A bug in a common Linux tool that extracts icons from programs could let attackers crash the tool or take over the computer when it opens a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in wrestool causes memory corruption when parsing crafted executables, enabling denial of service via application crash or potential arbitrary code execution.
Why it matters to the business
Processing untrusted executables on affected Linux systems can lead to application crashes disrupting workflows or full system compromise allowing unauthorized access and data theft; the vulnerability has been public for years with stable but non-zero exploitation probability.
How an attack unfolds
An attacker creates a specially crafted executable containing values that trigger an integer overflow in wrestool's parsing logic; the file is delivered to a victim who invokes wrestool, resulting in memory corruption that may be leveraged for code execution or a crash.
How to fix it
Upgrade icoutils to version 0.31.1 or newer on all affected systems; replace or remove the wrestool binary if patching is not feasible.
How to confirm the fix worked
Verify installed icoutils package version is 0.31.1 or later; attempt to process known test files that previously triggered the overflow to confirm absence of crash or corruption.
Typical attack path
- Craft executable binary with malicious size or offset fields
- Deliver file via email attachment, web download, or shared storage
- Victim runs wrestool against the file
- Integer overflow triggers memory corruption
- Attacker achieves denial of service or executes arbitrary code
How to detect it
Monitor system and application logs for wrestool segmentation faults or abnormal memory allocation failures when processing executable files; review file access logs for unusual executables opened by the tool.
What your security team should do
- Immediately inventory and update icoutils across all Linux distributions to 0.31.1+
- Block or sandbox untrusted executable files from being processed by wrestool
- Add package version checks to vulnerability scanning and patch management workflows
The record
Integer overflow in the wrestool program in icoutils before 0.31.1 allows remote attackers to cause a denial of service (memory corruption) via a crafted executable, which triggers a denial of service (application crash) or the possibility of execution of arbitrary code.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | icoutils | 0 | 0.31.0-4 |
| Debian:12 | icoutils | 0 | 0.31.0-4 |
| Debian:13 | icoutils | 0 | 0.31.0-4 |
| Debian:7 | icoutils | 0 | 0.29.1-5deb7u1 |
| Debian:8 | icoutils | 0 | 0.31.0-2+deb8u1 |
| Mageia:5 | icoutils | 0 | 0.31.1-1.mga5 |
| Red Hat:enterprise_linux:7::client | icoutils | 0 | 0:0.31.3-1.el7_3 |
| Red Hat:enterprise_linux:7::client | icoutils-debuginfo | 0 | 0:0.31.3-1.el7_3 |
| Red Hat:enterprise_linux:7::computenode | icoutils | 0 | 0:0.31.3-1.el7_3 |
| Red Hat:enterprise_linux:7::computenode | icoutils-debuginfo | 0 | 0:0.31.3-1.el7_3 |
| Red Hat:enterprise_linux:7::server | icoutils | 0 | 0:0.31.3-1.el7_3 |
| Red Hat:enterprise_linux:7::server | icoutils-debuginfo | 0 | 0:0.31.3-1.el7_3 |
| Red Hat:enterprise_linux:7::workstation | icoutils | 0 | 0:0.31.3-1.el7_3 |
| Red Hat:enterprise_linux:7::workstation | icoutils-debuginfo | 0 | 0:0.31.3-1.el7_3 |
| Ubuntu:14.04:LTS | icoutils | 0 | 0.31.0-2+deb8u2build0.14.04.1 |
| Ubuntu:16.04:LTS | icoutils | 0 | 0.31.0-3ubuntu0.1 |
| openSUSE:Tumbleweed | icoutils | 0 | 0.32.3-1.7 |
Related vulnerabilities
- CVE-2026-110264 An issue has been discovered in GitLab CE/EE affecting all versions from 7.0 before… CWE-190
- CVE-2026-53615 util-linux is a random collection of Linux utilities. CWE-190
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-106571 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-75820 GNU Aspell contains an integer truncation vulnerability in the WritableDict::add()… CWE-190
- CVE-2026-102621 A vulnerability was identified in Freedesktop Poppler up to 26.08.0. CWE-190
- CVE-2026-102620 A vulnerability was determined in Freedesktop Poppler 26.06.0/26.07.0/26.08.0. CWE-190
- CVE-2026-102633 libexpat versions 2.7.2 through 2.8.5 contain an integer overflow vulnerability in… CWE-190