# CVE-2026-31883: FreeRDP has a `size_t` underflow in ADPCM decoder leads to heap-buffer-overflow write

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/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.36%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-13T17:35:17.411Z
- Modified: 2026-06-17T10:34:41.517Z
- Weaknesses: CWE-122, CWE-191
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, a size_t underflow in the IMA-ADPCM and MS-ADPCM audio decoders leads to heap-buffer-overflow write via the RDPSND audio channel. In libfreerdp/codec/dsp.c, the IMA-ADPCM and MS-ADPCM decoders subtract block header sizes from a size_t variable without checking for underflow. When nBlockAlign (received from the server) is set such that size % block_size == 0 triggers the header parsing at a point where size is smaller than the header (4 or 8 bytes), the subtraction wraps size to ~SIZE_MAX. The while (size > 0) loop then continues for an astronomical number of iterations. 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 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-85x9-4xxp-xhm5> (exploit, patch, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/commit/16df2300e1e3f5a51f68fb1626429e58b531b7c8> (patch)

## Sources

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

---

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