CVE-2026-58082 Stack based buffer overflow in iconv(3)
A stack buffer overflow in the FreeBSD iconv library allows attackers to execute arbitrary code or cause denial of service via crafted ISO-2022 encoded input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-58082?
CVE-2026-58082 is a critical memory corruption vulnerability in Freebsd Freebsd, published on 19 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-121
Which versions are affected by CVE-2026-58082?
It affects 1 product.
Products include Freebsd Freebsd.
How do I fix CVE-2026-58082?
No fix has been published for CVE-2026-58082 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-58082 being exploited?
There is no known exploitation of CVE-2026-58082 in the wild and no public exploit code.
Other vulnerabilities in Freebsd Freebsd
Sources
Also known as GHSA-r57r-q66w-6qxq.