Skip to main content

CWE-608: Struts: Non-private Field in ActionForm Class

VariantDraft

An ActionForm class contains a field that has not been declared private, which can be accessed without using a setter or getter.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Java
Platforms

Frequently Asked Questions

What is CWE-608: Struts: Non-private Field in ActionForm Class?+

CWE-608: Struts: Non-private Field in ActionForm Class is a Common Weakness Enumeration (CWE) entry maintained by MITRE. An ActionForm class contains a field that has not been declared private, which can be accessed without using a setter or getter.

What are the security consequences of Struts: Non-private Field in ActionForm Class?+

If exploited, CWE-608 (Struts: Non-private Field in ActionForm Class) it can compromise Integrity and Confidentiality, leading to outcomes such as Modify Application Data and Read Application Data.

Which programming languages are affected by Struts: Non-private Field in ActionForm Class?+

CWE-608 commonly affects Java. 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-608 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