Cloudanix VulnDB

CVE-2017-13730

Medium · 6.5

CVSS

6.5

EPSS

2.9%

Published

Aug 29, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in a widely used helper library lets remote attackers crash certain programs, interrupting service until the software is updated.

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

Illegal address access during terminfo source parsing in _nc_read_entry_source() within ncurses allows an attacker-controlled input to trigger memory corruption that crashes the process.

Why it matters to the business

Remote denial-of-service against any application or package that ships or links the vulnerable ncurses component, including tensorflow (Bitnami) deployments; 98 downstream dependents increase the blast radius and operational disruption risk.

How an attack unfolds

An attacker supplies a malformed terminfo entry or file that is processed by the vulnerable ncurses parsing routine; the illegal memory reference causes an immediate crash, achieving denial of service without authentication.

How to fix it

Upgrade tensorflow (Bitnami) to version 2.1.4 or later; rebuild or reinstall any dependent packages that statically or dynamically link the patched ncurses library.

How to confirm the fix worked

Confirm the installed tensorflow (Bitnami) package reports version 2.1.4 or newer; attempt to load a known-malformed terminfo file in a test environment and verify the process no longer crashes.

Typical attack path

  1. Identify an application or service that uses the vulnerable ncurses library for terminfo handling
  2. Craft or obtain a malformed terminfo source file that triggers the illegal address access
  3. Deliver the file to the target via any input path that reaches _nc_read_entry_source()
  4. Trigger parsing to induce the crash and service outage

How to detect it

Search application and system logs for sudden ncurses or tic process crashes; inspect any custom terminfo files or environment variables that feed into terminfo parsing for unexpected content.

What your security team should do

  • Immediately schedule upgrade of tensorflow (Bitnami) to 2.1.4 because public exploit code exists
  • Inventory all 98 downstream dependents and prioritize patching of internet-facing or high-value services first
  • Add crash-monitoring alerts for ncurses-related processes until upgrades are complete

The record

There is an illegal address access in the function _nc_read_entry_source() in progs/tic.c in ncurses 6.0 that might lead to a remote denial of service attack.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.3 ncurses 0 6.0_p20170701-r0
Alpine:v3.4 ncurses 0 6.0_p20170701-r0
Alpine:v3.5 ncurses 0 6.0_p20170701-r0
Alpine:v3.6 ncurses 0 6.0_p20170930-r0
Debian:11 ncurses 0 6.0+20170827-1
Debian:12 ncurses 0 6.0+20170827-1
Debian:13 ncurses 0 6.0+20170827-1
Mageia:6 ncurses 0 6.0-8.1.mga6
SUSE:Linux Enterprise Desktop 12 SP2 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Desktop 12 SP2 ncurses 0 5.9-58.1
SUSE:Linux Enterprise Desktop 12 SP3 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Desktop 12 SP3 ncurses 0 5.9-58.1
SUSE:Linux Enterprise Server 11 SP4 ncurses 0 5.6-93.12.1
SUSE:Linux Enterprise Server 12 SP2 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Server 12 SP2 ncurses 0 5.9-58.1
SUSE:Linux Enterprise Server 12 SP3 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Server 12 SP3 ncurses 0 5.9-58.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 ncurses 0 5.9-58.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 ncurses 0 5.6-93.12.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 ncurses 0 5.9-58.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 ncurses 0 5.9-58.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 ncurses 0 5.6-93.12.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 ncurses 0 5.9-58.1
SUSE:Linux Enterprise Software Development Kit 12 SP3 ncurses 0 5.9-55.1
SUSE:Linux Enterprise Software Development Kit 12 SP3 ncurses 0 5.9-58.1
Ubuntu:18.04:LTS ncurses 0 6.1-1ubuntu1
Ubuntu:Pro:14.04:LTS ncurses 0 5.9+20140118-1ubuntu1+esm1
Ubuntu:Pro:16.04:LTS ncurses 0 6.0+20160213-1ubuntu1+esm1

Related vulnerabilities