Cloudanix VulnDB

CVE-2017-13729

Medium · 6.5

CVSS

6.5

EPSS

2.9%

Published

Aug 29, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in a widely used terminal-handling library can let an attacker crash certain network services simply by sending bad data, causing temporary outages 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 in the _nc_save_str function within alloc_entry.c of ncurses 6.0 triggers memory corruption that crashes the process.

Why it matters to the business

Applications relying on the affected ncurses dependency experience sudden unavailability, leading to service outages and potential loss of rate-limiting functionality in affected deployments.

How an attack unfolds

An attacker supplies specially crafted input that reaches _nc_save_str, causing the library to dereference an invalid address and terminate the process; public exploits exist and the issue has been known since 2017.

How to fix it

Upgrade envoy-ratelimit (Chainguard), envoy-ratelimit (Wolfi), envoy-ratelimit-compat (Chainguard), and envoy-ratelimit-compat (Wolfi) to version 0.0_git20240220-r3 or later; rebuild any containers or packages that embed the vulnerable ncurses dependency.

How to confirm the fix worked

Verify the installed ncurses version is 6.0 or newer with the patch applied; run the affected binary under AddressSanitizer or similar memory checker with crafted input to confirm absence of the crash.

Typical attack path

  1. Identify a network-accessible service that links against the vulnerable ncurses library
  2. Craft and send input that exercises the _nc_save_str code path
  3. Trigger the illegal address access resulting in process crash and denial of service

How to detect it

Review process crash logs and core dumps for references to _nc_save_str or alloc_entry.c; correlate with inbound network traffic that precedes the crash.

What your security team should do

  • Immediately update all listed envoy-ratelimit packages to the fixed versions
  • Scan container images and rebuild pipelines for any embedded vulnerable ncurses
  • Monitor for availability alerts on services that depend on the library

The record

There is an illegal address access in the _nc_save_str function in alloc_entry.c in ncurses 6.0. It 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
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