Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach app that calls iconv
-
DeliverySubmit crafted ISO-2022 input
-
ExploitOversized multibyte output overflows stack buffer
-
ExecutionCorrupt adjacent stack frame
-
ImpactCrash service or hijack control flow
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an application on an affected FreeBSD release that calls iconv(3) to convert attacker-controlled input to or from one of the affected ISO-2022 encoding variants (the ones that can emit up to 10 bytes per character); the overflow only triggers on that specific encoding path. Limiting factors: the target application must actually invoke iconv on untrusted data with an affected charset (many applications default to UTF-8 and never touch ISO-2022), and the write is bounded to four bytes past the buffer, which limits reliable code execution relative to the 9.8 base score. No authentication is required at the library level (CVSS PR:N), but reachability depends entirely on the calling application's exposure and configuration rather than a network service listening by default. |
| Impact | The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, base 9.8) treats this as trivially remote and unauthenticated, but that scoring reflects the worst case for an application that feeds attacker-controlled data straight through iconv into an affected ISO-2022 encoding - it is a library primitive, not a directly network-listening service, so real exposure is entirely a function of how a given application calls iconv. The overflow is bounded to four bytes, which meaningfully constrains reliable arbitrary code execution and makes a crash/denial-of-service or limited adjacent-stack corruption the more probable outcome, so I assess exploitability as harder than AC:L implies. Corroborating signals point to lower urgency than the 9.8 suggests: EPSS is 0.21% (12th percentile), the CVE is not in CISA KEV, and no proof-of-concept is referenced. That said, iconv sits under many mail, web, and text-processing stacks, so an operator running FreeBSD-based services that transcode untrusted user input - even a mid-sized shop with only a handful of internet-facing FreeBSD hosts should treat patching as routine-but-prompt - has a plausible DoS exposure. Net: a genuinely high-severity memory-safety bug worth patching in the normal cycle, but the combination of a 4-byte bound, low EPSS, and no known exploitation argues against emergency out-of-band response for most environments. |
| Exploit ScenarioDerived | An attacker submits crafted text - for example an email header, HTTP body, or filename declared in an affected ISO-2022 charset - to a FreeBSD-hosted service that calls iconv(3) to transcode it. The conversion emits a longer-than-expected multibyte sequence, writing up to four bytes past the fixed stack buffer, most plausibly crashing the worker process (DoS) and, depending on stack layout and compiler mitigations, potentially corrupting adjacent stack data. No public exploit is currently known. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 26, 2026
Stack buffer overflow in the FreeBSD iconv(3) ISO-2022 encoding modules allows a 4-byte out-of-bounds write when converting untrusted text to or from certain ISO-2022 variants. The affected code sizes an intermediate output buffer to MB_LEN_MAX (6 bytes), but some ISO-2022 variants emit up to 10 bytes per character, overflowing the stack. It affects FreeBSD 14.3, 14.4, 15.0, and 15.1 release branches before the fixed patch levels; there is no public exploit identified at time of analysis, it is not in CISA KEV, and EPSS is low (0.21%).
RemediationAI
Apply the FreeBSD security patch bringing systems to the fixed patch levels: 14.3-RELEASE-p16, 14.4-RELEASE-p7, 15.0-RELEASE-p11, or 15.1-RELEASE-p1 (Vendor-released patch), via freebsd-update or by rebuilding libc from the branch, per FreeBSD-SA-26:49.iconv (https://security.freebsd.org/advisories/FreeBSD-SA-26:49.iconv.asc); note that because the fix is in libc, long-running services should be restarted (or the host rebooted) so processes pick up the patched library. Where immediate patching is not possible, the practical compensating control is to avoid the affected code path: configure applications so untrusted input is not transcoded to or from ISO-2022 variants (for example, constrain accepted/negotiated charsets to UTF-8 and reject ISO-2022-JP/-KR/-CN in mail and web handlers), accepting the trade-off that legitimate ISO-2022 content will then be rejected or mishandled. Validate or length-limit input charset handling at the application boundary as an additional guard.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in the character-set conversion machinery exposed through iconv(3) in the FreeBSD C library. iconv converts byte sequences between encodings; the ISO-2022 family (e.g., ISO-2022-JP/-KR/-CN) uses escape sequences and shift states, so a single logical character can expand to a long multibyte sequence on output. The vulnerable module allocated a fixed intermediate stack buffer of MB_LEN_MAX (6 bytes), the platform's constant for the maximum bytes in a single multibyte character, but specific ISO-2022 variants can legitimately require up to 10 bytes, producing a write up to 4 bytes past the buffer. This is CWE-121 (stack-based buffer overflow): the root cause is an undersized fixed-length stack buffer whose bound does not account for the true worst-case per-character output length of the encoding.
Know when Freebsd gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AC:H because exploitation depends on the calling app transcoding untrusted input via an affected ISO-2022 variant and a 4-byte bound complicates control; PR:N/UI:N as the library itself needs no auth.
Primary rating from Vendor (freebsd).
CVSS VectorVendor: freebsd
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
A critical stack buffer overflow in FreeBSD's iconv character encoding conversion function (CVSS 9.8) affects FreeBSD 14.3, 14.4, 15.0, and 15.1 with no vendor patch currently available. The vulnerability could enable remote code execution on systems processing untrusted character encoding data, creating significant risk for any infrastructure running these affected FreeBSD versions.
No vendor-released patch identified at time of analysis. Interim mitigations include: (1) network segmentation to restrict access to affected FreeBSD systems, (2) disabling or isolating iconv(3) functionality where operationally feasible, (3) restricting or filtering untrusted character encoding conversion operations at application or network boundaries, and (4) migrating affected systems to unaffected FreeBSD versions or alternative operating systems.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and
The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess
Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due
The RFC 5011 implementation in rdata.c in ISC BIND 9.7.x and 9.8.x before 9.8.5-P2, 9.8.6b1, 9.9.x before 9.9.3-P2, and
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEAS
An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used
The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w
In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1
EUVD-2026-62349
GHSA-r57r-q66w-6qxq
NVD
CVE.org
EPSS
Exploit-DB