CyberSecBulletin

Collapse of Data into Unsafe Value

CWE-182

The product filters data in a way that causes it to be reduced or collapsed into an unsafe value that violates an expected security property.

We track 1 vulnerability of this type. 100% are rated high or critical, and the average CVSS score is 7.5.

How this weakness is prevented

  • Architecture and Design: Avoid making decisions based on names of resources (e.g. files) if those resources can have alternate names.
  • Implementation: Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
  • Canonicalize the name to match that of the file system's representation of the name. This can sometimes be achieved with an available API (e.g. in Win32 the GetFullPathName function).

Latest Collapse of Data into Unsafe Value vulnerabilities

  • 7.5 High severity

    squid: Collapse of Data into Unsafe Value

    CVE-2024-25617Squid-cacheEPSS 88.9%

    Squid is an open source caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. Due to a Collapse of Data into Unsafe Value bug ,Squid may be vulnerable to a Denial of Service attack against HTTP header parsing. This problem allows a remote client or