{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-45261 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-45261 is a medium-severity vulnerability in n/a, published on 22 Dec 2021. 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-2021-45261 and fix it if it is affected.\n\nWhat it is: CVE-2021-45261 is a medium-severity vulnerability in n/a, published on 22 Dec 2021. 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-2021-45261 in the wild and no public exploit code.\n\nAffected product: n/a. 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-2021-45261/ (Markdown: https://insights.sbomify.com/CVE-2021-45261/index.md)","id":"CVE-2021-45261","markdown":"https://insights.sbomify.com/CVE-2021-45261/index.md","name":"CVE-2021-45261","record":{"aliases":["CLSA-2026-1788355583","DEBIAN-CVE-2021-45261","ECHO-36a0-a7e1-89d6","GHSA-5wqw-cqhv-q8cv","ROOT-OS-DEBIAN-12-CVE-2021-45261","SUSE-SU-2026:0781-1","SUSE-SU-2026:20343-1","SUSE-SU-2026:20431-1","UBUNTU-CVE-2021-45261","openSUSE-SU-2026:10140-1","openSUSE-SU-2026:20227-1"],"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 via an invalid pointer in the another_hunk function.","user_interaction":"required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"patch","vendor":"gnu"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-763","name":"Release of Invalid Pointer or Reference"}],"description":"An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.","ecosystems":["SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP applications 16.0","SUSE:Linux Micro 6.2","openSUSE:Leap 15.6","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"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 dereference in n/a","id":"CVE-2021-45261","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"null_dereference","year":"2021"},"n_packages":7,"n_references":1,"next":{"headline":"Use after free in n/a","id":"CVE-2021-45262"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","fixed":["2.7.6-150000.5.9.1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/suse/patch\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP7","source":"SUSE-SU-2026:0781-1"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["2.7.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/suse/patch\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:20431-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["2.7.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/suse/patch\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:20431-1"},{"ecosystem":"SUSE:Linux Micro 6.2","fixed":["2.7.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/suse/patch\u0026distro=SUSE%20Linux%20Micro%206.2","source":"SUSE-SU-2026:20343-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.7.6-150000.5.9.1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/opensuse/patch\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2026:0781-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["2.7.6-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/opensuse/patch\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20227-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.8-2.1"],"introduced":["0"],"last_affected":[],"package":"patch","purl":"pkg:rpm/opensuse/patch\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10140-1"}],"prev":{"headline":"Null dereference in n/a","id":"CVE-2021-45260"},"products":["n/a"],"published":"2021-12-22","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":"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"},{"cvss_score":4.6,"headline":"NULL Pointer Dereference in GNU patch","id":"CVE-2026-56288","kev_date_added":null,"published":"2026-07-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"An attacker can cause a denial of service in GNU patch via an invalid pointer in the another_hunk function.","url":"https://insights.sbomify.com/CVE-2021-45261/"}