CVE-2023-39356: Missing offset validation leading to Out-of-Bounds Read in FreeRDP

Published Aug 31, 2023
·
Updated

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. In affected versions a missing offset validation may lead to an Out Of Bound Read in the function gdimultiopaquerect. In particular there is no code to validate if the value multiopaquerect->numRectangles is less than 45. Looping through multiopaquerect->numRectangles without proper boundary checks can lead to Out-of-Bounds Read errors which will likely lead to a crash. This issue has been addressed in versions 2.11.0 and 3.0.0-beta3. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected Software

16 affected componentsFixes available
debian/freerdp2<=2.0.0~git20190204.1.2693389a+dfsg1-1+deb10u2, <=2.3.0+dfsg1-2+deb11u1, <=2.10.0+dfsg1-1
2.3.0+dfsg1-2+deb10u42.11.2+dfsg1-12.11.5+dfsg1-1
ubuntu/freerdp2<2.2.0+dfsg1-0ubuntu0.18.04.4+
2.2.0+dfsg1-0ubuntu0.18.04.4+
ubuntu/freerdp2<2.2.0+dfsg1-0ubuntu0.20.04.6
2.2.0+dfsg1-0ubuntu0.20.04.6
ubuntu/freerdp2<2.6.1+dfsg1-3ubuntu2.5
2.6.1+dfsg1-3ubuntu2.5
ubuntu/freerdp2<2.10.0+dfsg1-1ubuntu0.3
2.10.0+dfsg1-1ubuntu0.3
ubuntu/freerdp2<2.10.0+dfsg1-1.1ubuntu1.1
2.10.0+dfsg1-1.1ubuntu1.1
ubuntu/freerdp2<2.11.0, <3.0.0-
2.11.03.0.0-
redhat/freerdp<2.11.0
2.11.0
redhat/freerdp<3.0.0
3.0.0
FreeRDP freerdp<2.11.0
FreeRDP freerdp=3.0.0-beta1
FreeRDP freerdp=3.0.0-beta2
Debian Debian Linux=10.0
Fedoraproject Fedora=37
Fedoraproject Fedora=38
Fedoraproject Fedora=39

Event History

Aug 31, 2023
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·08:50 PM
Data Sourced
via MITRE·08:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Jan 20, 2024
Data Sourced
via Launchpad·04:02 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-39356?

CVE-2023-39356 is a vulnerability in FreeRDP that allows an Out Of Bound Read in the function `gdi_multi_opaque_rect` due to missing offset validation.

2

What is the severity of CVE-2023-39356?

The severity of CVE-2023-39356 is critical with a severity value of 9.1.

3

How does CVE-2023-39356 affect FreeRDP?

CVE-2023-39356 affects FreeRDP versions up to and excluding 2.11.0, as well as version 3.0.0-beta1 and version 3.0.0-beta2.

4

How can I fix CVE-2023-39356?

To fix CVE-2023-39356, users should update to a version of FreeRDP that is not affected by the vulnerability.

5

Where can I find more information about CVE-2023-39356?

More information about CVE-2023-39356 can be found in the references provided: [GitHub - primary.h](https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/include/freerdp/primary.h#L186-L196), [GitHub - orders.c](https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/libfreerdp/core/orders.c#L1503-L1504), [GitHub - gdi.c](https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/libfreerdp/gdi/gdi.c#L723C1-L758).

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