Nullify

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Product Security Terms›
Privilege Escalation

Product Security Terms

Privilege Escalation

NT
Tim Thacker
November 25, 2026

What Is
Privilege Escalation
?

Privilege escalation is when an attacker or user gains permissions beyond what they were granted, such as a regular user acting as an admin or a compromised process gaining root. It usually comes from a flaw in how software assigns or checks privileges, or from a misconfiguration, and it turns a small foothold into broad control.

Also known as:

privilege elevation, elevation of privilege, vertical privilege escalation, horizontal privilege escalation

What Privilege Escalation Means

MITRE ATT&CK treats privilege escalation as a tactic: the adversary is trying to gain higher-level permissions on a system or network. Attackers often get in with limited access, then need more rights to reach data, credentials or infrastructure. Typical targets are root or SYSTEM level access, local administrator rights, or a user account with admin-like access.

Privilege escalation describes an impact, not one coding mistake. MITRE's CWE-269, Improper Privilege Management, covers software that does not properly assign, modify, track or check privileges for an actor, which creates an unintended sphere of control. CWE notes that the entry is often conflated with privilege escalation and recommends mapping real flaws to more specific weaknesses.

Vertical and Horizontal Privilege Escalation

  • Vertical escalation. A user or process gains a higher role than it should have, such as a standard account reaching admin-only functions or a container process gaining root on its host.
  • Horizontal escalation. A user gains access to another user's resources at the same privilege level. OWASP describes this as being able to access another user's resources, and insecure direct object references are a common cause.

Common Causes in Modern Applications

  • Missing server-side authorization checks. An admin endpoint hides its button in the UI but never checks the caller's role on the server.
  • Trusting client-supplied roles. The application reads a role or user ID from a request parameter or an unsigned token and acts on it.
  • Misordered middleware. A route is registered before the authorization guard runs, so the check never applies to it.
  • Overprivileged identities. Cloud roles, CI/CD tokens and service accounts hold far more permissions than the job needs, so one compromised workload can reach much more.
  • Container misconfiguration. Kubernetes lets you control whether a process can gain more privileges than its parent process; leaving that open, or running privileged containers, widens the blast radius.

Why Privilege Escalation Matters

Privilege escalation is often the step that turns a minor bug into a breach. A leaked low-privilege credential or a limited code execution flaw becomes far more damaging once the attacker can act as an administrator, read every tenant's data or change build and deployment systems. Incident reports regularly describe attackers moving from initial access to escalated privileges in build infrastructure before they reach credentials and customer data.

How to Prevent Privilege Escalation

  • Apply least privilege to users, services and cloud roles, as both CWE-269 and the OWASP Authorization Cheat Sheet recommend.
  • Deny access by default and validate permissions on every request, not only at login.
  • Enforce authorization on the server side. Never rely on client-side checks or client-supplied roles.
  • Centralize authorization logic so new routes inherit guards instead of adding them by hand.
  • Lock down workloads: avoid privileged containers, block privilege escalation in pod security contexts and scope CI/CD permissions to each job.
  • Test role boundaries directly by trying admin actions as a standard user and cross-account actions as another tenant.

How Nullify Finds Privilege Escalation

Nullify code analysis covers broken access control, including IDOR and privilege escalation, and for improper privilege management (CWE-269) it verifies authorization guards, middleware ordering and access control annotations. It also detects privilege escalation in Kubernetes manifests and weak IAM policies and overprivileged roles in infrastructure-as-code. Nullify pentests test privilege escalation and authorization bypass across roles, and where an exploit succeeds within the authorized scope, they attach the requests and responses that support the result. Explore the Nullify AI Pentest Agent.

Key Takeaways

  • Privilege escalation is gaining permissions beyond what was granted, either a higher role (vertical) or another user's resources (horizontal).
  • It is an impact that usually comes from improper privilege management, missing server-side checks or overprivileged identities.
  • It turns a small foothold, such as a leaked low-privilege credential, into broad control.
  • Least privilege, deny by default and authorization checks on every request are the core defenses.

Read More About
Privilege Escalation

AI Pentest Agent

See Nullify in Action

Test privilege escalation and authorization bypass across roles in your running application.

Explore the AI Pentest Agent

Reduce your vulnerability backlog and lower your MTTR

The AI harness that finds, proves and fixes vulnerabilities across your codebase.

Book a demo