CVE-2025-26519 is an out-of-bounds write in the iconv() function of musl libc 0.9.13 through 1.2.5, reached when an application converts untrusted EUC-KR text to UTF-8, typically using a charset declared in XML, HTML or email. NVD scores it 7.0 and MITRE 8.1. musl 1.2.6 and two advisory patches fix it; static binaries need rebuilding.
Vulnerability summary
CVSS base score
7
High severity
EPSS score (FIRST)
0.3%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2025-26519 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| musl libc (iconv, EUC-KR to UTF-8) | cpe:2.3:a:musl-libc:musl:*:*:*:*:*:*:*:* | 0.9.13 up to (excluding) 1.2.6 (NVD); fixed in 1.2.6 (2026-03-20) and by commits e5adcd97 and c47ad25e |
| Alpine Linux musl package | pkg:apk/alpine/musl | fixed in 1.2.4-r3 (3.18), 1.2.4_git20230717-r5 (3.19), 1.2.5-r1 (3.20), 1.2.5-r9 (3.21), 1.2.5-r10 (3.22); master on 1.2.6 (aports secfixes, as of 2026-11-20) |
| Debian musl package | pkg:deb/debian/musl | unstable fixed in 1.2.5-2; trixie 1.2.5-3.1~deb13u1 fixed; bookworm 1.2.3-1 vulnerable (no-dsa); bullseye postponed (Debian security tracker, as of 2026-11-20) |
| Buildroot package/musl | — | patched in 2024.02.11 and 2024.11.2 (2025-02-21) and 2025.02 onward; musl 1.2.6 from 2025.02.13 and 2026.02.1 (2026-04-21) |
| OpenWrt toolchain/musl | — | main on 1.2.6; openwrt-24.10 and openwrt-25.12 on 1.2.5 without the patches, with EUC-KR compiled out by 900-iconv_size_hack.patch unless FULL_ICONV is defined (as of 2026-11-20) |
| Yocto Project poky meta/recipes-core/musl | — | kirkstone (1.2.3+git) and scarthgap (1.2.4+git) with CVE-2025-26519-1/-2 backports; walnascar pins commit c47ad25e; openembedded-core master on 1.2.6 (as of 2026-11-20) |
What does this mean for affected devices?
NVD's description: "musl libc 0.9.13 through 1.2.5 before 1.2.6 has an out-of-bounds write vulnerability when an attacker can trigger iconv conversion of untrusted EUC-KR text to UTF-8." musl is the C library of Alpine Linux and OpenWrt and a C library option in Buildroot and Yocto builds, and it is often linked statically into single binaries. The record was published on 2025-02-14 (NVD, CVE record).
What did the musl advisory say?
Rich Felker announced it on 2025-02-13 on the musl list, copied to oss-security, crediting Nick Wellnhofer with the report. To be exposed, an application must open an iconv conversion from EUC-KR to UTF-8 and then "process untrusted input using the resulting conversion descriptor". The common case is "using the declared MIME charset of untrusted input (for example, in XML, HTML, or MIME-encoded email)" as the source encoding. The code dates from musl 0.9.13, when EUC-KR support was added.
Two commits fix it. Commit e5adcd97 corrects the lead-byte bounds check in the EUC-KR decoder: invalid input such as \xc8\x41 produced out-of-bounds loads from the KS C 5601 table, and if the loaded value was not a valid Unicode scalar value, the UTF-8 encoder returned (size_t)-1, "causing an overflow in the output pointer and remaining buffer size". Commit c47ad25e hardens the UTF-8 output path so a decoder bug cannot move the pointer outside the buffer. The advisory shipped both as patches that apply to all affected versions. The musl release history shows musl 1.2.6, released March 20, 2026, as the first release that includes the fix.
How severe is CVE-2025-26519?
NVD's Primary score is CVSS v3.1 7.0 (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H). MITRE's CNA score is 8.1 with a changed scope (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:L). The CWE is CWE-787 (out-of-bounds write), from MITRE. CISA's SSVC entry in the record gives exploitation none, automatable no, technical impact total. NVD's CPE range is musl 0.9.13 up to (excluding) 1.2.6.
On a device the question is reachability: a web interface, mail or XML component, or anything else that passes an attacker-supplied charset name to iconv_open(). A firmware image that never converts from EUC-KR does not reach the bug.
Which firmware builds carry it?
No device vendor or CISA advisory names products for this CVE as of 2026-11-20 that we could find. Distribution and build-system status, as of 2026-11-20:
- Alpine added the patch in each maintained branch: musl 1.2.4-r3 (3.18), 1.2.4_git20230717-r5 (3.19), 1.2.5-r1 (3.20), 1.2.5-r9 (3.21) and 1.2.5-r10 (3.22), per the aports APKBUILD secfixes; master is on 1.2.6.
- Debian's musl package is fixed in unstable from 1.2.5-2 and in trixie (1.2.5-3.1~deb13u1); bookworm (1.2.3-1) is vulnerable and marked no-dsa as a minor issue (Debian security tracker).
- Buildroot added both patches to musl 1.2.5 and 1.2.4 in 2024.11.2 and 2024.02.11 (released 2025-02-21) and 2025.02, and moved to musl 1.2.6 in 2025.02.13 and 2026.02.1 (released 2026-04-21). External toolchains carry their own musl and need a separate check.
- OpenWrt main builds musl 1.2.6. The openwrt-24.10 and openwrt-25.12 branches build musl 1.2.5 without the advisory patches, but OpenWrt's 900-iconv_size_hack.patch wraps the EUC-KR charset names and decoder in
#ifdef FULL_ICONV, and we found no definition ofFULL_ICONVelsewhere in either tree, so standard OpenWrt builds compile the EUC-KR path out. - Yocto Project: poky kirkstone (musl 1.2.3+git) and scarthgap (1.2.4+git) apply CVE-2025-26519-1 and -2 backports; walnascar pins commit c47ad25e itself; openembedded-core master is on 1.2.6.
How do you fix CVE-2025-26519?
Move to musl 1.2.6 or apply the two advisory patches, then rebuild every statically linked binary, because each carries its own copy of iconv. For a static binary that cannot be relinked, the advisory describes overwriting the byte sequence euckr\0ksc5601\0ksx1001\0cp949\0 so that EUC-KR becomes unmatchable; treat that as a stopgap. The release history also lists CVE-2026-40200 (qsort on 32-bit) and CVE-2026-6042 (iconv GB18030 slowness) as affecting versions through 1.2.6, so 1.2.6 alone is not the end point. Our C library vulnerabilities guide covers identifying musl in an image and triaging libc CVEs; glibc examples on this site include CVE-2023-4911, CVE-2023-6246 and CVE-2015-7547.
Is CVE-2025-26519 exploited?
It is not in the CISA KEV catalog as of 2026-11-20 (catalog version 2026.11.18, 1,786 entries). FIRST EPSS gives it 0.00349, the 29.2nd percentile, in the 2026-11-19 dataset (CISA KEV, FIRST EPSS).
Evidence
- NVD (read 2026-11-20): status Analyzed; published 2025-02-14T04:15:09.050; NVD Primary CVSS v3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H; MITRE Secondary 8.1 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:L; CWE-787 (MITRE); CISA Coordinator SSVC exploitation none, automatable no, technical impact total; CPE musl-libc:musl from 0.9.13 up to (excluding) 1.2.6. — NVD
- CVE record (checked 2026-11-20): state PUBLISHED, CNA MITRE, published 2025-02-14; CNA CVSS v3.1 8.1; CWE-787. — CVE.org
- Rich Felker, musl list, 2025-02-13 (read 2026-11-20): exposure requires iconv_open with UTF-8 output and EUC-KR input on untrusted data, commonly a declared MIME charset from XML, HTML or email; reported by Nick Wellnhofer; affects 0.9.13 through 1.2.5; two source patches; static-binary workaround by overwriting the EUC-KR charset names. Same text on oss-security 2025/02/13/2. — musl / Openwall
- musl commits e5adcd97 (2025-02-09, 'iconv: fix erroneous input validation in EUC-KR decoder') and c47ad25e (2025-02-12, 'iconv: harden UTF-8 output code path against input decoder bugs'), read 2026-11-20. — musl git
- musl release history (read 2026-11-20): musl 1.2.6 released March 20, 2026, 'includes the fix for CVE-2025-26519 affecting iconv that was previously only available as patches'; CVE-2026-40200 and CVE-2026-6042 listed as affecting versions through 1.2.6. — musl
- Alpine aports main/musl/APKBUILD secfixes (read 2026-11-20): CVE-2025-26519 fixed in 1.2.4-r3 (3.18-stable), 1.2.4_git20230717-r5 (3.19-stable), 1.2.5-r1 (3.20-stable), 1.2.5-r9 (3.21-stable), 1.2.5-r10 (3.22-stable); master pkgver 1.2.6. — Alpine Linux aports
- Debian security tracker (read 2026-11-20): unstable fixed in 1.2.5-2 (bug 1098238); trixie 1.2.5-3.1~deb13u1 fixed; forky/sid 1.2.6-2; bookworm 1.2.3-1 vulnerable, no-dsa (minor issue); bullseye postponed. — Debian
- Buildroot (read 2026-11-20): package/musl/musl.mk sets MUSL_IGNORE_CVES += CVE-2025-26519 with patches 0004/0005 in tags 2024.02.11, 2024.11.2, 2025.02-rc1, 2025.02 and 2026.02 (absent in 2024.02.10, 2024.11.1); MUSL_VERSION 1.2.6 in 2025.02.13, 2026.02.1 and 2026.05. CHANGES: 2024.02.11 and 2024.11.2 released February 21st, 2025; 2025.02 March 17th, 2025; 2025.02.13 and 2026.02.1 April 21, 2026, both listing 'musl: CVE-2025-26519'. — Buildroot
- OpenWrt (read 2026-11-20): toolchain/musl/common.mk PKG_VERSION 1.2.6 on main, 1.2.5 on openwrt-24.10 and openwrt-25.12, 1.2.4 on openwrt-23.05; no CVE-2025-26519 patch in the 24.10/25.12 patch lists; 900-iconv_size_hack.patch puts the euckr charset names and the KSC table and decoder under #ifdef FULL_ICONV; grep of openwrt-24.10 (34fa4b1a) and main (8b34d628) finds FULL_ICONV only in that patch. — OpenWrt
- Yocto poky (read 2026-11-20): kirkstone musl_git.bb BASEVER 1.2.3 with CVE-2025-26519-1.patch (backport of e5adcd97) and CVE-2025-26519-2.patch; scarthgap BASEVER 1.2.4 with the same two patches; walnascar SRCREV c47ad25e, BASEVER 1.2.5; openembedded-core master BASEVER 1.2.6. — Yocto Project poky
- Not in the CISA KEV catalog, version 2026.11.18 (1,786 entries), checked 2026-11-20. — CISA KEV
- EPSS 0.00349, percentile 0.29161, dataset 2026-11-19, read 2026-11-20. — FIRST EPSS

