# CVE-2026-31897: FreeRDP has an out-of-bounds read in `freerdp_bitmap_decompress_planar`

- Severity: None 0.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N`
- 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.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-13T17:42:11.932Z
- Modified: 2026-06-17T10:34:43.107Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, there is an out-of-bounds read in freerdp_bitmap_decompress_planar when SrcSize is 0. The function dereferences *srcp (which points to pSrcData) without first verifying that SrcSize >= 1. When SrcSize is 0 and pSrcData is non-NULL, this reads one byte past the end of the source buffer. This vulnerability is fixed in 3.24.0.

(As written by CVE List.)

## Affected

- FreeRDP FreeRDP: < 3.24.0; before 3.24.0

## Every score

- GitHub_M: CVSS:3.1 0.0 None `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-xgv6-r22m-7c9x> (exploit, patch, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/commit/cd27c8faca0eeb0d4309cc5837dfdf3c42eba4e7> (patch)

## Sources

- CVE List: [CVE-2026-31897](https://www.cve.org/CVERecord?id=CVE-2026-31897), CVE Terms of Use, modified 2026-03-13
- NVD: [CVE-2026-31897](https://nvd.nist.gov/vuln/detail/CVE-2026-31897), Public domain, modified 2026-06-17

---

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