CVE-2026-44042

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:uvnc:ultravnc:*:*:*:*:*:*:*:*

History

25 Oct 2026, 17:10

Type Values Removed Values Added
Summary
  • (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.

Information

Published : 2026-07-01 05:16

Updated : 2026-10-25 17:10


NVD link : CVE-2026-44042

Mitre link : CVE-2026-44042

CVE.ORG link : CVE-2026-44042


JSON object : View

Products Affected

uvnc

  • ultravnc
CWE
CWE-193

Off-by-one Error