CVE-2026-58082
JSON

9.8critical

Stack based buffer overflow in iconv(3)

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.36% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
freebsd

Description

The ISO-2022 encoding module used a stack buffer sized to MB_LEN_MAX (6 bytes) for intermediate character output. Some ISO-2022 variants can require up to 10 bytes per character, in which case conversions can trigger a stack buffer overflow of up to four bytes. An application that uses iconv(3) to convert untrusted input to or from one of the affected encodings may be vulnerable to buffer overflows if it uses one of the affected encoding modules.

Affected

Product or packageVersionsReported by
FreeBSD FreeBSDfrom 15.1-RELEASE before p1, from 15.0-RELEASE before p11, from 14.4-RELEASE before p7, from 14.3-RELEASE before p16, 14.3, 14.4, 15.0, 15.1CVE List, NVD

Classification

CWE-121

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

The ISO-2022 encoding module used a stack buffer sized to MB_LEN_MAX (6 bytes) for intermediate character output. Some ISO-2022 variants can require up to 10 bytes per character, in which case conversions can trigger a stack buffer overflow of up to four bytes. An application that uses iconv(3) to convert untrusted input to or from one of the affected encodings may be vulnerable to buffer overflows if it uses one of the affected encoding modules.

NVD (es)

El módulo de codificación ISO-2022 utilizó un búfer de pila dimensionado a MB_LEN_MAX (6 bytes) para la salida de caracteres intermedios. Algunas variantes de ISO-2022 pueden requerir hasta 10 bytes por carácter, en cuyo caso las conversiones pueden desencadenar un desbordamiento de búfer de pila de hasta cuatro bytes. Una aplicación que utiliza iconv(3) para convertir entrada no confiable a o desde una de las codificaciones afectadas puede ser vulnerable a desbordamientos de búfer si utiliza uno de los módulos de codificación afectados.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58082 changed 2026-08-26CVE Terms of Use
NVDCVE-2026-58082 changed 2026-10-27Public domain