Privilege Dropping / Lowering Errors
CWE-271 · Class · Incomplete
The product does not drop privileges before passing control of a resource to an actor that does not have those privileges.
Extended description
In some contexts, a system executing with elevated permissions will hand off a process/file/etc. to another process or user. If the privileges of an entity are not reduced, then elevated privileges are spread throughout a system and possibly to an attacker.