# CVE-2026-56391: Out‑of‑bounds Read in GNU coreutils

- Severity: Medium 4.6 (CVSS:4.0, scored by CERT-PL) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-24T07:44:45.581Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CERT-PL

## 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 CVE List.)

## Affected

- GNU coreutils: from 9.5 up to 9.11

## Every score

- CERT-PL: CVSS:4.0 4.6 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`

## References

- <https://cert.pl/en/posts/2026/07/CVE-2026-56391> (third-party-advisory)
- <https://git.savannah.gnu.org/cgit/coreutils.git/> (product)
- <https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=d64e35a8a4c0e4608321433e0d84d917e4e36371> (patch)

## Sources

- CVE List: [CVE-2026-56391](https://www.cve.org/CVERecord?id=CVE-2026-56391), CVE Terms of Use, modified 2026-07-24
- NVD: [CVE-2026-56391](https://nvd.nist.gov/vuln/detail/CVE-2026-56391), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-56391 · Whole record: https://cve.day/CVE-2026-56391.json · Rebuilt by cve.day 2026-11-25T22:59:29.981Z
