Use-After-Free in gdi_SelectObject in FreeRDP
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-416 and the CVSS impact.
Summary
In FreeRDP before version 2.1.2, there is a use-after-free in gdi_SelectObject. All FreeRDP clients using compatibility mode with /relax-order-checks are affected. This is fixed in version 2.1.2.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FreeRDP | FreeRDP | before 2.1.2 | 2.1.2 | Patch available | CNA |
- FreeRDP VendorFreeRDP Affected before 2.1.2 Fixed in 2.1.2 Patch available CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:* | before 2.1.2 | Vulnerable | FreeRDP |
| cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* | 31 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* | 32 | Vulnerable | Fedoraproject |
| cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* | 15.1 | Vulnerable | openSUSE |
| cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:esm:*:*:* | 18.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* | 20.04 | Vulnerable | Canonical |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:* Versions before 2.1.2 Vulnerable ·FreeRDP
- cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* Versions 31 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* Versions 32 Vulnerable ·Fedoraproject
- cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* Versions 15.1 Vulnerable ·openSUSE
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:esm:*:*:* Versions 18.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* Versions 20.04 Vulnerable ·Canonical
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · CNA FreeRDP (FreeRDP) Fixed in 2.1.2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
FreeRDP — FEDORA-2020-8d5f86e29a
9 records Highest priority Priority LOW 9 LOW
Other records, highest priority first
- TI-2020-08972 OOB Read in license_read_new_or_upgrade_license_packet in FreeRDPPriority LOW 33
- TI-2020-08969 Global OOB read in update_read_cache_bitmap_v3_order in FreeRDPPriority LOW 33
- TI-2020-08971 Out-of-bound read in glyph_cache_put in FreeRDPPriority LOW 32
- Advisory ·
FreeRDP — FEDORA-2020-a3432485db
9 records Highest priority Priority LOW 9 LOW
Other records, highest priority first
- TI-2020-08972 OOB Read in license_read_new_or_upgrade_license_packet in FreeRDPPriority LOW 33
- TI-2020-08969 Global OOB read in update_read_cache_bitmap_v3_order in FreeRDPPriority LOW 33
- TI-2020-08971 Out-of-bound read in glyph_cache_put in FreeRDPPriority LOW 32
Show 1 more group
- Advisory ·
FreeRDP — USN-4481-1
9 records Highest priority Priority LOW 9 LOW
Other records, highest priority first
- TI-2020-08972 OOB Read in license_read_new_or_upgrade_license_packet in FreeRDPPriority LOW 33
- TI-2020-08969 Global OOB read in update_read_cache_bitmap_v3_order in FreeRDPPriority LOW 33
- TI-2020-08971 Out-of-bound read in glyph_cache_put in FreeRDPPriority LOW 32
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2020-4031
References
More Freerdp vulnerabilities
- TI-2026-85092 Use-after-free in FreeRDP rdpgfx channel close handling CVSS 4.0CRITICAL 9.3
- TI-2026-85091 Out-of-bounds write in FreeRDP proxy via bitmap cache v2 capability CVSS 4.0CRITICAL 9.3
- TI-2026-24435 FreeRDP has a `size_t` underflow in ADPCM decoder leads to heap-buffer-overflow write CVSS 3.1CRITICAL 9.8
- TI-2023-21373 Out-Of-Bounds Write in FreeRDP CVSS 3.1CRITICAL 9.8
- TI-2022-08692 Server side NTLM does not properly check parameters in FreeRDP CVSS 3.1CRITICAL 9.1
- TI-2023-21374 Out-Of-Bounds Read in FreeRDP CVSS 3.1CRITICAL 9.1
Sources
- CVE-2020-4031 · CVE Program
- CVE-2020-4031 · NVD
- FIRST EPSS
- CVE-2020-4031 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences