SecurityContext

CVE-2021-3864: SUID Binary - Privilege Escalation

  • Cve: CVE-2021-3864
  • Name: SUID Binary - Privilege Escalation
  • Description: A flaw was found in the way the dumpable flag setting was handled when certain SUID binaries executed its descendants. The prerequisite is a SUID binary that sets real UID equal to effective UID, and real GID equal to effective GID. The descendant will then have a dumpable value set to 1. As a result, if the descendant process crashes and core_pattern is set to a relative value, its core dump is stored in the current directory with uid:gid permissions. An unprivileged local user with eligible root SUID binary could use this flaw to place core dumps into root-owned directories, potentially resulting in escalation of privileges.
  • Impact: Unprivileged users can escalate privileges by placing core dumps in root-owned directories, potentially leading to privilege escalation.
  • Remediation: Apply security patches that fix dumpable flag handling in affected SUID binaries or restrict core dump locations.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00777
  • Epss percentile: 0.56783
  • Assignee: [email protected]
  • Published at: 2022-08-26T16:15:09Z
  • Age in days: 1551
  • Modified at: 2026-06-17T04:05:55Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 7
  • Products total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-3864
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-284Improper Access Control
NVD-CWE-noinfo—

Public exploits

UrlSourceAdded date
https://www.openwall.com/lists/oss-security/2021/10/20/2nvd2022-08-26
https://github.com/walac/cve-2021-3864poc-in-github2022-03-31

References

Same in every row:

  • Source: nvd
UrlTags
https://bugzilla.redhat.com/show_bug.cgi?id=2015046Issue Tracking, Patch, Third Party Advisory
https://www.openwall.com/lists/oss-security/2021/10/20/2Exploit, Mailing List, Third Party Advisory
https://access.redhat.com/security/cve/CVE-2021-3864Third Party Advisory
https://security-tracker.debian.org/tracker/CVE-2021-3864Third Party Advisory
https://lore.kernel.org/all/20211221021744.864115-1-longman%40redhat.com/
https://lore.kernel.org/all/20211226150310.GA992%401wt.eu/
https://lore.kernel.org/lkml/20211228170910.623156-1-wander%40redhat.com/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
linux:linux_kernelall versions/v1/products/linux/linux_kernel
debian:debian_linux= 11.0, = 10.0/v1/products/debian/debian_linux
redhat:enterprise_linux= 9.0, = 7.0, = 6.0/v1/products/redhat/enterprise_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2022-03-31
  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports