Cloudanix VulnDB

CVE-2017-7607

Medium · 5.5

CVSS

5.5

EPSS

1.7%

Published

Apr 9, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A program that reads certain types of executable files can be made to crash when given a specially prepared file.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The handle_gnu_hash function in elfutils 0.168 performs a heap-based buffer over-read when parsing a crafted ELF file, resulting in an application crash.

Why it matters to the business

Successful exploitation leads to denial-of-service crashes in affected applications such as those bundled in postgresql (Bitnami), potentially disrupting dependent services with minimal attacker effort; the issue affects a narrow set of legacy deployments given the 2017 disclosure and low ecosystem prevalence.

How an attack unfolds

An attacker crafts a malicious ELF binary that triggers the vulnerable gnu_hash handling code path and supplies the file to any process using the affected elfutils library (for example via readelf or an application that invokes it), causing an immediate crash without requiring authentication or elevated privileges.

How to fix it

Upgrade postgresql (Bitnami) to version 11.12.0 or later, which incorporates the corrected elfutils library; rebuild or redeploy any containers or packages that statically link the vulnerable version.

How to confirm the fix worked

Verify the installed postgresql (Bitnami) version is 11.12.0 or newer; confirm absence of the vulnerable handle_gnu_hash logic by inspecting linked elfutils libraries or running readelf against known-good versus crafted test files.

Typical attack path

  1. Craft a malicious ELF file that triggers the buffer over-read in handle_gnu_hash
  2. Deliver the file to a vulnerable process or utility that parses ELF objects
  3. Trigger parsing to induce heap over-read and application termination

How to detect it

Review application and system logs for sudden crashes or segmentation faults occurring during ELF file processing; correlate with use of readelf or elfutils-linked binaries on systems running older postgresql (Bitnami) packages.

What your security team should do

  • Apply the 11.12.0 upgrade to all postgresql (Bitnami) instances as soon as possible
  • Scan build pipelines and container images for any remaining references to elfutils versions prior to the fix
  • Add automated checks that reject untrusted ELF inputs in security-sensitive tooling

The record

The handle_gnu_hash function in readelf.c in elfutils 0.168 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 elfutils 0 0.168-r1
Alpine:v3.11 elfutils 0 0.168-r1
Alpine:v3.12 elfutils 0 0.168-r1
Alpine:v3.13 elfutils 0 0.168-r1
Alpine:v3.14 elfutils 0 0.168-r1
Alpine:v3.15 elfutils 0 0.168-r1
Alpine:v3.16 elfutils 0 0.168-r1
Alpine:v3.17 elfutils 0 0.168-r1
Alpine:v3.18 elfutils 0 0.168-r1
Alpine:v3.19 elfutils 0 0.168-r1
Alpine:v3.20 elfutils 0 0.168-r1
Alpine:v3.21 elfutils 0 0.168-r1
Alpine:v3.22 elfutils 0 0.168-r1
Alpine:v3.6 elfutils 0 0.168-r1
Alpine:v3.7 elfutils 0 0.168-r1
Alpine:v3.8 elfutils 0 0.168-r1
Alpine:v3.9 elfutils 0 0.168-r1
Debian:11 elfutils 0 0.168-1
Debian:12 elfutils 0 0.168-1
Debian:13 elfutils 0 0.168-1
Mageia:5 elfutils 0 0.169-1.mga5
Mageia:6 elfutils 0 0.176-1.mga6
SUSE:Linux Enterprise Desktop 12 SP3 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Desktop 12 SP4 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Micro 5.1 dwarves 0 1.22-150300.7.3.1
SUSE:Linux Enterprise Micro 5.1 elfutils 0 0.177-150300.11.3.1
SUSE:Linux Enterprise Micro 5.2 dwarves 0 1.22-150300.7.3.1
SUSE:Linux Enterprise Micro 5.2 elfutils 0 0.177-150300.11.3.1
SUSE:Linux Enterprise Module for Basesystem 15 elfutils 0 0.168-4.5.3
SUSE:Linux Enterprise Module for Basesystem 15 SP1 elfutils 0 0.168-4.5.3
SUSE:Linux Enterprise Module for Basesystem 15 SP3 dwarves 0 1.22-150300.7.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 elfutils 0 0.177-150300.11.3.1
SUSE:Linux Enterprise Server 12 SP3 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Server 12 SP4 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Software Development Kit 12 SP3 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Software Development Kit 12 SP4 elfutils 0 0.158-7.7.2
Ubuntu:14.04:LTS elfutils 0 0.158-0ubuntu5.3
Ubuntu:16.04:LTS elfutils 0 0.165-3ubuntu1.1
Ubuntu:18.04:LTS elfutils 0 0.170-0.4
openSUSE:Leap 15.0 elfutils 0 0.168-lp151.4.3.1
openSUSE:Leap 15.1 elfutils 0 0.168-lp151.4.3.1
openSUSE:Leap 15.3 dwarves 0 1.22-150300.7.3.1
openSUSE:Leap 15.3 elfutils 0 0.177-150300.11.3.1
openSUSE:Leap Micro 5.2 dwarves 0 1.22-150300.7.3.1
openSUSE:Leap Micro 5.2 elfutils 0 0.177-150300.11.3.1

Related vulnerabilities