Related advisories
Sources
- NVD
- Rich Felker, musl list, 2025-02-13: CVE-2025-26519 iconv out-of-bounds write
- oss-security copy of the musl advisory
- musl commit e5adcd97: iconv: fix erroneous input validation in EUC-KR decoder
- musl commit c47ad25e: iconv: harden UTF-8 output code path against input decoder bugs
- musl libc release history and security advisories
- Alpine aports 3.21-stable main/musl/APKBUILD (secfixes)
- Debian security tracker: CVE-2025-26519
- Buildroot 2024.11.2 package/musl/musl.mk
- OpenWrt openwrt-24.10 toolchain/musl/patches
- Yocto Project poky (kirkstone): musl_git.bb with CVE-2025-26519 patches
- CVE.org record CVE-2025-26519 (CNA: MITRE)
- CISA KEV
- FIRST EPSS
Frequently asked questions
Which musl version fixes CVE-2025-26519?
musl 1.2.6, released 2026-03-20, is the first release with the fix. Before that, the fix was two patches published with the advisory on 2025-02-13 (commits e5adcd97 and c47ad25e), which apply to every affected version, so a patched 1.2.5 or older is fixed even though its version number is in range.
Who is exposed to CVE-2025-26519?
Only programs that open an iconv conversion from EUC-KR to UTF-8 and feed it untrusted input. The advisory names the typical case: taking the charset declared in XML, HTML or MIME email and passing it to iconv_open. Programs that never call iconv, or only use fixed charsets, do not reach the bug.
Are Buildroot, Yocto and OpenWrt builds affected?
As of 2026-11-20, Buildroot carries the patches from 2024.02.11, 2024.11.2 and 2025.02 and musl 1.2.6 from 2025.02.13 and 2026.02.1. Yocto kirkstone and scarthgap carry backports. OpenWrt 24.10 and 25.12 ship unpatched musl 1.2.5 but compile EUC-KR out of iconv; OpenWrt main is on 1.2.6.
What about statically linked binaries?
Each static binary has its own iconv code, so updating the shared libc does not fix it. Rebuild them against a fixed musl. For a binary that cannot be relinked, the advisory's stopgap is to overwrite the EUC-KR charset names in the binary so iconv_open can no longer select that decoder.
Is CVE-2025-26519 exploited in the wild?
It is not in the CISA KEV catalog as of 2026-11-20 (catalog version 2026.11.18). FIRST EPSS gives it 0.00349, the 29.2nd percentile, in the 2026-11-19 dataset, and CISA's SSVC entry records exploitation as none.
Questions about this page?