Description
Several encoding modules, including HZ, UTF-7, VIQR, and ZW, did not properly check the size of the caller-supplied output buffer before writing converted characters.

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

The vulnerability is a heap‑based buffer overflow that occurs when iconv(3) processes untrusted input with certain encodings—HZ, UTF‑7, VIQR, or ZW—without verifying that the caller’s output buffer is large enough to hold the converted data. An attacker can supply specially crafted data that causes iconv to write beyond the bounds of the allocated buffer, corrupting adjacent heap objects. If the overflow can be controlled, the attacker may gain arbitrary code execution or trigger a denial‑of‑service by causing the affected application to crash.

Affected Systems

The flaw resides in the FreeBSD operating system’s core C library iconv implementation. Any FreeBSD installation that has not installed the security update referenced in the advisory remains vulnerable whenever an application invokes iconv with one of the affected encodings. No specific product versions are listed, so all current releases that include the vulnerable code are potentially affected.

Risk and Exploitability

The EPSS score is reported as less than 1 %, and the vulnerability is not cataloged in CISA’s KEV list, suggesting that widespread exploitation is currently uncommon. Nonetheless, the typical attack path involves an adversary supplying poisoned input—either over a network to a service that uses iconv or locally to a program that processes untrusted files. Because the flaw is a classic heap buffer overflow (CWE‑122) and no patch is publicly available in the provided data, exploitability hinges on the presence of the affected encodings; disabling them or applying a vendor patch would eliminate the risk.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the FreeBSD security update that patches the iconv modules.
  • Restrict or disable the use of the affected encodings (HZ, UTF‑7, VIQR, ZW) in applications handling untrusted data.
  • Add input‑size checks or validate data before passing it to iconv(3) if the application cannot be updated immediately.

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 Several encoding modules, including HZ, UTF-7, VIQR, and ZW, did not properly check the size of the caller-supplied output buffer before writing converted characters. 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 Heap based buffer overflow in iconv(3)
Weaknesses CWE-122
References

cve-icon MITRE

Status: PUBLISHED

Assigner: freebsd

Published:

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

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

Link: CVE-2026-58081

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-58081

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow