Email me

Rust advisories / ncurses

Unsound MediumRUSTSEC-2025-0108 · ncurses

RUSTSEC-2025-0108: Uninitialized memory exposure in string reading functions

Short answerncurses has an API that can cause undefined behaviour from safe code: Uninitialized memory exposure in string reading functions. No fixed version yet.

Cratencurses
TypeUnsound (memory-exposure)
Affected versionsEvery version.
Fixed innone
SeverityMedium (GitHub rating)
Published2025-10-21
Last changed2025-10-28
Also known asGHSA-x77x-7mmh-cxv3
Affected functionsncurses::inchnstr, ncurses::inchstr, ncurses::innstr, ncurses::mvwinchnstr, ncurses::mvwinchstr, ncurses::mvwinnstr, ncurses::winchnstr, ncurses::winchstr, ncurses::winnstr, ncurses::winstr

What to do

  1. Find who pulls it in: cargo tree -i ncurses.
  2. Avoid the affected API (ncurses::inchnstr, ncurses::inchstr, ncurses::innstr, ncurses::mvwinchnstr, ncurses::mvwinchstr, ncurses::mvwinnstr), or replace the crate.

Details from the advisory

Multiple string reading functions expose uninitialized memory by setting length to capacity when no null terminator is found.

This allows reading uninitialized memory which may contain sensitive data from previous allocations.

The ncurses-rs repository is archived and unmaintained.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for ncurses

Full security history of ncurses

Up next

Same cratencurses: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