cve.bz

CVE-2020-4031 Use After Free

7.5 highEPSS 1.7%Fix available

High (7.5). EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
1.7% (unchanged from 1.7% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-4031 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-4031?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-4031?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-4031 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
freerdp:freerdpbefore 2.1.2
fedoraproject:fedora31
fedoraproject:fedora32
opensuse:leap15.1
canonical:ubuntu_linux18.04
canonical:ubuntu_linux20.04
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10freerdp22.3.0+dfsg1-2+deb10u3DLA-3606-1
Debian12freerdp22.1.2+dfsg1-1DEBIAN-CVE-2020-4031
Ubuntu18.04:LTSfreerdp22.2.0+dfsg1-0ubuntu0.18.04.1UBUNTU-CVE-2020-4031 USN-4481-1
Ubuntu20.04:LTSfreerdp22.2.0+dfsg1-0ubuntu0.20.04.1UBUNTU-CVE-2020-4031 USN-4481-1
SUSELinux Enterprise Software Development Kit 12 SP5, Linux Enterprise Workstation Extension 12 SP5freerdp2.1.2-12.20.1SUSE-SU-2020:2272-1
SUSELinux Enterprise Workstation Extension 12 SP5vinagre3.20.2-16.3.3SUSE-SU-2020:2272-1
SUSELinux Enterprise Workstation Extension 15 SP1freerdp2.1.2-10.15.1SUSE-SU-2020:2032-1
SUSELinux Enterprise Workstation Extension 15 SP2freerdp2.1.2-15.7.1SUSE-SU-2020:2068-1
openSUSELeap 15.1freerdp2.1.2-lp151.5.6.1openSUSE-SU-2020:1090-1
openSUSETumbleweedfreerdp22.4.0-2.1openSUSE-SU-2024:10768-1
Alpinev3.12, v3.13, v3.14 and 7 morefreerdp2.1.2-r0ALPINE-CVE-2020-4031
Alpinev3.22, v3.23, v3.24freerdp, freerdp22.1.2-r0ALPINE-CVE-2020-4031

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Although the vulnerable code could have been in versions of freerdp shipped with Red Hat Enterprise Linux 7 and 8, the build configuration disables the shadow-server functionality and thus the vulnerable code is not shipped. Therefore, versions of freerdp shipped with Red Hat Enterprise Linux 7 and 8 are not affected. The version of freerdp shipped with Red Hat Enterprise Linux 6 does not contain the vulnerable code in the first place.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6freerdpNot affected
Red Hat Enterprise Linux 7freerdpNot affected
Red Hat Enterprise Linux 8freerdpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-4031.

References

Check your stackJSON