{"answers":{"affected":"It affects 6 products.","exploited":"Yes. Attackers have exploited CVE-2021-3560 in the wild since at least 12 May 2023.","fix":"Apply the vendor's patch. US federal agencies must fix it by 2 Jun 2023.","what":"CVE-2021-3560 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 16 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3560 and fix it if it is affected.\n\nWhat it is: CVE-2021-3560 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 16 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2021-3560 in the wild since at least 12 May 2023.\n\nAffected product: Canonical Ubuntu Linux. 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-3560/ (Markdown: https://insights.sbomify.com/CVE-2021-3560/index.md)","id":"CVE-2021-3560","markdown":"https://insights.sbomify.com/CVE-2021-3560/index.md","name":"CVE-2021-3560","record":{"aliases":["DEBIAN-CVE-2021-3560","GHSA-7c49-j253-wq5r","MGASA-2021-0244","OESA-2021-1230","RHSA-2021:2236","RHSA-2021:2237","RHSA-2021:2238","RLSA-2021:2238","SUSE-SU-2021:1842-1","SUSE-SU-2021:1843-1","SUSE-SU-2021:1844-1","UBUNTU-CVE-2021-3560","USN-4980-1","openSUSE-SU-2021:0838-1","openSUSE-SU-2021:1843-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"polkit privilege escalation","requires_auth":"low_privilege","summary":"An unprivileged local attacker can bypass polkit credential checks to gain root privileges and create new administrator accounts.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"polkit","vendor":"polkit_project"},{"product":"openshift_container_platform","vendor":"redhat"},{"product":"virtualization","vendor":"redhat"},{"product":"virtualization_host","vendor":"redhat"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"},{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"It was found that polkit could be tricked into bypassing the credential checks for D-Bus requests, elevating the privileges of the requestor to the root user. This flaw could be used by an unprivileged local attacker to, for example, create a new local administrator. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.","ecosystems":["Red Hat:enterprise_linux:8::baseos","Red Hat:rhel_eus:8.1::baseos","Red Hat:rhel_eus:8.2::baseos","Rocky Linux:8","SUSE:Enterprise Storage 6","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Micro 5.0","SUSE:Linux Enterprise Module for Basesystem 15 SP2","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Linux Enterprise Workstation Extension 12 SP5","SUSE:Manager Proxy 4.0","SUSE:Manager Retail Branch Server 4.0","SUSE:Manager Server 4.0","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.2","openSUSE:Leap 15.3"],"exploits":{"exploitdb":1,"first_seen":"2021-06-03","github_poc":33,"max_poc_stars":126,"metasploit":1,"nuclei":0,"refs":[{"date":"2021-06-14T20:08:20Z","kind":"github_poc","ref":"https://github.com/secnigma/CVE-2021-3560-Polkit-Privilege-Esclation","stars":126,"title":null},{"date":"2021-06-19T08:15:17Z","kind":"github_poc","ref":"https://github.com/Almorabea/Polkit-exploit","stars":125,"title":"Privilege escalation with polkit - CVE-2021-3560"},{"date":"2022-04-29T18:57:30Z","kind":"github_poc","ref":"https://github.com/RicterZ/CVE-2021-3560-Authentication-Agent","stars":116,"title":"PolicyKit CVE-2021-3560 Exploit (Authentication Agent)"},{"date":"2021-06-11T14:28:43Z","kind":"github_poc","ref":"https://github.com/swapravo/polkadots","stars":82,"title":"CVE-2021-3560 Local PrivEsc Exploit"},{"date":"2021-06-12T05:22:35Z","kind":"github_poc","ref":"https://github.com/hakivvi/CVE-2021-3560","stars":40,"title":"a reliable C based exploit and writeup for CVE-2021-3560."},{"date":"2022-04-30T05:53:45Z","kind":"github_poc","ref":"https://github.com/winmin/CVE-2021-3560","stars":25,"title":"PolicyKit CVE-2021-3560 Exploitation (Authentication Agent)"},{"date":"2021-06-29T20:47:16Z","kind":"github_poc","ref":"https://github.com/AssassinUKG/Polkit-CVE-2021-3560","stars":24,"title":null},{"date":"2022-05-02T23:56:31Z","kind":"github_poc","ref":"https://github.com/UNICORDev/exploit-CVE-2021-3560","stars":12,"title":"Exploit for CVE-2021-3560 (Polkit) - Local Privilege Escalation"}],"tier":"exploited"},"has_fix":true,"headline":"Red Hat Polkit Incorrect Authorization","id":"CVE-2021-3560","indexable":true,"kev":{"dateAdded":"2023-05-12","dueDate":"2023-06-02","knownRansomwareCampaignUse":"Unknown","product":"Polkit","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Red Hat","vulnerabilityName":"Red Hat Polkit Incorrect Authorization Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","redhat:openshift_container_platform","redhat:virtualization","redhat:virtualization_host"],"type":"privilege_escalation","year":"2021"},"n_packages":55,"n_references":4,"next":{"headline":"Memory corruption in fig2dev","id":"CVE-2021-3561"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.115-11.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/redhat/polkit","source":"RHSA-2021:2238"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.115-11.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"polkit-debuginfo","purl":"pkg:rpm/redhat/polkit-debuginfo","source":"RHSA-2021:2238"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.115-11.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"polkit-debugsource","purl":"pkg:rpm/redhat/polkit-debugsource","source":"RHSA-2021:2238"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.115-11.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"polkit-devel","purl":"pkg:rpm/redhat/polkit-devel","source":"RHSA-2021:2238"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.115-11.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"polkit-docs","purl":"pkg:rpm/redhat/polkit-docs","source":"RHSA-2021:2238"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.115-11.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"polkit-libs","purl":"pkg:rpm/redhat/polkit-libs","source":"RHSA-2021:2238"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.115-11.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"polkit-libs-debuginfo","purl":"pkg:rpm/redhat/polkit-libs-debuginfo","source":"RHSA-2021:2238"},{"ecosystem":"Red Hat:rhel_eus:8.1::baseos","fixed":["0:0.115-9.el8_1.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/redhat/polkit","source":"RHSA-2021:2236"},{"ecosystem":"Red Hat:rhel_eus:8.1::baseos","fixed":["0:0.115-9.el8_1.1"],"introduced":["0"],"last_affected":[],"package":"polkit-debuginfo","purl":"pkg:rpm/redhat/polkit-debuginfo","source":"RHSA-2021:2236"},{"ecosystem":"Red Hat:rhel_eus:8.1::baseos","fixed":["0:0.115-9.el8_1.1"],"introduced":["0"],"last_affected":[],"package":"polkit-debugsource","purl":"pkg:rpm/redhat/polkit-debugsource","source":"RHSA-2021:2236"},{"ecosystem":"Red Hat:rhel_eus:8.1::baseos","fixed":["0:0.115-9.el8_1.1"],"introduced":["0"],"last_affected":[],"package":"polkit-devel","purl":"pkg:rpm/redhat/polkit-devel","source":"RHSA-2021:2236"},{"ecosystem":"Red Hat:rhel_eus:8.1::baseos","fixed":["0:0.115-9.el8_1.1"],"introduced":["0"],"last_affected":[],"package":"polkit-docs","purl":"pkg:rpm/redhat/polkit-docs","source":"RHSA-2021:2236"},{"ecosystem":"Red Hat:rhel_eus:8.1::baseos","fixed":["0:0.115-9.el8_1.1"],"introduced":["0"],"last_affected":[],"package":"polkit-libs","purl":"pkg:rpm/redhat/polkit-libs","source":"RHSA-2021:2236"},{"ecosystem":"Red Hat:rhel_eus:8.1::baseos","fixed":["0:0.115-9.el8_1.1"],"introduced":["0"],"last_affected":[],"package":"polkit-libs-debuginfo","purl":"pkg:rpm/redhat/polkit-libs-debuginfo","source":"RHSA-2021:2236"},{"ecosystem":"Red Hat:rhel_eus:8.2::baseos","fixed":["0:0.115-11.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/redhat/polkit","source":"RHSA-2021:2237"},{"ecosystem":"Red Hat:rhel_eus:8.2::baseos","fixed":["0:0.115-11.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"polkit-debuginfo","purl":"pkg:rpm/redhat/polkit-debuginfo","source":"RHSA-2021:2237"},{"ecosystem":"Red Hat:rhel_eus:8.2::baseos","fixed":["0:0.115-11.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"polkit-debugsource","purl":"pkg:rpm/redhat/polkit-debugsource","source":"RHSA-2021:2237"},{"ecosystem":"Red Hat:rhel_eus:8.2::baseos","fixed":["0:0.115-11.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"polkit-devel","purl":"pkg:rpm/redhat/polkit-devel","source":"RHSA-2021:2237"},{"ecosystem":"Red Hat:rhel_eus:8.2::baseos","fixed":["0:0.115-11.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"polkit-docs","purl":"pkg:rpm/redhat/polkit-docs","source":"RHSA-2021:2237"},{"ecosystem":"Red Hat:rhel_eus:8.2::baseos","fixed":["0:0.115-11.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"polkit-libs","purl":"pkg:rpm/redhat/polkit-libs","source":"RHSA-2021:2237"},{"ecosystem":"Red Hat:rhel_eus:8.2::baseos","fixed":["0:0.115-11.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"polkit-libs-debuginfo","purl":"pkg:rpm/redhat/polkit-libs-debuginfo","source":"RHSA-2021:2237"},{"ecosystem":"Rocky Linux:8","fixed":["0:0.115-11.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/rocky-linux/polkit?distro=rocky-linux-8-4-legacy\u0026epoch=0","source":"RLSA-2021:2238"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["0.114-3.12.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2021:1844-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["0.113-5.21.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2021:1842-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["0.114-3.12.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2021:1844-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["0.114-3.12.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2021:1844-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["0.114-3.12.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2021:1844-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-LTSS","fixed":["0.114-3.12.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSS","source":"SUSE-SU-2021:1844-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.0","fixed":["0.116-3.3.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.0","source":"SUSE-SU-2021:1843-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP2","fixed":["0.116-3.3.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2","source":"SUSE-SU-2021:1843-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["0.116-3.3.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2021:1843-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","fixed":["0.113-5.21.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCL","source":"SUSE-SU-2021:1842-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","fixed":["0.113-5.21.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCL","source":"SUSE-SU-2021:1842-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","fixed":["0.113-5.21.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSS","source":"SUSE-SU-2021:1842-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP4-LTSS","fixed":["0.113-5.21.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSS","source":"SUSE-SU-2021:1842-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["0.113-5.21.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2021:1842-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","fixed":["0.114-3.12.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCL","source":"SUSE-SU-2021:1844-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["0.114-3.12.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2021:1844-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15-LTSS","fixed":["0.114-3.12.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSS","source":"SUSE-SU-2021:1844-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","fixed":["0.113-5.21.1"],"introduced":["0"],"last_affected":[],"package":"polkit","purl":"pkg:rpm/suse/polkit\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3","source":"SUSE-SU-2021:1842-1"}],"prev":{"headline":"Denial of service in libvirt","id":"CVE-2021-3559"},"products":["polkit"],"published":"2022-02-16","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"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":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"An unprivileged local attacker can bypass polkit credential checks to gain root privileges and create new administrator accounts.","url":"https://insights.sbomify.com/CVE-2021-3560/"}