CVE-2017-10928
High · 8.8CVSS
8.8
EPSS
3.6%
Published
Jul 5, 2017
CISA due date
—
Cloudanix analysis
A flaw in how certain Python packages handle image files could let attackers peek at private data or cause crashes when users open specially made pictures.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read in GetNextToken allows reading beyond allocated memory when parsing crafted SVG files, potentially disclosing process memory contents or leading to further unspecified impacts.
Why it matters to the business
Organizations relying on the listed Python packages may face risks of sensitive data exposure or application instability when handling untrusted image files, increasing operational costs for incident response in widely distributed environments.
How an attack unfolds
An attacker creates a malicious SVG document that triggers mishandling in GetUserSpaceCoordinateValue, causing the buffer over-read during token processing; the file is then supplied to an application using the vulnerable library to leak memory or achieve other effects.
How to fix it
Upgrade affected packages to the fixed versions provided: python-3.11 (Chainguard) fixed in 0, python-3.11 (Wolfi) fixed in 0, and similarly for all listed python-3.11 variants and derivatives.
How to confirm the fix worked
Confirm package versions match the fixed releases, test SVG parsing with known malicious samples in isolated environments, and verify no residual vulnerable binaries remain in the runtime.
Typical attack path
- Craft a malicious SVG document designed to trigger the GetNextToken buffer over-read
- Deliver the SVG to a target application that processes it via the affected library
- Trigger parsing in GetUserSpaceCoordinateValue to induce the over-read
- Extract sensitive information from the resulting memory disclosure or leverage for further impact
How to detect it
Review application logs for unusual SVG processing errors or memory-related crashes around image handling routines; search for unexpected memory patterns in crash dumps or process traces from affected services.
What your security team should do
- Immediately audit and upgrade all listed Python packages to the specified fixed versions
- Implement input validation and sandboxing for any SVG or image processing workflows
- Monitor for new disclosures related to ImageMagick dependencies in Python ecosystems
The record
In ImageMagick 7.0.6-0, a heap-based buffer over-read in the GetNextToken function in token.c allows remote attackers to obtain sensitive information from process memory or possibly have unspecified other impact via a crafted SVG document that is mishandled in the GetUserSpaceCoordinateValue function in coders/svg.c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | imagemagick | 0 | 8:6.9.7.4+dfsg-12 |
| Debian:12 | imagemagick | 0 | 8:6.9.7.4+dfsg-12 |
| Debian:13 | imagemagick | 0 | 8:6.9.7.4+dfsg-12 |
| Debian:7 | imagemagick | 0 | 8:6.7.7.10-5+deb7u16 |
| Debian:8 | imagemagick | 0 | 8:6.8.9.9-5+deb8u10 |
| Debian:9 | imagemagick | 0 | 8:6.9.7.4+dfsg-11+deb9u1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.54.5 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.65.1 |
| SUSE:Linux Enterprise Server 11 SP4 | ImageMagick | 0 | 6.4.3.6-78.45.1 |
| SUSE:Linux Enterprise Server 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.54.5 |
| SUSE:Linux Enterprise Server 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.65.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | ImageMagick | 0 | 6.4.3.6-78.45.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.54.5 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.65.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | ImageMagick | 0 | 6.4.3.6-78.45.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.54.5 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.65.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.54.5 |
| SUSE:Linux Enterprise Workstation Extension 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.65.1 |
| Ubuntu:14.04:LTS | imagemagick | 0 | 8:6.7.7.10-6ubuntu3.8 |
| Ubuntu:16.04:LTS | imagemagick | 0 | 8:6.8.9.9-7ubuntu5.8 |
Related vulnerabilities
- CVE-2014-2030 Stack-based buffer overflow in the WritePSDImage function in coders/psd.c in ImageMagick… Also affects imagemagick
- CVE-2017-15277 ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the… Also affects imagemagick
- CVE-2017-14528 The TIFFSetProfiles function in coders/tiff.c in ImageMagick 7.0.6 has incorrect… Also affects imagemagick
- CVE-2017-13144 In ImageMagick before 6.9.7-10, there is a crash (rather than a "width or height exceeds… Also affects imagemagick
- CVE-2014-8354 The HorizontalFilter function in resize.c in ImageMagick before 6.8.9-9 allows remote… Also affects imagemagick
- CVE-2017-7606 coders/rle.c in ImageMagick 7.0.5-4 has an "outside the range of representable values of… Also affects imagemagick
- CVE-2017-6498 An issue was discovered in ImageMagick 6.9.7. Also affects imagemagick
- CVE-2016-10062 The ReadGROUP4Image function in coders/tiff.c in ImageMagick does not check the return… Also affects imagemagick