Cloudanix VulnDB

CVE-2023-50495

Medium · 6.5

CVSS

6.5

EPSS

1.0%

Published

Dec 12, 2023

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in a widely used library for text-based programs can make those programs suddenly stop working when they receive certain inputs.

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

Triggers a segmentation fault crash in the _nc_wrap_entry component of NCurses during input processing.

Why it matters to the business

Causes terminal-based applications to become unavailable, interrupting operations that depend on text interfaces and requiring restarts or workarounds.

How an attack unfolds

An attacker provides crafted input to a vulnerable NCurses application over the network; when the library processes the input requiring user interaction, the fault in _nc_wrap_entry is triggered resulting in denial of service.

How to fix it

Upgrade NCurses to a version newer than 6.4-20230418 and rebuild dependent applications; apply any available vendor patches immediately given the extended time since disclosure.

How to confirm the fix worked

Confirm the installed NCurses version exceeds 6.4-20230418, then retest input handling paths to ensure no segmentation faults occur.

Typical attack path

  1. Locate applications built against the vulnerable NCurses version
  2. Craft input that reaches _nc_wrap_entry
  3. Deliver the input requiring user interaction
  4. Induce the segmentation fault to crash the process

How to detect it

Review system and application logs for segmentation fault entries referencing NCurses or the _nc_wrap_entry function, and correlate with unexpected process terminations.

What your security team should do

  • Inventory all systems using NCurses and prioritize upgrades
  • Disable or sandbox affected terminal applications until patched
  • Monitor crash logs for recurring segmentation faults in NCurses components

The record

NCurse v6.4-20230418 was discovered to contain a segmentation fault via the component _nc_wrap_entry().

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 ncurses 0 No fix
Debian:12 ncurses 0 No fix
Debian:13 ncurses 0 6.4+20230625-1
SUSE:Linux Enterprise Micro 5.1 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Micro 5.2 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Micro 5.3 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Micro 5.4 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Micro 5.5 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Module for Basesystem 15 SP4 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Module for Development Tools 15 SP4 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Module for Development Tools 15 SP5 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Module for Legacy 15 SP4 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Module for Legacy 15 SP5 ncurses 0 6.1-150000.5.20.1
SUSE:Linux Enterprise Server 12 SP5 ncurses 0 5.9-85.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 ncurses 0 5.9-85.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 ncurses 0 5.9-85.1
Ubuntu:20.04:LTS ncurses 0 No fix
Ubuntu:22.04:LTS ncurses 0 No fix
Ubuntu:Pro:14.04:LTS ncurses 0 5.9+20140118-1ubuntu1+esm5
Ubuntu:Pro:16.04:LTS ncurses 0 6.0+20160213-1ubuntu1+esm5
Ubuntu:Pro:18.04:LTS ncurses 0 6.1-1ubuntu1.18.04.1+esm2
Ubuntu:Pro:20.04:LTS ncurses 0 No fix
openSUSE:Leap 15.4 ncurses 0 6.1-150000.5.20.1
openSUSE:Leap 15.5 ncurses 0 6.1-150000.5.20.1
openSUSE:Leap Micro 5.3 ncurses 0 6.1-150000.5.20.1
openSUSE:Leap Micro 5.4 ncurses 0 6.1-150000.5.20.1

Related vulnerabilities