CWE-272: Least Privilege Violation

BaseIncomplete

The elevated privilege level required to perform operations such as chroot() should be dropped immediately after the operation is performed.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-272: Least Privilege Violation?+

CWE-272: Least Privilege Violation is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The elevated privilege level required to perform operations such as chroot() should be dropped immediately after the operation is performed.

What are the security consequences of Least Privilege Violation?+

If exploited, CWE-272 (Least Privilege Violation) it can compromise Access Control and Confidentiality, leading to outcomes such as Gain Privileges or Assume Identity, Read Application Data and Read Files or Directories.

How is Least Privilege Violation detected?+

CWE-272 can be detected using Manual Static Analysis - Source Code and Architecture or Design Review. Combining automated tooling with manual review typically yields the best coverage.

Which programming languages are affected by Least Privilege Violation?+

CWE-272 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-272 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More