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

- Severity: Low 3.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.65%, higher than 77% of CVEs (2026-12-01)
- Published: 2020-06-22T00:00:00.000Z
- Modified: 2026-06-17T03:19:27.237Z
- Weaknesses: CWE-416
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- FreeRDP FreeRDP: < 2.1.2; before 2.1.2
- fedoraproject fedora: 31; 32
- opensuse leap: 15.1
- canonical ubuntu_linux: 18.04; 20.04
- debian debian_linux: 10.0

## Every score

- GitHub_M: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <http://www.freerdp.com/2020/06/22/2_1_2-released> (release-notes, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-gwcq-hpq2-m74g> (mitigation, third-party-advisory)
- <https://github.com/FreeRDP/FreeRDP/commit/6d86e20e1e7caaab4f0c7f89e36d32914dbccc52> (patch, third-party-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00080.html> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6Y35HBHG2INICLSGCIKNAR7GCXEHQACQ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XOZLH35OJWIQLM7FYDXAP2EAUBDXE76V/> (vendor-advisory)
- <https://usn.ubuntu.com/4481-1/> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00008.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2020-4031](https://www.cve.org/CVERecord?id=CVE-2020-4031), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-4031](https://nvd.nist.gov/vuln/detail/CVE-2020-4031), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-4031 · Whole record: https://cve.day/CVE-2020-4031.json · Rebuilt by cve.day 2026-11-25T22:57:53.084Z
