CWE-1335: Incorrect Bitwise Shift of Integer, published in 2025
Filter
An integer value is specified to be shifted by a negative amount or an amount greater than or equal to the number of bits contained in the value.
What the weakness is: CWE-1335 at MITRE. All weaknesses
Ask an AI about CWE-1335
Show the prompt
Explain CWE-1335: Incorrect Bitwise Shift of Integer and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/1335.html and https://cve.bz/cve/cwe/1335?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.9CVE-2025-32029apeleghq ts-asn1-derEPSS 0.4%
ts-asn1-der is a collection of utility classes to encode ASN.1 data following DER rule. Incorrect number DER encoding can lead to denial on service for absolute values in the range 2**31 -- 2**32 - 1. The arithmetic in the numBitLen didn't…