1. CVE archive
  2. Vulnerability types
  3. CWE-767
CWE-767 · #660 most frequent type in the archive

Access to Critical Private Variable via Public Method

The product defines a public method that reads or modifies a private variable.

Part of: CWE-668 · Exposure of Resource to Wrong Sphere

2CVEs of this type in the archive
0critical (CVSS ≥ 9)
1high severity (7–8.9)
Nov 26, 2024latest published

What it is

The product defines a public method that reads or modifies a private variable.

Impact on systems

ScopeImpact
Integrity, Other Modify Application Data, Varies by Context
If an attacker modifies the variable to contain unexpected values, this could violate assumptions from other parts of the code. Additionally, if an attacker can read the private variable, it may expose sensitive information or make it easier to launch further attacks.

How to prevent it

Implementation 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.

Source: MITRE CWE catalog · Official entry on the MITRE website

All CWE-767 CVEs

2 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.