# GHSA-x77x-7mmh-cxv3: ncurses exposes uninitialized memory in string reading functions

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-10-21T12:00:00.000Z
- Modified: 2025-10-28T06:29:26.788Z
- Also known as: RUSTSEC-2025-0108
- Weaknesses: CWE-125

## 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.

(As written by GitHub Advisory Database.)

## Affected

- ncurses (crates.io): up to 6.0.1; from 0.0.0-0

## References

- <https://github.com/RustSec/advisory-db/pull/2427> (web)
- <https://github.com/jeaye/ncurses-rs> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0108.html> (advisory, web)
- <https://crates.io/crates/ncurses> (package)

## Sources

- GitHub Advisory Database: [GHSA-x77x-7mmh-cxv3](https://github.com/advisories/GHSA-x77x-7mmh-cxv3), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2025-0108](https://rustsec.org/advisories/RUSTSEC-2025-0108.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-x77x-7mmh-cxv3 · Whole record: https://cve.day/GHSA-x77x-7mmh-cxv3.json · Rebuilt by cve.day 2026-11-25T22:56:43.276Z
