CVE-2026-44042
JSON

3.7low

UltraVNC repeater wi_uudecode off-by-one in base64 decode boundary check

Severity
3.7low CVSS:3.1 by securin
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
securin

Description

UltraVNC repeater through 1.8.2.2 contains an off-by-one error in the Base64 decode helper used for HTTP Basic authentication. In repeater/webgui/webutils.c:817, the wi_uudecode() function checks whether the input length exceeds the output buffer with a strict greater-than comparison (>), while the correct check should be greater-than-or-equal (>=). When strlen(authdata) equals sizeof(decode), the decoded output length (approximately 3/4 of input) does not overflow the buffer in current practice because the outer HTTP request bounds constrain the Authorization header. However, the defective check leaves a latent off-by-one condition that could become exploitable if the buffering constraints change. The current risk is limited to a one-byte write at the boundary of a 1024-byte stack buffer under constrained conditions.

Affected

Product or packageVersionsReported by
uvnc UltraVNCup to 1.8.2.2CVE List, NVD

All scores

securin3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-193

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

What each source says

CVE List

UltraVNC repeater through 1.8.2.2 contains an off-by-one error in the Base64 decode helper used for HTTP Basic authentication. In repeater/webgui/webutils.c:817, the wi_uudecode() function checks whether the input length exceeds the output buffer with a strict greater-than comparison (>), while the correct check should be greater-than-or-equal (>=). When strlen(authdata) equals sizeof(decode), the decoded output length (approximately 3/4 of input) does not overflow the buffer in current practice because the outer HTTP request bounds constrain the Authorization header. However, the defective check leaves a latent off-by-one condition that could become exploitable if the buffering constraints change. The current risk is limited to a one-byte write at the boundary of a 1024-byte stack buffer under constrained conditions.

NVD (es)

El repetidor UltraVNC hasta la versión 1.8.2.2 contiene un error de ’off-by-one’ en el asistente de decodificación Base64 utilizado para la autenticación básica HTTP. En repeater/webgui/webutils.c:817, la función wi_uudecode() comprueba si la longitud de entrada excede el búfer de salida con una comparación estricta de ’mayor que’ (>), mientras que la comprobación correcta debería ser ’mayor o igual que’ (>=). Cuando strlen(authdata) es igual a sizeof(decode), la longitud de salida decodificada (aproximadamente 3/4 de la entrada) no desborda el búfer en la práctica actual porque los límites de la solicitud HTTP externa restringen el encabezado de autorización. Sin embargo, la comprobación defectuosa deja una condición latente de ’off-by-one’ que podría volverse explotable si cambian las restricciones de almacenamiento en búfer. El riesgo actual se limita a una escritura de un byte en el límite de un búfer de pila de 1024 bytes bajo condiciones restringidas.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-44042 changed 2026-07-09CVE Terms of Use
NVDCVE-2026-44042 changed 2026-10-25Public domain