Vulnerability Database
Explore over 700 documented security weaknesses (CWE). Each entry covers risks, real-world impact, affected technologies and actionable prevention strategies.
All CWE Entries at a Glance
- CWE-20: Improper Input ValidationImproper Input Validation is a software weakness where a product receives input or data but does not validate or incorrectly validates that the input
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Path Traversal (also known as Directory Traversal) is a vulnerability that occurs when software uses external input to construct a pathname intended
- CWE-23: Relative Path TraversalRelative Path Traversal is a vulnerability that occurs when software uses external input to construct a pathname intended to identify a file or
- CWE-24: Path Traversal: '../filedir'Path Traversal: '../filedir' is a specific variant of path traversal vulnerability where software accepts input containing "../" sequences that are
- CWE-36: Absolute Path TraversalAbsolute Path Traversal is a vulnerability that occurs when software accepts user input containing absolute file paths (paths that start from the
- CWE-59: Improper Link Resolution Before File Access ('Link Following')Improper Link Resolution Before File Access, commonly known as "Link Following" or "Symlink Attack," occurs when software accesses a file through a
- CWE-73: External Control of File Name or PathExternal Control of File Name or Path is a vulnerability that occurs when software allows user input to control or influence the names of files or
- CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')Command Injection is a critical vulnerability that occurs when software constructs all or part of a command using externally-influenced input from an
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')OS Command Injection is a vulnerability that occurs when software constructs all or part of an operating system command using externally-influenced
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')Cross-site Scripting (XSS) is a vulnerability that occurs when software does not neutralize or incorrectly neutralizes user-controllable input before
- CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)Improper Neutralization of Script-Related HTML Tags is a specific variant of Cross-site Scripting (XSS) that occurs when software receives input from
- CWE-83: Improper Neutralization of Script in Attributes in a Web PageImproper Neutralization of Script in Attributes is a variant of Cross-site Scripting (XSS) that occurs when software receives input from an upstream
- CWE-87: Improper Neutralization of Alternate XSS SyntaxImproper Neutralization of Alternate XSS Syntax is a variant of Cross-site Scripting (XSS) that occurs when software attempts to filter XSS attacks
- CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')Improper Neutralization of Argument Delimiters in a Command, commonly known as Argument Injection, occurs when software constructs a command string
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')SQL Injection is a vulnerability that occurs when software constructs all or part of an SQL command using externally-influenced input from an
- CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')LDAP Injection is a vulnerability that occurs when software constructs all or part of an LDAP query using externally-influenced input from an
- CWE-91: XML Injection (aka Blind XPath Injection)XML Injection is a vulnerability that occurs when software constructs all or part of an XML document or XPath query using externally-influenced input
- CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')CRLF Injection is a vulnerability that occurs when software constructs output records using externally-influenced input but does not neutralize or
- CWE-94: Improper Control of Generation of Code ('Code Injection')Code Injection is a vulnerability that occurs when software constructs all or part of a code segment using externally-influenced input from an
- CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')Eval Injection is a specific variant of code injection that occurs when software receives input from an upstream component and evaluates it as code
- CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')Static Code Injection occurs when software receives input from an upstream component, stores it in a location that will later be parsed and executed
- CWE-98: Improper Control of Filename for Include/Require Statement in PHP ProgramImproper Control of Filename for Include/Require Statement in PHP Program is a vulnerability that occurs when PHP applications construct file include
- CWE-116: Improper Encoding or Escaping of OutputImproper Encoding or Escaping of Output occurs when software prepares a structured message for communication with another component but does not
- CWE-117: Improper Output Neutralization for LogsImproper Output Neutralization for Logs occurs when software constructs log entries from user-controlled input without properly neutralizing special
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory BufferImproper Restriction of Operations within the Bounds of a Memory Buffer occurs when software performs operations on a memory buffer but can read from
- CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')Classic Buffer Overflow is a vulnerability that occurs when a program copies data to a buffer without first checking that the data fits within the
- CWE-121: Stack-based Buffer OverflowStack-based Buffer Overflow is a variant of buffer overflow that occurs when a buffer allocated on the stack is overwritten with data larger than its
- CWE-122: Heap-based Buffer OverflowHeap-based Buffer Overflow is a buffer overflow vulnerability that occurs in the heap memory region, where dynamically allocated memory resides.
- CWE-123: Write-what-where ConditionWrite-what-where Condition is a vulnerability where an attacker can write an arbitrary value to an arbitrary memory location.
- CWE-124: Buffer Underwrite ('Buffer Underflow')Buffer Underwrite (also known as Buffer Underflow) occurs when a program writes to memory locations before the beginning of an allocated buffer.
- CWE-125: Out-of-bounds ReadOut-of-bounds Read is a vulnerability that occurs when software reads data from a memory location outside the intended boundaries of a buffer.
- CWE-126: Buffer Over-readBuffer Over-read occurs when a program reads data from memory locations beyond the end of an intended buffer.
- CWE-127: Buffer Under-readBuffer Under-read occurs when a program reads data from memory locations before the beginning of an intended buffer.
- CWE-128: Wrap-around ErrorWrap-around Error occurs when an integer value is incremented beyond its maximum representable value, causing it to "wrap around" to its minimum
- CWE-129: Improper Validation of Array IndexImproper Validation of Array Index occurs when a program uses untrusted input to calculate or directly use an array index without validating that the
- CWE-130: Improper Handling of Length Parameter InconsistencyImproper Handling of Length Parameter Inconsistency occurs when a program parses formatted messages or data structures but fails to properly handle
- CWE-131: Incorrect Calculation of Buffer SizeIncorrect Calculation of Buffer Size occurs when a program allocates a buffer but incorrectly calculates its required size, leading to a buffer that
- CWE-134: Use of Externally-Controlled Format StringUse of Externally-Controlled Format String (Format String Vulnerability) occurs when user-supplied input is used directly as the format string
- CWE-135: Incorrect Calculation of Multi-Byte String LengthIncorrect Calculation of Multi-Byte String Length occurs when a program incorrectly calculates the length of strings that contain wide or multi-byte
- CWE-190: Integer Overflow or WraparoundInteger Overflow or Wraparound occurs when an arithmetic operation produces a numeric value that exceeds the maximum value that can be stored in the
- CWE-191: Integer Underflow (Wrap or Wraparound)Integer Underflow occurs when an arithmetic subtraction operation produces a result that is less than the minimum value that can be stored in the
- CWE-192: Integer Coercion ErrorInteger Coercion Error is a vulnerability that occurs when primitive data types are incorrectly cast, extended, or truncated during type conversion
- CWE-193: Off-by-one ErrorOff-by-one Error is a logic error that occurs when a program miscalculates a boundary by exactly one unit.
- CWE-194: Unexpected Sign ExtensionUnexpected Sign Extension occurs when a signed integer value is converted to a larger integer type, and the sign bit is extended to fill the
- CWE-195: Signed to Unsigned Conversion ErrorSigned to Unsigned Conversion Error occurs when a signed integer value is converted to an unsigned integer type.
- CWE-196: Unsigned to Signed Conversion ErrorUnsigned to Signed Conversion Error occurs when a large unsigned integer value is converted to a signed integer type.
- CWE-197: Numeric Truncation ErrorNumeric Truncation Error occurs when a numeric value is converted to a smaller data type that cannot represent the full range of the original value,
- CWE-200: Exposure of Sensitive Information to an Unauthorized ActorExposure of Sensitive Information to an Unauthorized Actor occurs when a product intentionally or unintentionally discloses sensitive information to
- CWE-201: Insertion of Sensitive Information Into Sent DataInsertion of Sensitive Information Into Sent Data occurs when code transmits data to another actor but inadvertently includes sensitive information
- CWE-203: Observable DiscrepancyObservable Discrepancy is a vulnerability that occurs when a product behaves differently or sends different responses under various circumstances in
- CWE-204: Observable Response DiscrepancyObservable Response Discrepancy is a vulnerability that occurs when a product provides different responses to incoming requests based on internal
- CWE-205: Observable Behavioral DiscrepancyObservable Behavioral Discrepancy is a vulnerability that occurs when a product's internal operations or decision processes are revealed through
- CWE-208: Observable Timing DiscrepancyObservable Timing Discrepancy is a vulnerability that occurs when two or more operations in a product require different amounts of time to complete,
- CWE-209: Generation of Error Message Containing Sensitive InformationGeneration of Error Message Containing Sensitive Information occurs when an application creates error messages that contain details helpful to
- CWE-210: Self-generated Error Message Containing Sensitive InformationSelf-generated Error Message Containing Sensitive Information is a vulnerability that occurs when a product identifies an error condition and creates
- CWE-211: Externally-Generated Error Message Containing Sensitive InformationExternally-Generated Error Message Containing Sensitive Information is a vulnerability that occurs when a product performs an operation that triggers
- CWE-212: Improper Removal of Sensitive Information Before Storage or TransferImproper Removal of Sensitive Information Before Storage or Transfer is a vulnerability that occurs when a product stores, transfers, or shares a
- CWE-213: Exposure of Sensitive Information Due to Incompatible PoliciesExposure of Sensitive Information Due to Incompatible Policies is a vulnerability that occurs when a product's intended functionality exposes
- CWE-214: Invocation of Process Using Visible Sensitive InformationInvocation of Process Using Visible Sensitive Information is a vulnerability that occurs when a process is invoked with sensitive data passed through
- CWE-215: Insertion of Sensitive Information Into Debugging CodeInsertion of Sensitive Information Into Debugging Code occurs when developers include sensitive data in debug statements, logging, or diagnostic code
- CWE-219: Storage of File with Sensitive Data Under Web RootStorage of File with Sensitive Data Under Web Root is a vulnerability that occurs when a product stores sensitive data in files located under the web
- CWE-220: Storage of File With Sensitive Data Under FTP RootStorage of File With Sensitive Data Under FTP Root is a vulnerability that occurs when a product stores sensitive data in files located under the FTP
- CWE-250: Execution with Unnecessary PrivilegesExecution with Unnecessary Privileges occurs when software performs operations at a privilege level higher than the minimum required for that
- CWE-252: Unchecked Return ValueUnchecked Return Value occurs when software does not check the return value from a method or function, which can prevent it from detecting unexpected
- CWE-253: Incorrect Check of Function Return ValueIncorrect Check of Function Return Value is a vulnerability that occurs when a product incorrectly validates the return value from a function,
- CWE-256: Unprotected Storage of CredentialsUnprotected Storage of Credentials occurs when software stores authentication credentials (passwords, API keys, tokens, certificates) in a location
- CWE-257: Storing Passwords in a Recoverable FormatStoring Passwords in a Recoverable Format occurs when software stores passwords in a way that allows them to be recovered to their original plaintext
- CWE-259: Use of Hard-coded PasswordUse of Hard-coded Password is a vulnerability that occurs when a product contains a password embedded directly in the source code, configuration
- CWE-260: Password in Configuration FilePassword in Configuration File is a vulnerability that occurs when a product stores passwords in configuration files that might be accessible to
- CWE-261: Weak Encoding for PasswordWeak Encoding for Password is a vulnerability that occurs when a product obscures passwords using trivial encoding methods such as Base64, ROT13, XOR
- CWE-262: Not Using Password AgingNot Using Password Aging is a vulnerability that occurs when a product lacks mechanisms for managing password expiration and forced rotation.
- CWE-263: Password Aging with Long ExpirationPassword Aging with Long Expiration is a vulnerability that occurs when a product implements password rotation policies with expiration periods that
- CWE-266: Incorrect Privilege AssignmentIncorrect Privilege Assignment is a vulnerability that occurs when a product incorrectly assigns a privilege, role, capability, or permission to a
- CWE-267: Privilege Defined With Unsafe ActionsPrivilege Defined With Unsafe Actions is a vulnerability that occurs when a particular privilege, role, capability, or right enables actions that
- CWE-268: Privilege ChainingPrivilege Chaining is a vulnerability that occurs when two distinct privileges, roles, capabilities, or rights can be combined in a way that allows
- CWE-269: Improper Privilege ManagementImproper Privilege Management occurs when a product does not properly assign, modify, track, or check privileges for actors (users, processes, or
- CWE-270: Privilege Context Switching ErrorPrivilege Context Switching Error is a vulnerability that occurs when a product does not properly manage privileges while switching between different
- CWE-271: Privilege Dropping / Lowering ErrorsPrivilege Dropping / Lowering Errors is a vulnerability class that occurs when a product fails to reduce privileges before transferring control of a
- CWE-272: Least Privilege ViolationLeast Privilege Violation is a vulnerability that occurs when a product operates with more privileges than necessary for the task at hand,
- CWE-273: Improper Check for Dropped PrivilegesImproper Check for Dropped Privileges is a vulnerability that occurs when a product attempts to drop privileges but does not check or incorrectly
- CWE-274: Improper Handling of Insufficient PrivilegesImproper Handling of Insufficient Privileges is a vulnerability that occurs when a product fails to properly address situations where it lacks
- CWE-276: Incorrect Default PermissionsIncorrect Default Permissions occurs when software installs files, directories, or other resources with permissions that are more permissive than
- CWE-277: Insecure Inherited PermissionsInsecure Inherited Permissions is a vulnerability that occurs when a product defines a set of insecure permissions that are inherited by objects
- CWE-278: Insecure Preserved Inherited PermissionsInsecure Preserved Inherited Permissions is a vulnerability that occurs when a product inherits a set of insecure permissions for an object, for
- CWE-279: Incorrect Execution-Assigned PermissionsIncorrect Execution-Assigned Permissions is a vulnerability that occurs when a product sets object permissions during execution in ways that violate
- CWE-280: Improper Handling of Insufficient Permissions or PrivilegesImproper Handling of Insufficient Permissions or Privileges is a vulnerability that occurs when a product does not handle or incorrectly handles
- CWE-281: Improper Preservation of PermissionsImproper Preservation of Permissions is a vulnerability that occurs when a product does not preserve permissions or incorrectly preserves permissions
- CWE-282: Improper Ownership ManagementImproper Ownership Management is a vulnerability class that occurs when a product assigns incorrect ownership or fails to verify proper ownership of
- CWE-283: Unverified OwnershipUnverified Ownership is a vulnerability that occurs when a product does not properly verify that a critical resource is owned by the proper entity
- CWE-284: Improper Access ControlImproper Access Control occurs when software does not properly restrict access to a resource from an unauthorized actor.
- CWE-285: Improper AuthorizationImproper Authorization occurs when software does not perform or incorrectly performs authorization checks, allowing users to access resources or
- CWE-286: Incorrect User ManagementIncorrect User Management is a vulnerability class that occurs when a product does not properly manage users within its environment.
- CWE-287: Improper AuthenticationImproper Authentication occurs when an actor claims to have a given identity but the software does not prove or insufficiently proves that the claim
- CWE-288: Authentication Bypass Using an Alternate Path or ChannelAuthentication Bypass Using an Alternate Path or Channel occurs when a system that requires authentication can be bypassed through an alternate entry
- CWE-289: Authentication Bypass by Alternate NameAuthentication Bypass by Alternate Name is a vulnerability that occurs when a product performs authentication based on the name of a resource being
- CWE-290: Authentication Bypass by SpoofingAuthentication Bypass by Spoofing is a vulnerability caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.
- CWE-291: Reliance on IP Address for AuthenticationReliance on IP Address for Authentication is a vulnerability that occurs when a product uses an IP address as the sole means of authentication.
- CWE-293: Using Referer Field for AuthenticationUsing Referer Field for Authentication is a vulnerability that occurs when a product relies on the HTTP Referer header as a means of authentication
- CWE-294: Authentication Bypass by Capture-replayAuthentication Bypass by Capture-replay is a vulnerability where attackers can sniff network traffic containing authentication credentials or
- CWE-295: Improper Certificate ValidationImproper Certificate Validation occurs when software does not validate, or incorrectly validates, a digital certificate.
