Remote Denial of Service Vulnerability in ncurses

ncurses Updated 02 Oct 2025

Summary

29/08/2017
N/A
Yes i
Medium
6.5

CVE-2017-13734: 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. Affects ncurses across 2 version ranges.

< 6.0_p20170701-r0 < ed3eb506e9a8e6ea871a2eb5818e19ba36f3f277

Fixed in 6.0_p20170701-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ncurses is a library that provides an API for creating text-based user interfaces in terminal applications. It is widely used in various operating systems, including Alpine Linux. The library allows developers to control the display and input of text on a terminal screen. However, a vulnerability has been discovered in ncurses version 6.0 that can lead to a remote denial of service attack.

Vulnerability Detail

The vulnerability, identified as CVE-2017-13734, is caused by an illegal address access in the _nc_safe_strcat function in strings.c. This vulnerability can be exploited remotely and may result in a denial of service attack. An attacker could send specially crafted input to a vulnerable application that uses ncurses, causing it to crash or become unresponsive. The issue arises from improper handling of certain string operations, leading to an illegal memory access.

How To Fix

Minimum fixed version

6.0_p20170701-r0

This is the first release that contains the fix.

sudo apk add --upgrade ncurses

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by updating the ncurses library.

Conclusion

The remote denial of service vulnerability in ncurses can be mitigated by updating the library to the recommended version. It is crucial for users to apply the fix promptly to prevent potential attacks. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ncurses →

Share this vulnerability

FAQ

The vulnerability can lead to a remote denial of service attack, causing the affected application to crash or become unresponsive.

Yes, this vulnerability can be exploited remotely by sending specially crafted input to a vulnerable application.

Versions of ncurses up to and including 6.0 are affected by this vulnerability.

Yes, updating the ncurses library to version 6.0_p20170701-r0 or later will fix this vulnerability.

No, there are no known workarounds for this vulnerability. Updating the library is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for ncurses.

How To Fix

Minimum fixed version

6.0_p20170701-r0

This is the first release that contains the fix.

sudo apk add --upgrade ncurses

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback