CVE-2026-22858
JSON

5.6medium

FreeRDP has a global-buffer-overflow in crypto_base64_decode

Severity
5.6medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.70% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, global-buffer-overflow was observed in FreeRDP's Base64 decoding path. The root cause appears to be implementation-defined char signedness: on Arm/AArch64 builds, plain char is treated as unsigned, so the guard c <= 0 can be optimized into a simple c != 0 check. As a result, non-ASCII bytes (e.g., 0x80-0xFF) may bypass the intended range restriction and be used as an index into a global lookup table, causing out-of-bounds access. This vulnerability is fixed in 3.20.1.

Affected

Product or packageVersionsReported by
FreeRDP FreeRDP< 3.20.1, before 3.20.1CVE List, NVD
freerdpNot specified
Not affected: from 2:3.10.3-12.el10_2.2 before *, from 2:3.10.3-5.el10_1.2 before *, from 2:3.10.3-3.el10_0.2 before *, from 0:2.1.1-5.el7_9.2 before *, from 2:2.11.7-3.el8_10 before *, from 2:2.0.0-46.rc4.el8_2.7 before *
CVE List

All scores

GitHub_M5.6medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
redhat-SADP7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-125CWE-758CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, global-buffer-overflow was observed in FreeRDP's Base64 decoding path. The root cause appears to be implementation-defined char signedness: on Arm/AArch64 builds, plain char is treated as unsigned, so the guard c <= 0 can be optimized into a simple c != 0 check. As a result, non-ASCII bytes (e.g., 0x80-0xFF) may bypass the intended range restriction and be used as an index into a global lookup table, causing out-of-bounds access. This vulnerability is fixed in 3.20.1.

NVD (es)

FreeRDP es una implementación gratuita del Protocolo de Escritorio Remoto. Antes de la versión 3.20.1, se observó un desbordamiento de búfer global en la ruta de decodificación Base64 de FreeRDP. La causa raíz parece ser la signatura de `char` definida por la implementación: en compilaciones Arm/AArch64, `char` simple se trata como sin signo, por lo que la guarda `c &lt;= 0` puede optimizarse en una simple verificación `c != 0`. Como resultado, los bytes no ASCII (por ejemplo, 0x80-0xFF) pueden eludir la restricción de rango prevista y usarse como un índice en una tabla de búsqueda global, causando acceso fuera de límites. Esta vulnerabilidad se corrigió en la versión 3.20.1.

References

https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-qmqf-m84q-x896exploit, vendor-advisory
https://github.com/FreeRDP/FreeRDP/releases/tag/3.20.1release-notes
https://access.redhat.com/security/cve/CVE-2026-22858vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2429649issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22858.json
https://access.redhat.com/errata/RHSA-2026:4471vendor-advisory
https://access.redhat.com/errata/RHSA-2026:4121vendor-advisory
https://access.redhat.com/errata/RHSA-2026:3068vendor-advisory
https://access.redhat.com/errata/RHSA-2026:19033vendor-advisory
https://access.redhat.com/errata/RHSA-2026:3334vendor-advisory
https://access.redhat.com/errata/RHSA-2026:4433vendor-advisory
https://access.redhat.com/errata/RHSA-2026:4439vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-22858 changed 2026-08-19CVE Terms of Use
NVDCVE-2026-22858 changed 2026-07-15Public domain