CWE-767: CWE-767: Access to Critical Private Variable via Public Method

BaseStable

Description

View on MITRE
Back to CWE Lookup

Extended Description

Extended Description

Technical Details

Structure
Simple
Vulnerability Mapping
ALLOWED

Applicable To

Languages
Languages
Platforms
Languages

Frequently Asked Questions

What is CWE-767: CWE-767: Access to Critical Private Variable via Public Method?+

CWE-767: CWE-767: Access to Critical Private Variable via Public Method is a Common Weakness Enumeration (CWE) entry maintained by MITRE. Description Extended Description

What are the security consequences of CWE-767: Access to Critical Private Variable via Public Method?+

If exploited, CWE-767 (CWE-767: Access to Critical Private Variable via Public Method) it can compromise Modify Application Data and Other, leading to outcomes such as Scope: Integrity and Other.

How do you prevent or mitigate CWE-767: Access to Critical Private Variable via Public Method?+

Recommended mitigations for CWE-767 include: Use class accessor and mutator methods appropriately. Perform validation when accepting data from a public method that is intended to modify a critical private variable. Also be sure that appropriate access controls are being applied when a public method interfaces with critical data.

Which programming languages are affected by CWE-767: Access to Critical Private Variable via Public Method?+

CWE-767 commonly affects Languages. 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-767 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