CVE-2026-77117
SHIFT_JISX0213 decoding may hang on crafted input
- Severity
- medium CVSS 5.9 (v3.1)
- Affects
- glibc · The GNU C Library
- Weakness
- CWE-835 Loop with unreachable exit condition ('infinite loop')
- Published
- 15 September 2026 by glibc
- First seen on our lists
- 21 August 2026
Converting crafted SHIFT_JISX0213 input to UCS-4 or the internal wide character encoding, for example with iconv, in the GNU C Library version 2.3 to 2.44 may result in the converter making no progress, causing the calling application to hang.
Some SHIFT_JISX0213 sequences decode to two code points. If the output buffer has room for only the first one, the converter stores the second in the conversion state and returns E2BIG, but it never clears that pending character after emitting it on the next call. The converter then keeps emitting the pending character without consuming further input, so an application that retries the conversion loops forever. The input must be attacker controlled and the application must convert it with an output buffer small enough to split the two code points. Only the SHIFT_JISX0213 character set is affected, which is not commonly used. The related defect in the EUC_JISX0213 converter is tracked separately as CVE-2026-80489.
Our coverage
- glibc SHIFT_JISX0213 iconv hang fixed as CVE-2026-77117
- glibc plugs SHIFT_JISX0213 iconv hang (CVE-2026-77117)
On the lists
- [oss-security] The GNU C Library security advisories update for 2026-09-14
- [COMMITTED] Publish CVE-2026-80489 advisory
- [COMMITTED] Publish CVE-2026-77117 advisory
- [PATCH v3 1/3] iconvdata: SHIFT_JISX0213 decoding lacks pending character reset (CVE-2026-77117)
- Monday Patch Queue Review update (2026-08-24)
- [PATCH v2 1/2] iconvdata: JISX0213 decoding lacks pending character reset (CVE-2026-77117)
- [PATCH 1/2] iconvdata: SHIFT_JISX0213 lacks pending character reset (CVE-2026-77117)