CVE-2023-40181: debian debian_linux Out-of-bounds Read
Vulnerability summary
CVE-2023-40181 is a critical (CVSS 9.1) Out-of-bounds Read vulnerability in debian debian_linux. EPSS estimates a 1.69% chance of exploitation in the next 30 days, higher than 76.7% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 8 · Related 4Timeline
- 31-08-2023PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an Integer-Underflow leading to Out-Of-Bound Read in the `zgfx_decompress_segment` function. In the context of `CopyMemory`, it's possible to read data beyond the transmitted packet range and likely cause 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 issue.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
- OSV · DebianEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS trend
Probability
1.69%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
0.00 pp
From 1.69% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundFreerdp
Maturity: poc
Weaknesses
CWE · root cause- CWE-125Out-of-bounds ReadThe product reads data past the end, or before the beginning, of the intended buffer.
- CWE-191Integer Underflow (Wrap or Wraparound)The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.
Affected systems
Debian2 products
- freerdp2< 2.11.7+dfsg1-6~deb12u1
- debian_linuxEOL10.0
Fedoraproject1 product
- fedoraEOL37 | 38 | 39
Freerdp1 product
- freerdp≥ 3.0.0-beta1, < 3.0.0-beta3 | < 2.11.0 | 3.0.0:beta1 | 3.0.0:beta2
Ubuntu1 product
- freerdp2< 2.2.0+dfsg1-0ubuntu0.18.04.4+esm1 | < 2.2.0+dfsg1-0ubuntu0.20.04.5 | < 2.6.1+dfsg1-3ubuntu2.4
4 vendors · 5 products
References
13 links- github.com/FreeRDP/FreeRDP/security/advisories/GHSA-mxp4-rx7x-h2g8X Refsource CONFIRMREPORTExploitVendor Advisory
- github.com/FreeRDP/FreeRDP/blob/2252d53001d9ce8a452f0a0a5b1f5ed9db6d57f1/libfreerdp/codec/zgfx.cX Refsource MISCREPORTIssue Tracking
- github.com/FreeRDP/FreeRDP/blob/2252d53001d9ce8a452f0a0a5b1f5ed9db6d57f1/libfreerdp/codec/zgfx.cX Refsource MISCREPORTIssue Tracking
- lists.fedoraproject.org/archives/…Mailing List
- lists.fedoraproject.org/archives/…Mailing List
- lists.fedoraproject.org/archives/…Mailing List