CVE-2017-13730
Medium · 6.5CVSS
6.5
EPSS
2.9%
Published
Aug 29, 2017
CISA due date
—
Cloudanix analysis
A bug in a widely used helper library lets remote attackers crash certain programs, interrupting service 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
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
- Identify an application or service that uses the vulnerable ncurses library for terminfo handling
- Craft or obtain a malformed terminfo source file that triggers the illegal address access
- Deliver the file to the target via any input path that reaches _nc_read_entry_source()
- 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
- CVE-2017-13728 There is an infinite loop in the next_char function in comp_scan.c in ncurses 6.0… Also affects ncurses
- CVE-2017-13729 There is an illegal address access in the _nc_save_str function in alloc_entry.c in… Also affects ncurses
- CVE-2017-13733 There is an illegal address access in the fmt_entry function in progs/dump_entry.c in… Also affects ncurses
- CVE-2017-13734 There is an illegal address access in the _nc_safe_strcat function in strings.c in… Also affects ncurses
- CVE-2017-13731 There is an illegal address access in the function postprocess_termcap() in parse_entry.c… Also affects ncurses
- CVE-2017-13732 There is an illegal address access in the function dump_uses() in progs/dump_entry.c in… Also affects ncurses
- CVE-2017-11112 In ncurses 6.0, there is an attempted 0xffffffffffffffff access in the append_acs… Also affects ncurses
- CVE-2017-11113 In ncurses 6.0, there is a NULL Pointer Dereference in the _nc_parse_entry function of… Also affects ncurses