{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-56288 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-56288 is a medium-severity vulnerability in GNU patch, published on 9 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-56288 and fix it if it is affected.\n\nWhat it is: CVE-2026-56288 is a medium-severity vulnerability in GNU patch, published on 9 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-56288 in the wild and no public exploit code.\n\nAffected product: GNU patch. 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-56288/ (Markdown: https://insights.sbomify.com/CVE-2026-56288/index.md)","id":"CVE-2026-56288","markdown":"https://insights.sbomify.com/CVE-2026-56288/index.md","name":"CVE-2026-56288","record":{"aliases":["AZL-92154","DEBIAN-CVE-2026-56288","ECHO-4701-db72-1af3","GHSA-m3j2-9m66-r96h","JLSEC-2026-1260","RHSA-2026:38019","UBUNTU-CVE-2026-56288"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GNU patch utility","requires_auth":"none","summary":"An attacker can cause a denial of service in GNU patch by providing a specially crafted unified-diff file that triggers a NULL pointer dereference.","user_interaction":"required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CERT-PL","cpe":[{"product":"patch","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:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"description":"GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. Improper handling of consecutive end-of-file newline markers can corrupt internal hunk (single block of changes in diff) data structures, causing the application to pass a NULL pointer to fwrite() during patch processing.\nAn attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service.\n\nThis issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313","ecosystems":["Red Hat:hummingbird:1"],"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":"NULL Pointer Dereference in GNU patch","id":"CVE-2026-56288","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"null_dereference","year":"2026"},"n_packages":1,"n_references":3,"next":{"headline":"Loop with Unreachable Exit Condition in GNU patch","id":"CVE-2026-56289"},"packages":[{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.8-4.3.hum1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/redhat/patch","source":"RHSA-2026:38019"}],"prev":{"headline":"Apache Fineract: Boolean SQL Injection in Client Search API (orderBy parameter) leading to Local File Disclosure","id":"CVE-2026-56287"},"products":["patch"],"published":"2026-07-09","related":[{"cvss_score":7.8,"headline":"Command injection in n/a","id":"CVE-2018-20969","kev_date_added":null,"published":"2019-08-16"},{"cvss_score":7.5,"headline":"Use after free in n/a","id":"CVE-2018-6952","kev_date_added":null,"published":"2018-02-13"},{"cvss_score":5.9,"headline":"Path traversal in n/a","id":"CVE-2019-13636","kev_date_added":null,"published":"2019-07-17"},{"cvss_score":5.5,"headline":"Null dereference in n/a","id":"CVE-2021-45261","kev_date_added":null,"published":"2021-12-22"},{"cvss_score":5.5,"headline":"Use after free in n/a","id":"CVE-2019-20633","kev_date_added":null,"published":"2020-03-25"},{"cvss_score":5.5,"headline":"Memory corruption in n/a","id":"CVE-2016-10713","kev_date_added":null,"published":"2018-02-13"}],"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":"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-09","vendors":["GNU"]},"summary":"An attacker can cause a denial of service in GNU patch by providing a specially crafted unified-diff file that triggers a NULL pointer dereference.","url":"https://insights.sbomify.com/CVE-2026-56288/"}