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-2021-27448 Grid Solutions GE MU320E 安全漏洞 — MU320E 7.8 -2021-03-25
CVE-2021-27454 Grid Solutions GE Reason DR60 安全漏洞 — Reason DR60 9.8 -2021-03-25
CVE-2020-26278 Weave Net Pods running in host PID namespace can be used to escalate other Kubernetes vulnerabilities — weave 5.8 Medium2021-01-20
CVE-2021-0223 Junos OS: telnetd.real Local Privilege Escalation vulnerabilities in SUID binaries — Junos OS 7.8 High2021-01-15
CVE-2021-0204 Junos OS: dexp Local Privilege Escalation vulnerabilities in SUID binaries — Junos OS 7.8 High2021-01-15
CVE-2020-10056 Siemens LMU 安全漏洞 — License Management Utility (LMU) 7.8 -2020-09-09
CVE-2020-10290 RVD#1495: Universal Robots URCaps execute with unbounded privileges — URx 6.8 -2020-08-21
CVE-2020-14493 OpenClinic GA — OpenClinic GA 8.8 High2020-07-29
CVE-2020-2023 Kata Containers - Containers have access to the guest root filesystem device — Kata Containers 3.8 Low2020-06-10
CVE-2019-15790 Apport reads PID files with elevated privileges — Apport 2.8 Low2020-04-27
CVE-2020-7252 Unquoted service executable path — Data Exchange Layer (DXL) Broker 4.2 Medium2020-02-17
CVE-2019-16784 Local Privilege Escalation present only on the Windows version of PyInstaller — PyInstaller 7.0 High2020-01-14
CVE-2019-16767 In EzMaster before 5.2.11 docker containers were executed with advanced privileges by default — ezmaster 6.6 Medium2019-11-29
CVE-2019-16765 Microsoft Visual Studio Code 输入验证错误漏洞 — vscode-codeql 7.4 High2019-11-25
CVE-2019-10147 rkt 权限许可和访问控制问题漏洞 — rkt 7.7 -2019-06-03
CVE-2019-10145 rkt 权限许可和访问控制问题漏洞 — rkt 7.7 -2019-06-03
CVE-2019-10144 rkt 权限许可和访问控制问题漏洞 — rkt 7.7 -2019-06-03
CVE-2018-16888 systemd 安全漏洞 — systemd 4.7 -2019-01-14
CVE-2018-5413 Imperva SecureSphere 权限许可和访问控制问题漏洞 — SecureSphere 8.8 -2019-01-10
CVE-2018-10853 Linux kernel KVM 安全漏洞 — kernel 7.8 -2018-09-11
CVE-2017-7518 Linux kernel 安全漏洞 — Kernel: 7.8 -2018-07-30
CVE-2018-10872 Linux kernel 缓冲区错误漏洞 — kernel 5.5 -2018-07-10
CVE-2018-10892 Docker和Moby 安全漏洞 — docker 5.3 -2018-07-06
CVE-2018-10856 podman 安全漏洞 — podman 8.8 -2018-07-02
CVE-2018-1087 Linux kernel KVM 权限许可和访问控制问题漏洞 — KVM 7.1 -2018-05-15
CVE-2018-8853 多款Philips Brilliance CT设备安全漏洞 — Brilliance CT Scanners 8.8 -2018-05-04

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