CVE-2014-9621
NoneCVSS
—
EPSS
3.0%
Published
Jan 21, 2015
CISA due date
—
Cloudanix analysis
A bug in how some programs read certain executable files lets attackers crash the software by feeding it bad data, which can interrupt image or file processing tasks.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The ELF parser in affected versions of the file utility crashes when processing a specially crafted ELF binary containing an excessively long string in a header or section field, resulting in denial of service.
Why it matters to the business
Applications relying on file-type detection for ELF binaries, including optipng in Debian and Ubuntu environments, can be forced offline, interrupting image optimization pipelines and any automated processing that depends on the vulnerable library.
How an attack unfolds
An attacker prepares a malformed ELF file embedding a long string, then causes a vulnerable optipng or dependent process to parse the file, triggering the parser flaw and crashing the application.
How to fix it
Upgrade optipng on Debian 11/12/13 to 0.7.6-1 and on Ubuntu 14.04 LTS to 0.6.4-1ubuntu0.14.04.1; rebuild any statically linked dependents and restart affected services.
How to confirm the fix worked
Confirm installed package versions match the listed fixed releases, then test parsing of both benign and known-malformed ELF samples to verify the crash no longer occurs.
Typical attack path
- Locate services or scripts that invoke optipng or libmagic on user-supplied or downloaded files
- Generate an ELF binary containing an oversized string in an ELF header field
- Deliver the crafted file to the target via upload, download, or build artifact
- Trigger parsing to induce the denial-of-service condition
How to detect it
Review application and system logs for unexpected crashes or segmentation faults during ELF file handling; correlate with file-upload or processing timestamps.
What your security team should do
- Apply the listed package upgrades across all affected Debian and Ubuntu systems without delay
- Inventory other software that links against the same ELF-parsing library and schedule updates
- Add file-upload size and type validation where ELF processing occurs
The record
The ELF parser in file 5.16 through 5.21 allows remote attackers to cause a denial of service via a long string.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | file | 0 | 1:5.21+15-1 |
| Debian:12 | file | 0 | 1:5.21+15-1 |
| Debian:13 | file | 0 | 1:5.21+15-1 |
| Mageia:4 | file | 0 | 5.16-1.10.mga4 |
| Mageia:4 | libgd | 0 | 2.1.0-3.2.mga4 |
| Mageia:4 | php | 0 | 5.5.21-1.mga4 |
| Mageia:4 | php-apc | 0 | 3.1.15-4.11.mga4 |
| SUSE:Linux Enterprise Desktop 12 SP2 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Server 12 SP2 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Server 12 SP3 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | python-magic | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | file | 0 | 5.22-10.3.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | python-magic | 0 | 5.22-10.3.1 |
| Ubuntu:14.04:LTS | file | 0 | 1:5.14-2ubuntu3.4 |
| Ubuntu:16.04:LTS | file | 0 | 1:5.22+15-2ubuntu1 |
| Ubuntu:16.04:LTS | file | 0 | 1:5.25-2ubuntu1.1 |
| Ubuntu:18.04:LTS | file | 0 | 1:5.32-2ubuntu0.1 |
Related vulnerabilities
- CVE-2015-8865 The file_check_mem function in funcs.c in file before 5.23, as used in the Fileinfo… Also affects file
- CVE-2014-9653 readelf.c in file before 5.22, as used in the Fileinfo component in PHP before 5.4.37… Also affects file
- CVE-2014-9620 The ELF parser in file 5.08 through 5.21 allows remote attackers to cause a denial of… Also affects file
- CVE-2014-8117 softmagic.c in file before 5.21 does not properly limit recursion, which allows remote… Also affects file
- CVE-2014-3710 The donote function in readelf.c in file through 5.20, as used in the Fileinfo component… Also affects file
- CVE-2014-3587 Integer overflow in the cdf_read_property_info function in cdf.c in file through 5.19, as… Also affects file
- CVE-2014-3480 The cdf_count_chain function in cdf.c in file before 5.19, as used in the Fileinfo… Also affects file
- CVE-2014-3478 Buffer overflow in the mconvert function in softmagic.c in file before 5.19, as used in… Also affects file