DEV Community

jeffrey
jeffrey

Posted on

FreeRDP certificate validation: SAN precedence and IP-literal matching in remote sessions

FreeRDP certificate validation: SAN precedence and IP-literal matching in remote sessions

CVE-2026-121392 affects FreeRDP before 3.32.2. The TLS certificate verification path can accept a Common Name fallback even when Subject Alternative Name entries do not match. It also handles IP literals and DNS names incorrectly in some certificate checks.

A remote desktop session is still a TLS session

RDP clients often rely on the server certificate to identify the host. If the client accepts a certificate for a different DNS name or treats an IP address as a DNS string, an on-path attacker may be able to present a certificate that should not satisfy the connection policy.

The public severity is Critical with CVSS 3.1 score 9.1. The flaw is in certificate identity validation, not in the RDP transport itself. A deployment that pins a certificate fingerprint or uses a private PKI can reduce some paths, but the client code must still parse and compare SANs correctly.

Identify client and gateway use

Inventory FreeRDP-based clients, embedded thin clients, jump hosts, and automation libraries. Include the version of the FreeRDP library, not only the application package name. Container images and vendor appliances may bundle an older copy.

Review how server names are supplied. A user who types an IP address exercises a different comparison path from one who enters a DNS name. Gateways and connection brokers can terminate TLS or forward the original target, so the certificate the client validates should be recorded explicitly.

Update and verify

Upgrade to FreeRDP 3.32.2 or a vendor backport. Restart long-lived clients and gateway processes. Then test with certificates that contain a matching SAN, a non-matching SAN with a matching Common Name, and an IP address represented as a DNS string. The patched client should accept only the identity that matches the connection policy.

If an update is delayed, restrict RDP destinations to managed certificate pins or trusted gateways and avoid accepting certificate prompts for unknown hosts. That is a containment step, not a complete fix.

Investigate exposure

Search client logs for certificate warnings, hostname mismatches, and connections to unusual RDP endpoints. On a gateway, compare certificate subjects with backend targets and look for successful sessions that bypassed the normal naming rule.

References

Top comments (0)