{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-56391 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-56391 is a medium-severity memory corruption vulnerability in GNU coreutils, published on 24 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-56391 and fix it if it is affected.\n\nWhat it is: CVE-2026-56391 is a medium-severity memory corruption vulnerability in GNU coreutils, published on 24 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-56391 in the wild and no public exploit code.\n\nAffected product: GNU coreutils. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-56391/ (Markdown: https://insights.sbomify.com/CVE-2026-56391/index.md)","id":"CVE-2026-56391","markdown":"https://insights.sbomify.com/CVE-2026-56391/index.md","name":"CVE-2026-56391","record":{"aliases":["DEBIAN-CVE-2026-56391","ECHO-3699-27c7-123e","GHSA-7xvj-m9x7-qgxq","JLSEC-2026-1195","MGASA-2026-0439","RHSA-2026:46515","SUSE-SU-2026:24268-1","UBUNTU-CVE-2026-56391","openSUSE-SU-2026:22147-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["denial_of_service","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GNU coreutils","requires_auth":"none","summary":"An out-of-bounds read in GNU coreutils uniq allows attackers to cause crashes or expose heap memory via crafted multibyte input.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CERT-PL","cpe":[{"product":"coreutils","vendor":"gnu"}],"cvss":{"score":4.6,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"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. \nThis incorrect length is later used in a memcmp operation, causing reads beyond the allocated buffer when processing crafted multibyte input.\n\nWhen running GNU coreutils uniq with attacker-provided arguments, this behavior leads to a crash and potential adjacent heap memory exposure.\n\nThis issue has been fixed in the commit d64e35a8a4c0e4608321433e0d84d917e4e36371.","ecosystems":["Red Hat:hummingbird:1","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP applications 16.0","openSUSE:Leap 16.0"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Out‑of‑bounds Read in GNU coreutils","id":"CVE-2026-56391","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":13,"n_references":3,"next":{"headline":"Heap-based Buffer Overflow in GNU coreutils","id":"CVE-2026-56392"},"packages":[{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:9.11-5.1.hum1"],"introduced":["0"],"last_affected":[],"package":"coreutils","purl":"pkg:rpm/redhat/coreutils","source":"RHSA-2026:46515"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:9.11-5.1.hum1"],"introduced":["0"],"last_affected":[],"package":"coreutils-common","purl":"pkg:rpm/redhat/coreutils-common","source":"RHSA-2026:46515"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:9.11-5.1.hum1"],"introduced":["0"],"last_affected":[],"package":"coreutils-single","purl":"pkg:rpm/redhat/coreutils-single","source":"RHSA-2026:46515"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils","purl":"pkg:rpm/suse/coreutils\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:24268-1"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils-single","purl":"pkg:rpm/suse/coreutils-single\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:24268-1"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils-systemd","purl":"pkg:rpm/suse/coreutils-systemd\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:24268-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils","purl":"pkg:rpm/suse/coreutils\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:24268-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils-single","purl":"pkg:rpm/suse/coreutils-single\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:24268-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils-systemd","purl":"pkg:rpm/suse/coreutils-systemd\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:24268-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils","purl":"pkg:rpm/opensuse/coreutils\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:22147-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils-single","purl":"pkg:rpm/opensuse/coreutils-single\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:22147-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils-systemd","purl":"pkg:rpm/opensuse/coreutils-systemd\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:22147-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["9.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"coreutils-testsuite","purl":"pkg:rpm/opensuse/coreutils-testsuite\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:22147-1"}],"prev":{"headline":"Arbitrary Output Location Change in GNU Bison","id":"CVE-2026-56390"},"products":["coreutils"],"published":"2026-07-24","related":[{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2015-4042","kev_date_added":null,"published":"2020-01-24"},{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2015-4041","kev_date_added":null,"published":"2020-01-24"},{"cvss_score":7.1,"headline":"Race condition in n/a","id":"CVE-2017-18018","kev_date_added":null,"published":"2018-01-04"},{"cvss_score":5.5,"headline":"Coreutils: heap overflow in split --line-bytes with very long lines","id":"CVE-2024-0684","kev_date_added":null,"published":"2024-02-06"},{"cvss_score":5.1,"headline":"Race condition in n/a","id":"CVE-2015-1865","kev_date_added":null,"published":"2017-09-20"},{"cvss_score":4.6,"headline":"Privilege escalation in n/a","id":"CVE-2016-2781","kev_date_added":null,"published":"2017-02-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-24","vendors":["GNU"]},"summary":"An out-of-bounds read in GNU coreutils uniq allows attackers to cause crashes or expose heap memory via crafted multibyte input.","url":"https://insights.sbomify.com/CVE-2026-56391/"}