CWE-1177: Use of Prohibited Code

ClassIncomplete

The product uses a function, library, or third party component that has been explicitly prohibited, whether by the developer or the customer.

View on MITRE
Back to CWE Lookup

Extended Description

The developer - or customers - may wish to restrict or eliminate use of a function, library, or third party component for any number of reasons, including real or suspected vulnerabilities; difficulty to use securely; export controls or license requirements; obsolete or poorly-maintained code; internal code being scheduled for deprecation; etc. To reduce risk of vulnerabilities, the developer might maintain a list of "banned" functions that programmers must avoid using because the functions are difficult or impossible to use securely. This issue can also make the product more costly and difficult to maintain.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-1177: Use of Prohibited Code?+

CWE-1177: Use of Prohibited Code is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product uses a function, library, or third party component that has been explicitly prohibited, whether by the developer or the customer. The developer - or customers - may wish to restrict or eliminate use of a function, library, or third party component for any number of reasons, including real or suspected vulnerabilities; difficulty to use securely; export controls or license requirements; obsolete or poorly-maintained code; internal code being scheduled for deprecation; etc. To reduce risk of vulnerabilities, the developer might maintain a list of "banned" functions that programmers must avoid using because the functions are difficult or impossible to use securely. This issue can also make the product more costly and difficult to maintain.

What are the security consequences of Use of Prohibited Code?+

If exploited, CWE-1177 (Use of Prohibited Code) it can compromise Other, leading to outcomes such as Reduce Maintainability.

Which programming languages are affected by Use of Prohibited Code?+

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

What are real-world examples of Use of Prohibited Code?+

MITRE documents real CVEs mapped to CWE-1177, including CVE-2007-1470 and CVE-2007-4004. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

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

A CWE (Common Weakness Enumeration) like CWE-1177 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