CVE-2020-4031: Use-After-Free in gdi_SelectObject in FreeRDP
Vulnerability summary
CVE-2020-4031 is a high (CVSS 7.5) Use After Free vulnerability in canonical ubuntu_linux. EPSS estimates a 1.65% chance of exploitation in the next 30 days, higher than 77.3% of scored vulnerabilities.
Not severe (CVSS 3.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 8 · Related 6Timeline
- 22-06-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA3.5LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated3.5LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:NDiffers
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.65%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 1.61% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine2 products
- freerdp< 2.1.2-r0
- freerdp2< 2.1.2-r0
Debian2 products
- freerdp2< 2.1.2+dfsg1-1
- debian_linuxEOL10.0
Canonical1 product
- ubuntu_linuxEOL18.04 | 20.04
Fedoraproject1 product
- fedoraEOL31 | 32
Freerdp1 product
- freerdp< 2.1.2
Opensuse1 product
- leapEOL15.1
Ubuntu1 product
- freerdp2< 2.2.0+dfsg1-0ubuntu0.18.04.1 | < 2.2.0+dfsg1-0ubuntu0.20.04.1
7 vendors · 9 products
References
13 links- github.com/FreeRDP/FreeRDP/security/advisories/GHSA-gwcq-hpq2-m74gREPORTMitigationThird Party Advisory
- github.com/FreeRDP/FreeRDP/commit/6d86e20e1e7caaab4f0c7f89e36d32914dbccc52REPORTPatchThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-07/msg00080.htmlVendor AdvisoryMailing ListThird Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory