BaseDraft

CWE-250Execution with Unnecessary Privileges

Category: authz

Description

The product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses.

Common consequences· 1

  • Confidentiality / Integrity / Availability / Access Control — Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands, Read Application Data, DoS: Crash, Exit, or Restart
    An attacker will be able to gain access to any resources that are allowed by the extra privileges. Common results include executing code, disabling services, and reading restricted data. New weaknesses can be exposed because running with extra privileges, such as root or Administrator, can disable the normal security checks being performed by the operating system or surrounding environment. Other pre-existing weaknesses can turn into security vulnerabilities if they occur while operating at raised privileges.

Potential mitigations· 5

  • [Architecture and Design, Operation]Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.
  • [Architecture and Design]Identify the functionality that requires additional privileges, such as access to privileged operating system resources. Wrap and centralize this functionality if possible, and isolate the privileged code as much as possible from other code [REF-76]. Raise privileges as late as possible, and drop them as soon as possible to avoid CWE-271. Avoid weaknesses such as CWE-288 and CWE-420 by protecting all possible communication channels that could interact with the privileged code, such as a secondary socket that is only intended to be accessed by administrators.
  • [Architecture and Design]Identify the functionality that requires additional privileges, such as access to privileged operating system resources. Wrap and centralize this functionality if possible, and isolate the privileged code as much as possible from other code [REF-76]. Raise privileges as late as possible, and drop them as soon as possible to avoid CWE-271. Avoid weaknesses such as CWE-288 and CWE-420 by protecting all possible communication channels that could interact with the privileged code, such as a secondary socket that is only intended to be accessed by administrators.
  • [Implementation]Perform extensive input validation for any privileged code that must be exposed to the user and reject anything that does not fit your strict requirements.
  • [Implementation]When dropping privileges, ensure that they have been dropped successfully to avoid CWE-273. As protection mechanisms in the environment get stronger, privilege-dropping calls may fail even if it seems like they would always succeed.

Related CAPEC attack patterns· 3

CAPEC-104CAPEC-470CAPEC-69

References

  1. https://cwe.mitre.org/data/definitions/250.html

Exploits (incoming)3

TypeTargetConfidenceTier
AttackPatternExpanding Control over the Operating System from the Databasecapec-470100%live
AttackPatternCross Zone Scriptingcapec-104100%live
AttackPatternTarget Programs with Elevated Privilegescapec-69100%live

Compliance frameworks addressing this (incoming)1

TypeTargetConfidenceTier
ComplianceControlowasp_llm_top10-llm06100%live

(incoming)45

TypeTargetConfidenceTier
VulnerabilityCVE-2025-0078cve-2025-00780%live
VulnerabilityCVE-2025-1137cve-2025-11370%live
VulnerabilityCVE-2025-12420cve-2025-124200%live
VulnerabilityCVE-2025-13375cve-2025-133750%live
VulnerabilityCVE-2025-13506cve-2025-135060%live
VulnerabilityCVE-2025-14096cve-2025-140960%live
VulnerabilityCVE-2025-22890cve-2025-228900%live
VulnerabilityCVE-2025-23180cve-2025-231800%live
VulnerabilityCVE-2025-23181cve-2025-231810%live
VulnerabilityCVE-2025-32445cve-2025-324450%live
VulnerabilityCVE-2025-33103cve-2025-331030%live
VulnerabilityCVE-2025-33108cve-2025-331080%live
VulnerabilityCVE-2025-33109cve-2025-331090%live
VulnerabilityCVE-2025-33223cve-2025-332230%live
VulnerabilityCVE-2025-33224cve-2025-332240%live
VulnerabilityCVE-2025-34274cve-2025-342740%live
VulnerabilityCVE-2025-34515cve-2025-345150%live
VulnerabilityCVE-2025-36356cve-2025-363560%live
VulnerabilitySonicWall SMA1000 Missing Authorization Vulnerabilitycve-2025-406020%live
VulnerabilityCVE-2025-42958cve-2025-429580%live
VulnerabilityCVE-2025-43017cve-2025-430170%live
VulnerabilityCVE-2025-46116cve-2025-461160%live
VulnerabilityCVE-2025-49581cve-2025-495810%live
VulnerabilityCVE-2025-50753cve-2025-507530%live
VulnerabilityCVE-2025-56557cve-2025-565570%live
VulnerabilityCVE-2025-57119cve-2025-571190%live
VulnerabilityCVE-2025-57780cve-2025-577800%live
VulnerabilityCVE-2025-59481cve-2025-594810%live
VulnerabilityCVE-2025-61958cve-2025-619580%live
VulnerabilityCVE-2025-67510cve-2025-675100%live

Showing top 30 of 45 by confidence. Click any target to see the full neighbourhood.

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Handling of Insufficient Privileges
CWE
Improper Check for Dropped Privileges
CWE
Incorrect Use of Privileged APIs
CWE
Improper Handling of Insufficient Permissions or Privileges
CWE
Use of Low-Level Functionality
CWE
Improper Access Control
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.