# CVE-2026-67298: FreeRDP 3.28.0 Heap Buffer Overflow via RAIL orderLength Underflow

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA: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.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-08-01T12:22:18.323Z
- Modified: 2026-11-03T21:38:31.707Z
- Weaknesses: CWE-191
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

FreeRDP versions 3.28.0 and earlier contain a heap buffer overflow in the server-side RAIL channel handler (rail_server_handle_messages() in channels/rail/server/rail_main.c). When processing a RAIL PDU header, the code subtracts RAIL_PDU_HEADER_LENGTH from the peer-controlled orderLength field without first verifying orderLength is at least the header length. For orderLength values 0..3 this causes an unsigned integer underflow to a very large size, which bypasses the Stream_EnsureRemainingCapacity() capacity check (due to pointer arithmetic wraparound) and is then passed to WTSVirtualChannelRead(), resulting in an out-of-bounds heap write. A malicious or compromised RDP client can exploit this to corrupt the heap and crash the server. Fixed in FreeRDP 3.29.0.

(As written by CVE List.)

## Affected

- FreeRDP FreeRDP: before 3.29.0 (not affected: 3.29.0)

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-qmvw-52ph-q5pv> (exploit, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-5wr6-8m8j-3h7f> (exploit, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/commit/5370fb26fbf034ecd11d3026b6ad639b5fff493f> (patch)
- <https://github.com/FreeRDP/FreeRDP/commit/46848765f2a1134f8652f8760eefb5e85d64a9b8> (patch)
- <https://www.vulncheck.com/advisories/freerdp-heap-buffer-overflow-via-rail-orderlength-underflow> (third-party-advisory)

## Sources

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

---

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