HistoryEditJSON (OSV)

RUSTSEC-2025-0108

Uninitialized memory exposure in string reading functions

Reported
Issued
Package
ncurses (crates.io)
Type
INFO Unsound
Categories
Keywords
#memory-safety #soundness
References
Patched
no patched versions
Affected Functions
Version
ncurses::inchnstr
  • <=6.0.1
ncurses::inchstr
  • <=6.0.1
ncurses::innstr
  • <=6.0.1
ncurses::mvwinchnstr
  • <=6.0.1
ncurses::mvwinchstr
  • <=6.0.1
ncurses::mvwinnstr
  • <=6.0.1
ncurses::winchnstr
  • <=6.0.1
ncurses::winchstr
  • <=6.0.1
ncurses::winnstr
  • <=6.0.1
ncurses::winstr
  • <=6.0.1

Description

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.

Advisory available under CC0-1.0 license.