Cloudanix VulnDB

CVE-2016-4493

Medium · 5.5

CVSS

5.5

EPSS

1.7%

Published

Feb 24, 2017

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in a common code library can make certain applications crash when they try to read a specially made file, causing temporary outages until the software is updated.

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 vulnerability triggers an out-of-bounds read in the demangle_template_value_parm and do_hpacc_template_literal functions within libiberty's cplus-dem.c, resulting in a crash when processing a maliciously crafted binary.

Why it matters to the business

Applications or services that rely on the affected library may experience unexpected crashes or denial of service when handling untrusted binary files, leading to operational interruptions and potential loss of availability for dependent workloads.

How an attack unfolds

An attacker crafts a binary containing malformed template parameters, then supplies it to any process using the vulnerable demangling functions; the out-of-bounds read occurs during symbol processing and forces the application to terminate.

How to fix it

Upgrade affected installations of wordpress-multisite (Bitnami) to version 0.7.0 or later, which resolves the out-of-bounds read in the embedded libiberty code. Rebuild or replace any custom builds that statically link the vulnerable cplus-dem.c functions.

How to confirm the fix worked

Confirm the deployed version of wordpress-multisite (Bitnami) is at least 0.7.0; test by feeding a known crashing binary sample to the demangling routines and verifying that no crash occurs.

Typical attack path

  1. Identify a target application or service that invokes the vulnerable libiberty demangling routines on user-supplied binaries
  2. Construct a binary file that triggers the out-of-bounds condition in demangle_template_value_parm or do_hpacc_template_literal
  3. Deliver the crafted binary through normal input channels (file upload, command-line argument, or network transfer)
  4. Trigger processing of the binary to induce the crash and denial of service

How to detect it

Review application and system logs for unexpected crashes or segmentation faults occurring during binary parsing or symbol demangling operations; correlate with file uploads or processing events involving C++ binaries.

What your security team should do

  • Immediately upgrade all instances of wordpress-multisite (Bitnami) to the fixed 0.7.0 release
  • Scan source trees and build pipelines for any direct or vendored copies of the vulnerable cplus-dem.c file
  • Add binary demangling inputs to the application's threat model and apply input sanitization where possible
  • Monitor for crash reports or segmentation faults in processes that perform C++ symbol demangling

The record

The demangle_template_value_parm and do_hpacc_template_literal functions in cplus-dem.c in libiberty allow remote attackers to cause a denial of service (out-of-bounds read and crash) via a crafted binary.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 binutils 0 2.27.51.20161102-1
Debian:10 ht 0 2.1.0+repack1-1
Debian:10 libiberty 0 20161011-1
Debian:11 binutils 0 2.27.51.20161102-1
Debian:11 ht 0 2.1.0+repack1-1
Debian:11 libiberty 0 20161011-1
Debian:12 binutils 0 2.27.51.20161102-1
Debian:12 ht 0 2.1.0+repack1-1
Debian:12 libiberty 0 20161011-1
Debian:13 binutils 0 2.27.51.20161102-1
Debian:13 ht 0 2.1.0+repack1-1
Debian:13 libiberty 0 20161011-1
Debian:14 binutils 0 2.27.51.20161102-1
Debian:14 libiberty 0 20161011-1
Debian:7 binutils 0 2.22-8+deb7u3
Mageia:5 binutils 0 2.24-12.1.mga5
Mageia:5 gdb 0 7.8.1-7.1.mga5
Mageia:5 valgrind 0 3.10.1-2.1.mga5
Mageia:6 binutils 0 2.32-1.1.mga6
Ubuntu:14.04:LTS gdb 0 7.7.1-0ubuntu5~14.04.3
Ubuntu:14.04:LTS libiberty 0 20131116-1ubuntu0.2
Ubuntu:14.04:LTS valgrind 0 1:3.10.1-1ubuntu3~14.5
Ubuntu:16.04:LTS binutils-h8300-hms 0 No fix
Ubuntu:16.04:LTS gcc-arm-none-eabi 0 No fix
Ubuntu:16.04:LTS gcc-h8300-hms 0 No fix
Ubuntu:16.04:LTS gccxml 0 No fix
Ubuntu:16.04:LTS gdb 0 7.11.1-0ubuntu1~16.5
Ubuntu:16.04:LTS ht 0 No fix
Ubuntu:16.04:LTS libiberty 0 20160215-1ubuntu0.2
Ubuntu:16.04:LTS nescc 0 No fix
Ubuntu:16.04:LTS sdcc 0 No fix
Ubuntu:16.04:LTS valgrind 0 1:3.11.0-1ubuntu4.2
Ubuntu:18.04:LTS binutils-h8300-hms 0 No fix
Ubuntu:18.04:LTS gcc-arm-none-eabi 0 No fix
Ubuntu:18.04:LTS gcc-h8300-hms 0 No fix
Ubuntu:18.04:LTS nescc 0 No fix
Ubuntu:18.04:LTS sdcc 0 No fix
Ubuntu:20.04:LTS binutils-h8300-hms 0 No fix
Ubuntu:20.04:LTS gcc-h8300-hms 0 No fix
Ubuntu:20.04:LTS nescc 0 No fix
Ubuntu:22.04:LTS binutils-h8300-hms 0 No fix
Ubuntu:22.04:LTS gcc-h8300-hms 0 No fix
Ubuntu:22.04:LTS nescc 0 No fix
Ubuntu:24.04:LTS binutils-h8300-hms 0 No fix
Ubuntu:24.04:LTS gcc-h8300-hms 0 No fix
Ubuntu:24.10 binutils-h8300-hms 0 No fix
Ubuntu:24.10 gcc-h8300-hms 0 No fix
Ubuntu:25.04 binutils-h8300-hms 0 No fix
Ubuntu:25.04 gcc-h8300-hms 0 No fix
Ubuntu:25.10 binutils-h8300-hms 0 No fix
Ubuntu:25.10 gcc-h8300-hms 0 No fix
Ubuntu:Pro:14.04:LTS binutils 0 No fix
Ubuntu:Pro:16.04:LTS binutils 0 2.26.1-1ubuntu1~16.04.8+esm1
Ubuntu:Pro:16.04:LTS binutils-h8300-hms 0 No fix
Ubuntu:Pro:16.04:LTS gcc-arm-none-eabi 0 No fix
Ubuntu:Pro:16.04:LTS gcc-h8300-hms 0 No fix
Ubuntu:Pro:16.04:LTS gccxml 0 No fix
Ubuntu:Pro:16.04:LTS ht 0 No fix
Ubuntu:Pro:16.04:LTS nescc 0 No fix
Ubuntu:Pro:16.04:LTS sdcc 0 No fix
Ubuntu:Pro:18.04:LTS binutils-h8300-hms 0 No fix
Ubuntu:Pro:18.04:LTS gcc-arm-none-eabi 0 No fix
Ubuntu:Pro:18.04:LTS gcc-h8300-hms 0 No fix
Ubuntu:Pro:18.04:LTS nescc 0 No fix
Ubuntu:Pro:18.04:LTS sdcc 0 No fix
Ubuntu:Pro:20.04:LTS binutils-h8300-hms 0 No fix
Ubuntu:Pro:20.04:LTS gcc-h8300-hms 0 No fix
Ubuntu:Pro:20.04:LTS nescc 0 No fix

Related vulnerabilities