Cloudanix VulnDB

CVE-2014-9621

None

CVSS

—

EPSS

3.0%

Published

Jan 21, 2015

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Locate services or scripts that invoke optipng or libmagic on user-supplied or downloaded files
  2. Generate an ELF binary containing an oversized string in an ELF header field
  3. Deliver the crafted file to the target via upload, download, or build artifact
  4. 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