cve.bz

CWE-241: Improper Handling of Unexpected Data Type, published in 2021

Filter

The product does not handle or incorrectly handles when a particular element is not the expected type, e.g. it expects a digit (0-9) but is provided with a letter (A-Z).

What the weakness is: CWE-241 at MITRE. All weaknesses

Related attack patterns (CAPEC): 1
  • CAPEC-48 Passing Local Filenames to Functions That Expect a URL Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to CWE-241, as MITRE names them. Credits.

Ask an AI about CWE-241

Show the promptExplain CWE-241: Improper Handling of Unexpected Data Type and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/241.html and https://cve.bz/cve/cwe/241?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 7.5CVE-2021-40116ciscoEPSS 1.4%

    Multiple Cisco products are affected by a vulnerability in Snort rules that could allow an unauthenticated, remote attacker to cause a denial of service (DoS) condition on an affected device.The vulnerability is due to improper handling of…

  2. 7.5CVE-2021-39131ced project cedEPSS 1.9%

    ced detects character encoding using Google’s compact_enc_det library. In ced v0.1.0, passing data types other than `Buffer` causes the Node.js process to crash. The problem has been patched in ced v1.0.0. As a workaround, before passing a…

  3. 5.3CVE-2021-32696striptags project striptagsEPSS 1.1%

    The npm package "striptags" is an implementation of PHP's strip_tags in Typescript. In striptags before version 3.2.0, a type-confusion vulnerability can cause `striptags` to concatenate unsanitized strings when an array-like object is pas…

  4. 3.5CVE-2021-32655nextcloud serverEPSS 1.0%

    Nextcloud Server is a Nextcloud package that handles data storage. In versions prior to 19.0.11, 20.0.10, and 21.0.2, an attacker is able to convert a Files Drop link to a federated share. This causes an issue on the UI side of the sharing…

  5. 4.7CVE-2021-0243juniper junosEPSS 0.4%

    Improper Handling of Unexpected Data in the firewall policer of Juniper Networks Junos OS on EX4300 switches allows matching traffic to exceed set policer limits, possibly leading to a limited Denial of Service (DoS) condition. When the fi…

  6. 6.5CVE-2021-0242juniper junosEPSS 0.4%

    A vulnerability due to the improper handling of direct memory access (DMA) buffers on EX4300 switches on Juniper Networks Junos OS allows an attacker sending specific unicast frames to trigger a Denial of Service (DoS) condition by exhaust…