CWE-682: Incorrect Calculation, published in 2025
Filter
The product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management.
What the weakness is: CWE-682 at MITRE. All weaknesses
Related attack patterns (CAPEC): 2
The attack patterns MITRE's CAPEC relates to CWE-682, as MITRE names them. Credits.
Ask an AI about CWE-682
Show the prompt
Explain CWE-682: Incorrect Calculation and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/682.html and https://cve.bz/cve/cwe/682?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
- 7.5CVE-2025-55552linuxfoundation pytorchEPSS 0.7%
pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together.
- 2.7CVE-2025-59047matrix-org matrix-rust-sdkEPSS 0.7%
matrix-sdk-base is the base component to build a Matrix client library. In matrix-sdk-base before 0.14.1, calling the `RoomMember::normalized_power_level()` method can cause a panic if a room member has a power level of `Int::Min`. The iss…
- 6.9CVE-2025-54427polkadot-evm frontierEPSS 1.0%
Polkadot Frontier is an Ethereum and EVM compatibility layer for Polkadot and Substrate. The extrinsic note_min_gas_price_target is an inherent extrinsic, meaning only the block producer can call it. To ensure correctness, the ProvideInher…
- 8.8CVE-2025-5372EPSS 1.0%
A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate fai…
- 3.2CVE-2025-0036EPSS 0.2%
In AMD Versal Adaptive SoC devices, the incorrect configuration of the SSS during runtime (post-boot) cryptographic operations could cause data to be incorrectly written to and read from invalid locations as well as returning incorrect cry…
- 7.5CVE-2025-4435python software foundation cpythonEPSS 1.1%
When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. However the actual behavior of TarFile.errorlevel = 0 in affected versions is that th…
- 2.3CVE-2025-26622vyperlang vyperEPSS 0.6%
vyper is a Pythonic Smart Contract Language for the EVM. Vyper `sqrt()` builtin uses the babylonian method to calculate square roots of decimals. Unfortunately, improper handling of the oscillating final states may lead to sqrt incorrectly…
- 5.3CVE-2024-25883EPSS 0.6%
The mstatus register in RSD commit 3d13a updates incorrectly, leading to processing errors.