Cloudanix VulnDB

CVE-2014-9653

None

CVSS

—

EPSS

4.6%

Published

Mar 30, 2015

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A problem in tools that identify file types could let attackers crash programs or cause other issues by providing certain specially made files.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw in readelf.c allows pread calls to return only partial data from ELF files without proper handling, resulting in access to uninitialized memory.

Why it matters to the business

Systems relying on file type identification or PHP fileinfo processing of untrusted files face risks of crashes or unpredictable behavior, potentially disrupting services that analyze uploaded or downloaded content.

How an attack unfolds

An attacker supplies a specially crafted ELF file that triggers incomplete pread operations during parsing, leading to memory access violations that may cause denial of service or other side effects.

How to fix it

Upgrade the file utility to version 5.22 or later and PHP to 5.4.37, 5.5.21, or 5.6.5 or later depending on the branch in use; apply vendor patches for affected Linux distributions.

How to confirm the fix worked

Verify installed versions of the file utility and PHP exceed the affected ranges, then test processing of standard ELF files to confirm absence of memory access errors.

Typical attack path

  1. Craft an ELF file designed to cause partial pread reads
  2. Deliver the file to a target system via upload, download, or attachment
  3. Trigger processing through file command, PHP fileinfo, or dependent applications
  4. Induce uninitialized memory access resulting in crash or undefined behavior

How to detect it

Monitor application and system logs for crashes or segmentation faults in file or PHP processes during ELF file handling; review error logs for memory access warnings around file parsing.

What your security team should do

  • Prioritize patching file and PHP installations on internet-facing systems
  • Restrict processing of untrusted ELF files where possible
  • Review and update any custom file analysis workflows

The record

readelf.c in file before 5.22, as used in the Fileinfo component in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5, does not consider that pread calls sometimes read only a subset of the available data, which allows remote attackers to cause a denial of service (uninitialized memory access) or possibly have unspecified other impact via a crafted ELF file.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 file 0 1:5.22+15-1
Debian:12 file 0 1:5.22+15-1
Debian:13 file 0 1:5.22+15-1
Debian:6.0 file 0 5.04-5+squeeze10
Debian:7 file 0 5.11-2+deb7u8
Red Hat:enterprise_linux:6::client file 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::client file-debuginfo 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::client file-devel 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::client file-libs 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::client file-static 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::client python-magic 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::computenode file 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::computenode file-debuginfo 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::computenode file-devel 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::computenode file-libs 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::computenode file-static 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::computenode python-magic 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::server file 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::server file-debuginfo 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::server file-devel 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::server file-libs 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::server file-static 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::server python-magic 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::workstation file 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::workstation file-debuginfo 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::workstation file-devel 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::workstation file-libs 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::workstation file-static 0 0:5.04-30.el6
Red Hat:enterprise_linux:6::workstation python-magic 0 0:5.04-30.el6
Red Hat:enterprise_linux:7::client file 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::client file-debuginfo 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::client file-devel 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::client file-libs 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::client file-static 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::client python-magic 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::computenode file 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::computenode file-debuginfo 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::computenode file-devel 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::computenode file-libs 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::computenode file-static 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::computenode python-magic 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::server file 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::server file-debuginfo 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::server file-devel 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::server file-libs 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::server file-static 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::server python-magic 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::workstation file 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::workstation file-debuginfo 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::workstation file-devel 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::workstation file-libs 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::workstation file-static 0 0:5.11-31.el7
Red Hat:enterprise_linux:7::workstation python-magic 0 0:5.11-31.el7
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.25-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