The ISO-2022 encoding module used a stack buffer sized to MB_LEN_MAX (6 bytes) for intermediate character output. (CVE-2026-58082)
Description
A stack buffer overflow vulnerability exists in the ISO-2022 encoding module used by iconv(3). The module allocates a stack buffer sized to MB_LEN_MAX (6 bytes) for intermediate character output, but some ISO-2022 variants require up to 10 bytes per character. This mismatch can cause a buffer overflow of up to four bytes during character conversion. Applications using iconv(3) to convert untrusted input with affected encodings may be vulnerable.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The ISO-2022 encoding module in iconv(3) uses a fixed-size stack buffer of 6 bytes (MB_LEN_MAX) for intermediate character output. Certain ISO-2022 encoding variants can require up to 10 bytes per character, which exceeds the buffer size and can lead to a stack buffer overflow of up to four bytes. This vulnerability affects applications that convert untrusted input to or from these ISO-2022 variants using iconv(3). No CVSS score or patch information is provided.
Potential Impact
A stack buffer overflow can lead to memory corruption, potentially causing application crashes or enabling code execution depending on the context and exploitability. Since the vulnerability arises during conversion of untrusted input, affected applications may be exposed to denial of service or other memory corruption impacts. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted input with the affected ISO-2022 encoding variants using iconv(3), or implement input validation and sanitization to reduce risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-r57r-q66w-6qxq
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58082"]
Threat ID: 6a85b4a4acd9273b492507a5
Added to database: 08/19/2026, 13:50:28 UTC
Last enriched: 08/19/2026, 13:58:27 UTC
Last updated: 10/04/2026, 10:02:28 UTC
Views: 27
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.