CyberSecBulletin

Improper Encoding or Decoding of Data

CWE-172

The product does not properly encode or decode data, resulting in unexpected values that are not equivalent to the original data.

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

How this weakness is prevented

  • Implementation: While it is risky to use dynamically-generated query strings, code, or commands that mix control and data together, sometimes it may be unavoidable. Properly quote arguments and escape any special characters within those arguments. The most conservative approach is to escape or filter all characters that do not pass an extremely strict allowlist (such as everything that is not alphanumeric or white space). If some special characters are still needed, such as white space, wrap each argument in quotes after the escaping/filtering step. Be careful of argument injection (CWE-88).
  • 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.

Latest Improper Encoding or Decoding of Data vulnerabilities

  • 7.5 High severity

    rabbitmq-java-client: Improper Encoding or Decoding of Data

    CVE-2026-106122Rabbitmq

    The RabbitMQ Java client library allows Java and JVM-based applications to connect to and interact with RabbitMQ nodes. Prior to 5.36.0, ValueReader.readShortstr decodes malformed UTF-8 bytes into replacement characters that can re-encode beyond the AMQP short

  • 7.3 High severity

    OpenDMARC: Improper Encoding or Decoding of Data

    CVE-2026-100891Trusted Domain Project

    A vulnerability has been found in Trusted Domain Project OpenDMARC up to 1.4.2. Affected by this issue is the function opendmarc_policy_query_dmarc in the library libopendmarc/opendmarc_policy.c of the component Internationalized Domain Name Handler. Such mani

  • 7.5 High severity

    validator: Incomplete Filtering of One or More Instances of Special Elements

    CVE-2025-12758Validator

    Versions of the package validator before 13.15.22 are vulnerable to Incomplete Filtering of One or More Instances of Special Elements in the isLength() function that does not take into account Unicode variation selectors (\uFE0F, \uFE0E) appearing in a sequenc

  • 7.5 High severity

    ModSecurity: Improper Encoding or Decoding of Data

    CVE-2025-27110OWASP ModSecurity

    Libmodsecurity is one component of the ModSecurity v3 project. The library codebase serves as an interface to ModSecurity Connectors taking in web traffic and applying traditional ModSecurity processing. A bug that exists only in Libmodsecurity3 version 3.0.13