CVE-2021-39537 Memory corruption in n/a

High 8.8 Published Updated

A heap-based buffer overflow in ncurses allows attackers to execute arbitrary code or cause denial of service via crafted terminfo data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-39537?

CVE-2021-39537 is a high-severity memory corruption vulnerability in Apple Mac Os X, published on 20 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.

Weakness: CWE-787

Which versions are affected by CVE-2021-39537?

It affects 3 products.

Linux distribution packages (13)
ncurses SUSE:Linux Enterprise Micro 5.0All versions6.1-5.9.1
ncurses SUSE:Linux Enterprise Micro 5.1All versions6.1-5.9.1
ncurses SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions6.1-5.9.1
ncurses SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions6.1-5.9.1
ncurses SUSE:Linux Enterprise Module for Development Tools 15 SP2All versions6.1-5.9.1
ncurses SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions6.1-5.9.1
ncurses SUSE:Linux Enterprise Module for Legacy 15 SP2All versions6.1-5.9.1
ncurses SUSE:Linux Enterprise Module for Legacy 15 SP3All versions6.1-5.9.1
ncurses SUSE:Linux Enterprise Server 12 SP5All versions5.9-75.1
ncurses SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions5.9-75.1
ncurses SUSE:Linux Enterprise Software Development Kit 12 SP5All versions5.9-75.1
ncurses openSUSE:Leap 15.2All versions6.1-lp152.8.3.1
ncurses openSUSE:Leap 15.3All versions6.1-5.9.1

Products include Apple Mac Os X, Apple Macos, Invisible-Island Ncurses.

How do I fix CVE-2021-39537?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-39537 being exploited?

There is no known exploitation of CVE-2021-39537 in the wild and no public exploit code.

All Apple Mac Os X vulnerabilities

Sources

Also known as ALPINE-CVE-2021-39537, AZL-6740, CLEANSTART-2026-RK36716, DEBIAN-CVE-2021-39537, GHSA-v5gv-3mwr-6223, JLSEC-2026-451 and 6 more.

Is CVE-2021-39537 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free