Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-250 (带着不必要的权限执行) — Vulnerability Class 236

236 vulnerabilities classified as CWE-250 (带着不必要的权限执行). AI Chinese analysis included.

CWE-250 represents a critical architectural weakness where software executes operations using elevated privileges beyond what is strictly necessary for the task. This misconfiguration typically allows attackers to exploit other vulnerabilities, such as buffer overflows or injection flaws, by granting them higher-level access than intended. If an attacker compromises a low-privilege component, the excessive permissions amplify the impact, potentially leading to full system compromise or unauthorized data modification. To mitigate this risk, developers must adhere to the principle of least privilege, ensuring that each process or user account operates with only the minimum permissions required for its specific function. Implementing strict access controls, regularly auditing permission assignments, and isolating services further reduce the attack surface, thereby limiting the potential damage from any single security breach.

MITRE CWE 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 ControlGain 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 t…
Mitigations (5)
Architecture and Design, OperationRun 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 ad…
Architecture and DesignIdentify 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 …
Architecture and DesignIdentify 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 …
ImplementationPerform extensive input validation for any privileged code that must be exposed to the user and reject anything that does not fit your strict requirements.
ImplementationWhen 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.
Examples (2)
This code temporarily raises the program's privileges to allow creation of a new user folder.
def makeNewUserDir(username): if invalidUsername(username): #avoid CWE-22 and CWE-78 print('Usernames cannot contain invalid characters') return False try: raisePrivileges() os.mkdir('/home/' + username) lowerPrivileges() except OSError: print('Unable to create new user directory for user:' + username) return False return True
Bad · Python
The following code calls chroot() to restrict the application to a subset of the filesystem below APP_HOME in order to prevent an attacker from using the program to gain unauthorized access to files located elsewhere. The code then opens a file specified by the user and processes the contents of the file.
chroot(APP_HOME); chdir("/"); FILE* data = fopen(argv[1], "r+"); ...
Bad · C
CVE IDTitleCVSSSeverityPublished
CVE-2022-40182 多款Siemens产品安全漏洞 — Desigo PXM30-1 7.3 -2022-10-11
CVE-2022-2634 Digi ConnectPort X2D — ConnectPort X2D 10.0 Critical2022-08-09
CVE-2022-1744 2.2.6 EXECUTION WITH UNNECESSARY PRIVILEGES CWE-250 — ImageCast X application 6.8 -2022-06-24
CVE-2022-1517 3.2.1 EXECUTION WITH UNNECESSARY PRIVILEGES CWE-250 — NextSeq 550Dx 10.0 Critical2022-06-24
CVE-2022-32535 Web server runs as root — PRA-ES8P2S 4.8 Medium2022-06-22
CVE-2022-1808 Execution with Unnecessary Privileges in polonel/trudesk — polonel/trudesk 8.8 -2022-05-31
CVE-2022-30695 Local privilege escalation due to excessive permissions assigned to child processes — Acronis Snap Deploy 7.8 -2022-05-16
CVE-2021-34591 Bender Charge Controller: Local privilege Escalation — CC612 7.8 High2022-04-27
CVE-2022-0071 Hotdog Container Escape — Hotdog 8.8 High2022-04-19
CVE-2022-0070 Log4j hot patch package privilege escalation — log4j-cve-2021-44228-hotpatch 8.8 High2022-04-19
CVE-2021-3101 Hotdog Container Escape — Hotdog 8.8 High2022-04-19
CVE-2021-3100 Log4j hot patch package privilege escalation — log4j-cve-2021-44228-hotpatch 8.8 High2022-04-19
CVE-2022-20676 Cisco IOS XE Software Tool Command Language Privilege Escalation Vulnerability — Cisco IOS XE Software 5.1 Medium2022-04-15
CVE-2022-27578 SICK OEE 安全漏洞 — SICK Overall Equipment Effectiveness 7.8 -2022-04-11
CVE-2022-24113 Local privilege escalation due to excessive permissions assigned to child processes — Acronis Cyber Protect 15 7.8 -2022-02-04
CVE-2021-36339 Dell EMC Unisphere for PowerMax 安全漏洞 — Solutions Enabler vApp 7.8 High2022-01-21
CVE-2022-21699 Execution with Unnecessary Privileges in ipython — ipython 8.2 High2022-01-19
CVE-2021-34998 Panda Security Free Antivirus 权限许可和访问控制问题漏洞 — Free Antivirus 7.8 -2022-01-13
CVE-2021-1118 NVIDIA vGPU Software 安全漏洞 — NVIDIA Virtual GPU Software 7.8 High2021-10-29
CVE-2021-3576 Privilege escalation via SeImpersonatePrivilege — Endpoint Security Tools 7.8 High2021-10-28
CVE-2021-41035 Eclipse Openj9 安全漏洞 — Eclipse OMR 9.1 -2021-10-25
CVE-2021-37174 Siemens RUGGEDCOM 授权问题漏洞 — RUGGEDCOM ROX MX5000 7.5 -2021-09-14
CVE-2021-1579 Cisco Application Policy Infrastructure Controller App Privilege Escalation Vulnerability — Cisco Application Policy Infrastructure Controller (APIC) 8.1 High2021-08-25
CVE-2021-25653 Avaya Aura Appliance Virtualization Platform Utilities Privilege Escalation Vulnerability — Avaya Aura Appliance Virtualization Platform Utilities 8.0 High2021-06-24
CVE-2021-25651 Avaya Aura Utility Services Privilege Escalation Vulnerability — Avaya Aura Utility Services 8.0 High2021-06-24
CVE-2021-25650 Avaya Aura Utility Services Privilege Escalation Vulnerability — Avaya Aura Utility Services 7.7 High2021-06-24
CVE-2021-1528 Cisco SD-WAN Software Privilege Escalation Vulnerability — Cisco SD-WAN Solution 7.8 High2021-06-04
CVE-2020-27826 Red Hat Keycloak 安全漏洞 — keycloak 5.9 -2021-05-28
CVE-2021-0256 Junos OS: mosquitto Local Privilege Escalation vulnerability in SUID binaries — Junos OS 5.5 Medium2021-04-22
CVE-2021-0255 Junos OS: ethtraceroute Local Privilege Escalation vulnerability in SUID binaries — Junos OS 5.5 Medium2021-04-22

Vulnerabilities classified as CWE-250 (带着不必要的权限执行) represent 236 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.