Skip to main content

FreeBSD CVE-2026-58082

| EUVDEUVD-2026-62349 CRITICAL
Stack-based Buffer Overflow (CWE-121)
2026-08-19 freebsd GHSA-r57r-q66w-6qxq
9.8
CVSS 3.1 · Vendor: freebsd
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach app that calls iconv
  2. Delivery
    Submit crafted ISO-2022 input
  3. Exploit
    Oversized multibyte output overflows stack buffer
  4. Execution
    Corrupt adjacent stack frame
  5. Impact
    Crash 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

FreeBSD 14.3-RELEASE <p16
FreeBSD 14.4-RELEASE <p7
FreeBSD 15.0-RELEASE <p11
FreeBSD 15.1-RELEASE <p1

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

Vendor (freebsd) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (freebsd).

CVSS VectorVendor: freebsd

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Aug 26, 2026 - 20:23 NVD
9.8 (CRITICAL)
CVE Published
Aug 19, 2026 - 07:20 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 19, 2026 - 07:20 cve.org
CRITICAL 9.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
FreeBSD widely used in servers and network appliances, not ubiquitous like Linux
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2012-0217 HIGH POC
7.2 Jun 12

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

CVE-2025-14558 HIGH POC
7.2 Mar 09

The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess

CVE-2020-1967 HIGH POC
7.5 Apr 21

Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due

CVE-2013-4854 HIGH POC
7.8 Jul 29

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

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2013-2171 MEDIUM POC
6.9 Jul 02

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

CVE-2021-3449 MEDIUM
5.9 Mar 25

An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med

CVE-2016-5766 HIGH POC
8.8 Aug 07

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used

CVE-2016-1879 HIGH POC
7.5 Jan 29

The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w

CVE-2020-7457 HIGH POC
8.1 Jul 09

In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy