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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-26)
- **CWE:** CWE-191
- **Published:** 2026-08-01T12:22:18.323Z
- **Modified:** 2026-11-03T21:38:31.707Z

## Who should check

- Anyone running FreeRDP \< 3.29.0

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

## Affected and fixed versions

- FreeRDP: \< 3.29.0 (cvelist)

## Mitigation

- Upgrade FreeRDP to 3.29.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-67298. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-67298.md
Affected: FreeRDP < 3.29.0
Fixed in: FreeRDP 3.29.0

Steps:
1. Search this machine and project for FreeRDP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-67298 being exploited?

There is no confirmed exploitation: CVE-2026-67298 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-67298?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-67298?

FreeRDP \< 3.29.0.

### Is there a fix for CVE-2026-67298?

Yes. Fixed in FreeRDP 3.29.0. Upgrade FreeRDP to 3.29.0 or later.

### How do I check if I'm affected by CVE-2026-67298?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-67298>

HTML: <https://flawdb.com/CVE-2026-67298> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-67298>
