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.
Published: 2026-08-19
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A stack buffer overflow occurs in the ISO-2022 encoding module of FreeBSD's iconv(3). The module allocates a 6‑byte buffer, but some ISO‑2022 variants need up to 10 bytes per character, allowing an overflow of up to four bytes. Because the overflow happens while converting untrusted input, a malicious user can overwrite the return address or other critical stack data, potentially enabling arbitrary code execution in the context of the process that performs the conversion. This is a classic stack buffer overflow vulnerability (CWE‑121).

Affected Systems

FreeBSD operating systems that include the affected iconv(3) implementation. The vulnerability is present in the ISO‑2022 encoding module. Specific version ranges are not listed in the advisory, so any installation that has not applied the recent patch or upgrade is potentially affected. Applications that invoke iconv(3) to convert data from or to the affected ISO‑2022 variants are also at risk.

Risk and Exploitability

The EPSS score is below 1 % and the vulnerability is not listed in CISA’s KEV catalog, indicating a very low probability of current exploitation. Exploitation requires that an attacker can supply crafted input to a program that uses the affected iconv module. If the application runs with elevated privileges or exposes the conversion function over a network, the impact grows from local to remote code execution. The advisory does not mention any public exploit.

Generated by OpenCVE AI on August 19, 2026 at 19:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade FreeBSD to the latest released version that includes the iconv(3) fix, as recommended in the FreeBSD Security Advisory.
  • Restrict use of the ISO‑2022 encoding modules to trusted data only; if possible, remove or disable these encodings for untrusted conversions.
  • Validate and/or sanitize all input before passing it to iconv(3); consider using a safe wrapper that allocates a sufficiently large buffer or checks the maximum output size beforehand.

Generated by OpenCVE AI on August 19, 2026 at 19:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
First Time appeared Freebsd
Freebsd freebsd
Vendors & Products Freebsd
Freebsd freebsd

Wed, 19 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
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.
Title Stack based buffer overflow in iconv(3)
Weaknesses CWE-121
References

cve-icon MITRE

Status: PUBLISHED

Assigner: freebsd

Published:

Updated: 2026-08-19T07:20:37.172Z

Reserved: 2026-06-29T01:40:17.498Z

Link: CVE-2026-58082

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-19T08:17:12.370

Modified: 2026-08-19T08:17:12.370

Link: CVE-2026-58082

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-19T20:00:05Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow