CWE-681: Incorrect Conversion between Numeric Types, published in 2025
Filter
When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.
What the weakness is: CWE-681 at MITRE. All weaknesses
Ask an AI about CWE-681
Show the prompt
Explain CWE-681: Incorrect Conversion between Numeric Types and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/681.html and https://cve.bz/cve/cwe/681?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
- 6.3CVE-2025-10543eclipse paho mqttEPSS 0.4%
In Eclipse Paho Go MQTT v3.1 library (paho.mqtt.golang) versions <=1.5.0 UTF-8 encoded strings, passed into the library, may be incorrectly encoded if their length exceeds 65535 bytes. This may lead to unexpected content in packets sent to…
- 7.1CVE-2025-58063corednsEPSS 0.5%
CoreDNS is a DNS server that chains plugins. Starting in version 1.2.0 and prior to version 1.12.4, the CoreDNS etcd plugin contains a TTL confusion vulnerability where lease IDs are incorrectly used as TTL values, enabling DNS cache pinni…
- 8.4CVE-2025-53733microsoftEPSS 0.6%
Incorrect conversion between numeric types in Microsoft Office Word allows an unauthorized attacker to execute code locally.
- 7.8CVE-2025-24059microsoftEPSS 0.6%
Incorrect conversion between numeric types in Windows Common Log File System Driver allows an authorized attacker to elevate privileges locally.