CWE-172: Improper Encoding or Decoding of Data, published in 2026
Filter
The product does not properly encode or decode data, resulting in unexpected values that are not equivalent to the original data.
What the weakness is: CWE-172 at MITRE. All weaknesses
Related attack patterns (CAPEC): 10
- CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters Likelihood: Medium · Severity: Medium
- CAPEC-52 Embedding NULL Bytes Likelihood: High · Severity: High
- CAPEC-53 Postfix, Null Terminate, and Backslash Likelihood: High · Severity: High
- CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
- CAPEC-71 Using Unicode Encoding to Bypass Validation Logic Likelihood: Medium · Severity: High
- CAPEC-72 URL Encoding Likelihood: High · Severity: High
- CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
- CAPEC-120 Double Encoding Likelihood: Low · Severity: Medium
- CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-172, as MITRE names them. Credits.
Ask an AI about CWE-172
Show the prompt
Explain CWE-172: Improper Encoding or Decoding of Data and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/172.html and https://cve.bz/cve/cwe/172?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
- –CVE-2026-129979
Net::PublicSuffixList versions before 0.99_01 for Perl miss internationalized public suffixes in hosts given in punycode form. Net::PublicSuffixList looks up host name suffixes from the Mozilla Public Suffix List. The Public Suffix List …
- 8.2CVE-2026-94564nukevietEPSS 0.6%
NukeViet CMS is a multi Content Management System. Prior to 4.6.01, an unauthenticated visitor can submit Contact module content containing numeric HTML entities with more than eight leading zeros in a URL-bearing attribute. NukeViet\Core\…
- 6.3CVE-2026-61812owasp-modsecurity modsecurityEPSS 0.5%
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Prior to 2.9.15 and 3.0.17, t:htmlEntityDecode recognizes only a small subset of named HTML entities, so rules that depend on th…
- 6.1CVE-2026-110306fast-uriEPSS 0.3%
fast-uri is a dependency-free RFC 3986 URI parser and serializer for Node.js. In versions before 2.4.8, from 3.0.0 through 3.1.8, and from 4.0.0 through 4.2.2, fast-uri percent-decodes the scheme component with the legacy global unescape()…
- 6.9CVE-2026-95101f5EPSS 0.3%
Description NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_v3_module module. When using HTTP/3 with proxy_request_buffering on directive, an unauthenticated attacker may be able to inject data in the proxied reques…
- 5.8CVE-2026-104774corazawaf corazaEPSS 0.4%
OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. From 3.0.0 until 3.8.0, the t:jsDecode transformation in internal/transformations/js_decode.go:64-70 includes the backslash in the octal buffer, causing …
- 6.0CVE-2026-106122vmware rabbitmq java clientEPSS 0.6%
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 …
- 5.5CVE-2026-100891trusted domain project opendmarcEPSS 0.5%
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 Na…
- 4.8CVE-2026-86818fast-uriEPSS 0.3%
fast-uri is a dependency-free RFC 3986 URI parser for Node.js, used by Fastify and ajv, that added a mailto scheme parser in version 4.1.3. In versions 4.1.3 and 4.1.4, the mailto parser compares each query field name to the reserved names…
- 5.1CVE-2026-48784sensiolabs symfonyEPSS 0.3%
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.53, 6.4.41, 7.4.13, and 8.0.13, UrlGenerator::doGenerate() used strtr() dot-segment encoding that skipped every other chained ..…
- 6.3CVE-2026-42926f5EPSS 0.3%
When NGINX Open Source is configured to proxy HTTP/2 traffic by setting proxy_http_version to 2, and also uses proxy_set_body, an attacker may be able to inject frame headers and payload bytes to the upstream peer. Note: Software versions…