Cloudanix VulnDB

CVE-2017-5208

High · 8.8

CVSS

8.8

EPSS

3.6%

Published

Aug 22, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Craft executable binary with malicious size or offset fields
  2. Deliver file via email attachment, web download, or shared storage
  3. Victim runs wrestool against the file
  4. Integer overflow triggers memory corruption
  5. 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