CWE-131: Incorrect Calculation of Buffer Size

The product does not correctly calculate the size to be used when allocating a buffer.

201 published CVE records name this weakness. Abstraction: Base. Status: Draft. CWE-131 at MITRE

CVETitleCVSSEPSSPublished
CVE-2026-31806 FreeRDP has a Heap Buffer Overflow in nsc_process_message() via Unchecked SURFACE_BITS_COMMAND Bitmap Dimensions 9.3 critical 0.75% 13 Mar 2026
CVE-2026-28686 ImageMagick has a write heap-buffer-overflow in PCL encoder via undersized output buffer 6.8 medium 0.13% 9 Mar 2026
CVE-2026-20049 Cisco Secure Firewall Adaptive Security Appliance (ASA) Software: Incorrect Calculation of Buffer Size 7.7 high 0.34% 4 Mar 2026
CVE-2026-2047 GIMP ICNS File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability 7.8 high 0.70% 20 Feb 2026
CVE-2026-2738 OpenVPN ovpn-dco-win: Incorrect Calculation of Buffer Size 5.6 medium 0.14% 19 Feb 2026
CVE-2026-26200 HDF5 Affected by H5T__conv_struct_opt Heap Buffer Overflow 7.8 high 0.43% 19 Feb 2026
CVE-2025-33124 Fixes to common vulnerabilities found in IBM Db2 Merge Backup for Linux, UNIX and Windows 6.5 medium 0.29% 17 Feb 2026
CVE-2026-1188 Eclipse OMR: Incorrect Calculation of Buffer Size 6.9 medium 0.49% 29 Jan 2026
CVE-2026-22791 openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP 6.6 medium 0.28% 13 Jan 2026
CVE-2026-21503 iccDEV has Undefined Behavior - Null Pointer Passed to memcpy() in CIccTagSparseMatrixArray 6.1 medium 0.19% 7 Jan 2026
CVE-2025-62550 Azure Monitor Agent Remote Code Execution Vulnerability 8.8 high 0.80% 9 Dec 2025
CVE-2025-66216 AIS-catcher has a Buffer Overflow vulnerability in `AIS::Message` leading to DoS/RCE 9.3 critical 0.54% 29 Nov 2025
CVE-2025-61661 Grub2: grub2: out-of-bounds write via malicious usb device 4.8 medium 0.22% 18 Nov 2025
CVE-2025-27074 Incorrect Calculation of Buffer Size in SCE-Mink 8.8 high 0.090% 4 Nov 2025
CVE-2025-33126 Fixes to common vulnerabilities found in IBM Db2 High Performance Unload 6.5 medium 0.32% 27 Oct 2025
CVE-2025-27053 Incorrect Calculation of Buffer Size in HLOS 7.8 high 0.089% 9 Oct 2025
CVE-2025-57807 ImageMagick BlobStream Forward-Seek Under-Allocation 3.8 low 0.32% 5 Sep 2025
CVE-2025-55297 ESF-IDF BluFi Example Memory Overflow Vulnerability 5.2 medium 0.41% 21 Aug 2025
CVE-2025-52955 Junos OS and Junos OS Evolved: When jflow/sflow is configured continuous logical interface flaps causes rpd crash and restart 7.1 high 0.32% 11 Jul 2025
CVE-2025-27042 Incorrect Calculation of Buffer Size in Video 7.8 high 0.096% 8 Jul 2025
CVE-2025-46723 OpenVM byte decomposition of pc in AUIPC chip can overflow 7.8 high 0.49% 2 May 2025
CVE-2025-46688 QuickJS: Incorrect Calculation of Buffer Size 5.6 medium 0.33% 27 Apr 2025
CVE-2025-46393 ImageMagick: Incorrect Calculation of Buffer Size 2.9 low 0.43% 23 Apr 2025
CVE-2025-43965 ImageMagick: Incorrect Calculation of Buffer Size 2.9 low 0.59% 23 Apr 2025
CVE-2025-1861 Stream HTTP wrapper truncates redirect location to 1024 bytes 6.3 medium 0.85% 30 Mar 2025
CVE-2025-30334 OpenBSD wg(4) kernel crash 7.1 high 0.45% 20 Mar 2025
CVE-2025-0395 The GNU C Library glibc: Incorrect Calculation of Buffer Size 6.2 medium 0.36% 22 Jan 2025
CVE-2024-11425 Schneider Electric Modicon M580 CPU (part numbers BMEP* and BMEH*, excluding M580 CPU Safety): Incorrect Calculation of Buffer Size 8.7 high 0.62% 17 Jan 2025
CVE-2024-8361 DoS caused due to wrong hash length returned for SHA2/224 algorithm 7.5 high 0.44% 7 Jan 2025
CVE-2017-13315 Google Android: Incorrect Calculation of Buffer Size 7.8 high 0.095% 19 Nov 2024
CVE-2024-49776 A negative-size-param in tsMuxer version nightly-2024-04-05-01-53-02 allows attackers to cause Denial of Service (DoS) via a crafted TS… 6.5 medium 0.46% 14 Nov 2024
CVE-2024-28052 LevelOne WBR-6012: Incorrect Calculation of Buffer Size 5.3 medium 0.70% 30 Oct 2024
CVE-2024-39808 Gallagher Controller 6000 and Controller 7000: Incorrect Calculation of Buffer Size 4.6 medium 0.23% 11 Sep 2024
CVE-2024-45287 Multiple vulnerabilities in libnv 9.1 critical 0.51% 5 Sep 2024
CVE-2024-5000 CODESYS: Incorrect calculation of buffer size can cause DoS on CODESYS OPC UA products 7.5 high 0.57% 4 Jun 2024
CVE-2024-30405 Junos OS: SRX 5000 Series with SPC2: Processing of specific crafted packets when ALG is enabled causes a transit traffic Denial of Service 8.7 high 0.63% 12 Apr 2024
CVE-2024-27237 Google Android: Incorrect Calculation of Buffer Size 5.5 medium 0.088% 11 Mar 2024
CVE-2023-52558 OpenBSD 7.4 and 7.3 m_split() network buffer kernel crash 7.5 high 0.70% 1 Mar 2024
CVE-2023-52557 OpenBSD 7.3 invalid l2tp message npppd crash 7.5 high 0.55% 1 Mar 2024
CVE-2023-50736 A vulnerability has been identified in the PostScript interpreter in various Lexmark devices. 9.0 critical 0.77% 28 Feb 2024
CVE-2024-23606 The Biosig Project libbiosig: Incorrect Calculation of Buffer Size 9.8 critical 1.68% 20 Feb 2024
CVE-2024-23805 F5 Application Visibility and Reporting module and BIG-IP Advanced WAF/ASM vulnerability 7.5 high 0.52% 14 Feb 2024
CVE-2023-6780 Glibc: integer overflow in __vsyslog_internal() 5.3 medium 2.71% 31 Jan 2024
CVE-2024-23622 IBM Merge Healthcare eFilm Workstation License Server CopySLS_Request3 Buffer Overflow 10.0 critical 1.85% 25 Jan 2024
CVE-2024-23621 IBM Merge Healthcare eFilm Workstation License Server Buffer Overflow 10.0 critical 1.85% 25 Jan 2024
CVE-2023-5941 libc stdio buffer overflow – 1.21% 8 Nov 2023
CVE-2023-4257 Unchecked user input length in the Zephyr WiFi shell module 7.6 high 1.06% 13 Oct 2023
CVE-2023-36824 Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis 7.4 high 77.4% 11 Jul 2023
CVE-2023-30575 Apache Guacamole: Incorrect calculation of Guacamole protocol element lengths 6.5 medium 1.01% 7 Jun 2023
CVE-2023-24819 RIOT-OS vulnerable to Buffer Overflow during IPHC receive 9.8 critical 0.99% 24 Apr 2023