CWE-467: Use of sizeof() on a Pointer Type, published in 2026
Filter
The code calls sizeof() on a pointer type, when the programmer intended to determine the size of the data that is being pointed to.
What the weakness is: CWE-467 at MITRE. All weaknesses
Ask an AI about CWE-467
Show the prompt
Explain CWE-467: Use of sizeof() on a Pointer Type and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/467.html and https://cve.bz/cve/cwe/467?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
- 5.6CVE-2026-87027enterprisedbEPSS 0.1%
In EDB Postgres Extended Server and EDB Postgres Advanced Server versions 15 through 18 with Transparent Data Encryption (TDE) enabled, the key used to encrypt temporary files was incompletely initialized. The code applied sizeof() to a po…
- 5.3CVE-2026-52761owasp modsecurityEPSS 0.4%
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. From 3.0.0 through 3.0.15, the t:utf8toUnicode transformation in src/actions/transformations/utf8_to_unicode.cc produces wrong o…