CWE-172: Improper Encoding or Decoding of Data
The product does not properly encode or decode data, resulting in unexpected values that are not equivalent to the original data.
Last updated
Overview
CWE-172 (Improper Encoding or Decoding of Data) is a class-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
25 recorded CVEs are caused by CWE-172 (Improper Encoding or Decoding of Data). The highest-severity and most recent are shown first. 9 new CWE-172 CVEs have been recorded so far in 2026 (1 in 2025).
- CVE-2019-10160
python: regression of CVE-2019-9636 due to functional fix to allow port numbers in netloc
Critical · CVSS 9.8 · EPSS 93th2019-06-07 - CVE-2016-6691Critical · CVSS 9.8 · EPSS 71th2016-10-10
- CVE-2025-27110
Libmodsecurity3 has possible bypass of encoded HTML entities
High · CVSS 7.9 · EPSS 47th2025-02-25