Cloudanix VulnDB

CVE-2017-7606

Medium · 6.5

CVSS

6.5

EPSS

2.2%

Published

Apr 9, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in how certain software handles specially made image files can make programs crash when they try to open them.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Application
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Crafted image input triggers undefined behavior via an out-of-range unsigned char value in image decoding routines, resulting in application crash or potential memory corruption.

Why it matters to the business

Service disruption from crashes when processing untrusted images; low but non-zero exploitation likelihood on affected systems requires upgrade to avoid operational downtime.

How an attack unfolds

An attacker crafts a malicious image file and delivers it to a target application using the vulnerable image processing code; when the image is decoded, the undefined behavior is triggered leading to denial of service or further impact.

How to fix it

Upgrade libgit2-1.5 and libgit2-dev-1.5 packages to version 1.7.2-r0 or later; rebuild and redeploy dependent applications after update.

How to confirm the fix worked

Verify package versions report 1.7.2-r0 or newer; test image processing with known-bad samples to confirm absence of crash; monitor for updated dependency trees in builds.

Typical attack path

  1. Identify target application accepting image uploads or processing external images
  2. Generate specially crafted image exploiting the unsigned char range issue
  3. Deliver image via network, file share, or application input
  4. Trigger decoding path to induce crash or undefined behavior

How to detect it

Review application logs for sudden crashes during image decoding; inspect process core dumps or stack traces referencing rle.c or image coders; correlate with inbound image file uploads around crash timestamps.

What your security team should do

  • Immediately schedule upgrade of libgit2 packages to 1.7.2-r0 across all environments
  • Prioritize scanning CI/CD pipelines and container images for the vulnerable versions
  • Add image-processing fuzzing to regression test suites post-upgrade

The record

coders/rle.c in ImageMagick 7.0.5-4 has an "outside the range of representable values of type unsigned char" undefined behavior issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 imagemagick 0 8:6.9.7.4+dfsg-4
Debian:12 imagemagick 0 8:6.9.7.4+dfsg-4
Debian:13 imagemagick 0 8:6.9.7.4+dfsg-4
Debian:7 imagemagick 0 8:6.7.7.10-5+deb7u13
Debian:8 imagemagick 0 8:6.8.9.9-5+deb8u9
Mageia:6 converseen 0 0.9.6.2-1.3.mga6
Mageia:6 cuneiform-linux 0 1.1.0-9.2.mga6
Mageia:6 dvdauthor 0 0.7.2-2.2.mga6
Mageia:6 emacs 0 24.5-8.3.mga6
Mageia:6 imagemagick 0 6.9.9.41-1.mga6
Mageia:6 inkscape 0 0.92.1-2.2.mga6
Mageia:6 k3d 0 0.8.0.5-5.2.mga6
Mageia:6 kxstitch 0 2.0.0-2.2.mga6
Mageia:6 libopenshot 0 0.1.8-1.2.mga6
Mageia:6 ocaml-glmlite 0 0.03.51-17.2.mga6
Mageia:6 perl-Image-SubImageFind 0 0.30.0-6.2.mga6
Mageia:6 pfstools 0 2.0.6-3.2.mga6
Mageia:6 php-imagick 0 3.4.1-6.2.mga6
Mageia:6 php-magickwand 0 1.0.9.2-10.2.mga6
Mageia:6 psiconv 0 0.9.8-26.2.mga6
Mageia:6 pythonmagick 0 0.9.12-7.2.mga6
Mageia:6 ruby-rmagick 0 2.15.4-12.2.mga6
Mageia:6 synfig 0 1.2.1-2.2.mga6
Mageia:6 vdr-plugin-skinelchi 0 0.2.8-8.2.mga6
Mageia:6 vdr-plugin-skinenigmang 0 0.1.2-10.2.mga6
SUSE:Linux Enterprise Desktop 12 SP2 ImageMagick 0 6.8.8.1-70.1
SUSE:Linux Enterprise Server 11 SP4 ImageMagick 0 6.4.3.6-7.77.1
SUSE:Linux Enterprise Server 12 SP2 ImageMagick 0 6.8.8.1-70.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 ImageMagick 0 6.8.8.1-70.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 ImageMagick 0 6.4.3.6-7.77.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 ImageMagick 0 6.8.8.1-70.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 GraphicsMagick 0 1.2.5-4.77.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 ImageMagick 0 6.4.3.6-7.77.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 ImageMagick 0 6.8.8.1-70.1
SUSE:Linux Enterprise Workstation Extension 12 SP2 ImageMagick 0 6.8.8.1-70.1
SUSE:Studio Onsite 1.3 GraphicsMagick 0 1.2.5-4.77.1
Ubuntu:14.04:LTS imagemagick 0 8:6.7.7.10-6ubuntu3.7
Ubuntu:16.04:LTS imagemagick 0 8:6.8.9.9-7ubuntu5.7

Related vulnerabilities