CVE-2017-13734
Medium · 6.5CVSS
6.5
EPSS
2.1%
Published
Aug 29, 2017
CISA due date
—
Cloudanix analysis
A problem in a common text-handling component can let an attacker crash certain applications from across the network, 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 flaw causes an illegal address access inside _nc_safe_strcat during string concatenation, resulting in memory corruption that crashes the process and produces a denial of service.
Why it matters to the business
Applications that depend on the vulnerable library can be remotely crashed, leading to service outages and operational disruption; with 98 downstream dependents the exposure extends across many packaged deployments.
How an attack unfolds
An attacker supplies crafted input that reaches the unsafe string operation in ncurses; the resulting illegal memory access terminates the process. Public exploit code has been available for years, though no named threat actors or ransomware campaigns are associated with this issue.
How to fix it
Upgrade tensorflow (Bitnami) to version 2.1.4 or later, which resolves the underlying ncurses dependency exposure. Verify that all direct and transitive dependencies are rebuilt against a patched ncurses release.
How to confirm the fix worked
Confirm the installed library version is 2.1.4 or newer, recompile any dependent binaries, and test that the previously crashing input no longer terminates the process.
Typical attack path
- Identify a network-reachable service that links against the vulnerable ncurses library
- Craft and send input that triggers _nc_safe_strcat with an address that cannot be safely dereferenced
- Observe process termination and resulting denial of service
How to detect it
Review application and system logs for unexpected process crashes or segmentation faults occurring shortly after receipt of untrusted input; correlate with network flows that reach the affected service.
What your security team should do
- Prioritize upgrade of all tensorflow (Bitnami) instances to 2.1.4 within standard change windows
- Scan the environment for any other packages that statically or dynamically link the vulnerable ncurses version
- Add the fixed version constraint to build pipelines and container base images to prevent regression
The record
There is an illegal address access in the _nc_safe_strcat function in strings.c in ncurses 6.0 that will 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 |
| SUSE:Linux Enterprise Desktop 12 SP2 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Server 12 SP2 | ncurses | 0 | 5.9-58.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-58.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-58.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-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-13730 There is an illegal address access in the function _nc_read_entry_source() in progs/tic.c… 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