# JLSEC-2026-1195: GNU coreutils uniq is vulnerable to an out‑of‑bounds read due to incorrect handling of multibyte...

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-07T17:08:02.500Z
- Modified: 2026-08-07T17:28:41.384Z
- Related: CVE-2026-56391, EUVD-2026-48524, GHSA-7xvj-m9x7-qgxq

## Description

GNU coreutils uniq is vulnerable to an out‑of‑bounds read due to incorrect handling of multibyte input when the -w (--check-chars) option is used. The `find_field()` function miscalculates the byte length of characters by repeatedly processing a fixed pointer instead of advancing through the input, resulting in an inflated length value.
This incorrect length is later used in a memcmp operation, causing reads beyond the allocated buffer when processing crafted multibyte input.

When running GNU coreutils uniq with attacker-provided arguments, this behavior leads to a crash and potential adjacent heap memory exposure.

This issue has been fixed in the commit d64e35a8a4c0e4608321433e0d84d917e4e36371.

(As written by Julia Security Advisories.)

## Affected

- coreutils_jll (Julia): from 9.5.0+0

## References

- <https://cert.pl/en/posts/2026/07/CVE-2026-56391> (web)
- <https://git.savannah.gnu.org/cgit/coreutils.git> (web)
- <https://git.savannah.gnu.org/cgit/coreutils.git/> (web)
- <https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=d64e35a8a4c0e4608321433e0d84d917e4e36371> (web)
- <https://github.com/advisories/GHSA-7xvj-m9x7-qgxq> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56391> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1195](https://osv.dev/vulnerability/JLSEC-2026-1195), CC-BY-4.0, modified 2026-08-07

---

Page: https://cve.day/JLSEC-2026-1195 · Whole record: https://cve.day/JLSEC-2026-1195.json · Rebuilt by cve.day 2026-11-25T22:56:25.897Z
