{"id":15129920,"url":"https://github.com/arthepsy/cve-2021-4034","last_synced_at":"2025-05-16T14:08:41.403Z","repository":{"id":37716136,"uuid":"452094681","full_name":"arthepsy/CVE-2021-4034","owner":"arthepsy","description":"PoC for PwnKit: Local Privilege Escalation Vulnerability in polkit’s pkexec (CVE-2021-4034)","archived":false,"fork":false,"pushed_at":"2023-05-04T19:24:39.000Z","size":5,"stargazers_count":1075,"open_issues_count":6,"forks_count":306,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-04-12T12:52:15.773Z","etag":null,"topics":["cve","cve-2021-4034","poc"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arthepsy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-01-26T00:56:36.000Z","updated_at":"2025-04-12T06:40:42.000Z","dependencies_parsed_at":"2024-01-14T03:49:44.055Z","dependency_job_id":"bbd5e4a0-5c3d-4e04-b514-cf9e11632946","html_url":"https://github.com/arthepsy/CVE-2021-4034","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthepsy%2FCVE-2021-4034","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthepsy%2FCVE-2021-4034/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthepsy%2FCVE-2021-4034/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthepsy%2FCVE-2021-4034/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthepsy","download_url":"https://codeload.github.com/arthepsy/CVE-2021-4034/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544146,"owners_count":22088807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cve","cve-2021-4034","poc"],"created_at":"2024-09-26T02:24:04.691Z","updated_at":"2025-05-16T14:08:41.240Z","avatar_url":"https://github.com/arthepsy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CVE-2021-4034\nPoC for PwnKit: Local Privilege Escalation Vulnerability in polkit’s pkexec (CVE-2021-4034)\n\nhttps://seclists.org/oss-sec/2022/q1/80  \nhttps://blog.qualys.com/vulnerabilities-threat-research/2022/01/25/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\n\n# PoC\n\nVerified on Debian 10 and CentOS 7.\n\n```\nuser@debian:~$ grep PRETTY /etc/os-release\nPRETTY_NAME=\"Debian GNU/Linux 10 (buster)\"\nuser@debian:~$ id\nuid=1000(user) gid=1000(user) groups=1000(user),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),109(netdev)\nuser@debian:~$ gcc cve-2021-4034-poc.c -o cve-2021-4034-poc\nuser@debian:~$ ./cve-2021-4034-poc\n# id\nuid=0(root) gid=0(root) groups=0(root),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),109(netdev),1000(user)\n```\n\n```\n[user@centos ~]$ grep PRETTY /etc/os-release\nPRETTY_NAME=\"CentOS Linux 7 (Core)\"\n[user@centos ~]$ id\nuid=11000(user) gid=11000(user) groups=11000(user) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\n[user@centos ~]$ gcc cve-2021-4034-poc.c -o cve-2021-4034-poc\n[user@centos ~]$ ./cve-2021-4034-poc\nsh-4.2# id\nuid=0(root) gid=0(root) groups=0(root),11000(user) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\nsh-4.2# exit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthepsy%2Fcve-2021-4034","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthepsy%2Fcve-2021-4034","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthepsy%2Fcve-2021-4034/lists"}