CVE-2020-4031: Use-After-Free in gdi_SelectObject in FreeRDP

Published Jun 22, 2020
·
Updated

In FreeRDP before version 2.1.2, there is a use-after-free in gdiSelectObject. All FreeRDP clients using compatibility mode with /relax-order-checks are affected. This is fixed in version 2.1.2.

Affected Software

8 affected componentsFixes available
FreeRDP freerdp<2.1.2
Fedoraproject Fedora=31
Fedoraproject Fedora=32
openSUSE Leap=15.1
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Debian Debian Linux=10.0
debian/freerdp2
2.3.0+dfsg1-2+deb11u12.3.0+dfsg1-2+deb11u32.11.7+dfsg1-6~deb12u1

Event History

Jun 22, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 23, 2026
Data Sourced
via Ubuntu·06:30 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·06:30 PM
DescriptionAffected Software
Data Sourced
via Launchpad·06:31 PM
Description

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2020-4031.

2

What is the severity of CVE-2020-4031?

The severity of CVE-2020-4031 is high with a CVSS score of 7.5.

3

Which software versions are affected by CVE-2020-4031?

All FreeRDP clients using compatibility mode with /relax-order-checks prior to version 2.1.2 are affected by CVE-2020-4031.

4

How can I fix CVE-2020-4031?

To fix CVE-2020-4031, update your FreeRDP client to version 2.1.2 or higher.

5

Where can I find more information about CVE-2020-4031?

You can find more information about CVE-2020-4031 at the following references: [MITRE CVE-2020-4031](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-4031), [GitHub Security Advisory](https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-gwcq-hpq2-m74g), [FreeRDP Release Announcement](http://www.freerdp.com/2020/06/22/2_1_2-released).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203