# CVE-2026-102820: pageant: Out-of-bounds read / oversized allocation in `pageant` MemoryMap::read via a malicious Pageant agent (Windows)

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-29T18:18:43.297Z
- Modified: 2026-10-01T00:00:04.680Z
- Also known as: GHSA-g4mp-vgx3-xrvm
- Weaknesses: CWE-125, CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

pageant provides a [PageantStream] type that implements [AsyncRead] and [AsyncWrite] traits and can be used to talk to a running Pageant instance. Prior to pageant 0.2.3, the Windows pageant crate's pageant/src/wmmessage.rs MemoryMap::read function trusts a peer-controlled u32 response length supplied through the 8192-byte Pageant shared-memory mapping reached by AgentClient::connect_pageant. A local process that impersonates the Pageant window can make query_pageant_direct allocate up to approximately 4 GiB and copy beyond the mapped view, reliably crashing a russh client and conditionally exposing adjacent committed memory. This issue is fixed in pageant 0.2.3.

(As written by CVE List.)

## Affected

- Eugeny russh: < 0.63.2
- rust pageant: < 0.2.3
- pageant (crates.io): before 0.2.3

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/Eugeny/russh/security/advisories/GHSA-g4mp-vgx3-xrvm> (exploit, web)
- <https://github.com/Eugeny/russh/commit/5d566989ebabfdebfe6b33243d31765a0812260b> (web)
- <https://github.com/Eugeny/russh/releases/tag/v0.63.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102820> (advisory)
- <https://github.com/Eugeny/russh> (package)

## Sources

- CVE List: [CVE-2026-102820](https://www.cve.org/CVERecord?id=CVE-2026-102820), CVE Terms of Use, modified 2026-09-30
- GitHub Advisory Database: [GHSA-g4mp-vgx3-xrvm](https://github.com/advisories/GHSA-g4mp-vgx3-xrvm), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-102820](https://nvd.nist.gov/vuln/detail/CVE-2026-102820), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-102820 · Whole record: https://cve.day/CVE-2026-102820.json · Rebuilt by cve.day 2026-11-25T22:59:41.544Z
