CyberSecBulletin

Off-by-one Error

CWE-193

A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

We track 79 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.0. 1 has been exploited in real attacks.

How this weakness is prevented

  • Implementation: When copying character arrays or using character manipulation methods, the correct size parameter must be used to account for the null terminator that needs to be added at the end of the array. Some examples of functions susceptible to this weakness in C include strcpy(), strncpy(), strcat(), strncat(), printf(), sprintf(), scanf() and sscanf().

Latest Off-by-one Error vulnerabilities

  • 7.5 High severity

    ImageMagick: Off-by-one Error

    CVE-2026-25989ImageMagick

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a crafted SVG file can cause a denial of service. An off-by-one boundary check (`>` instead of `>=`) that allows bypass the

  • 7.8 High severity

    iccDEV: Out-of-bounds Write

    CVE-2026-21504InternationalColorConsortium

    iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of ICC color management profiles. Prior to version 2.3.1.2, iccDEV is vulnerable to heap buffer overflow in the ToneMap parser. This issue has been patch

  • 7.1 High severity

    iccDEV: Heap-based Buffer Overflow

    CVE-2026-21494InternationalColorConsortium

    iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of International Color Consortium (ICC) color management profiles. A vulnerability present in versions prior to 2.3.1.2 affects users of the iccDEV libra

  • 7.1 High severity

    iccDEV: Heap-based Buffer Overflow

    CVE-2026-21491InternationalColorConsortium

    iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of International Color Consortium (ICC) color management profiles. A vulnerability present in versions prior to 2.3.1.2 affects users of the iccDEV libra

  • 7.1 High severity

    iccDEV: Heap-based Buffer Overflow

    CVE-2026-21490InternationalColorConsortium

    iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of International Color Consortium (ICC) color management profiles. A vulnerability present in versions prior to 2.3.1.2 affects users of the iccDEV libra

  • 7.1 High severity

    Connext Professional: Buffer Over-read

    CVE-2025-4582RTI

    Buffer Over-read, Off-by-one Error vulnerability in RTI Connext Professional (Core Libraries) allows File Manipulation, Overread Buffers. This issue affects Connext Professional: from 7.4.0 before 7.6.0, from 7.0.0 before 7.3.0.8, from 6.1.0 before 6.1.2.26, f

  • 9.8 Critical severity

    ImageMagick: Out-of-bounds Read

    CVE-2025-53014ImageMagick

    ImageMagick is free and open-source software used for editing and manipulating digital images. Versions prior to 7.1.2-0 and 6.9.13-26 have a heap buffer overflow in the `InterpretImageFilename` function. The issue stems from an off-by-one error that causes ou

  • 9.8 Critical severity

    GoBGP: Off-by-one Error

    CVE-2025-43973GoBGP

    An issue was discovered in GoBGP before 3.35.0. pkg/packet/rtr/rtr.go does not verify that the input length corresponds to a situation in which all bytes are available for an RTR message.

  • 10.0 Critical severity

    Unified Controller (DSMUC): Off-by-one Error

    CVE-2024-10442SynologyEPSS 1.45%

    Off-by-one error vulnerability in the transmission component in Synology Replication Service before 1.0.12-0066, 1.2.2-0353 and 1.3.0-0423 and Synology Unified Controller (DSMUC) before 3.1.4-23079 allows remote attackers to execute arbitrary code, potentially

  • 7.8 High severity

    Linux: Off-by-one Error

    CVE-2024-57990Linux

    In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7925: fix off by one in mt7925_load_clc() This comparison should be >= instead of > to prevent an out of bounds read and write.

  • 7.5 High severity

    QNX Software Development Platform (SDP): Off-by-one Error

    CVE-2024-48854BlackBerry

    Off-by-one error in the TIFF image codec in QNX SDP versions 8.0, 7.1 and 7.0 could allow an unauthenticated attacker to cause an information disclosure in the context of the process using the image codec.

  • 7.1 High severity

    Linux: Off-by-one Error

    CVE-2024-56663Linux

    In the Linux kernel, the following vulnerability has been resolved: wifi: nl80211: fix NL80211_ATTR_MLO_LINK_ID off-by-one Since the netlink attribute range validation provides inclusive checking, the *max* of attribute NL80211_ATTR_MLO_LINK_ID should be IEEE8

  • 9.8 Critical severity

    ASPECT-Enterprise: Off-by-one Error

    CVE-2024-51554ABB

    Default Credentail vulnerabilities in ASPECT on Linux allows access to the product using publicly available default credentials. Affected products: ABB ASPECT - Enterprise v3.08.02; NEXUS Series v3.08.02; MATRIX Series v3.08.02

  • 7.8 High severity

    Linux: Off-by-one Error

    CVE-2024-49880Linux

    In the Linux kernel, the following vulnerability has been resolved: ext4: fix off by one issue in alloc_flex_gd() Wesley reported an issue: ================================================================== EXT4-fs (dm-5): resizing filesystem from 7168 to 7864

  • 7.1 High severity

    Linux: Off-by-one Error

    CVE-2024-49862Linux

    In the Linux kernel, the following vulnerability has been resolved: powercap: intel_rapl: Fix off by one in get_rpi() The rp->priv->rpi array is either rpi_msr or rpi_tpmi which have NR_RAPL_PRIMITIVES number of elements. Thus the > needs to be >= to prevent a

  • 7.1 High severity

    Linux: Off-by-one Error

    CVE-2024-47686Linux

    In the Linux kernel, the following vulnerability has been resolved: ep93xx: clock: Fix off by one in ep93xx_div_recalc_rate() The psc->div[] array has psc->num_div elements. These values come from when we call clk_hw_register_div(). It's adc_divisors and ARRAY

  • 7.8 High severity

    Linux: Off-by-one Error

    CVE-2024-47682Linux

    In the Linux kernel, the following vulnerability has been resolved: scsi: sd: Fix off-by-one error in sd_read_block_characteristics() Ff the device returns page 0xb1 with length 8 (happens with qemu v2.x, for example), sd_read_block_characteristics() may attem

  • 7.8 High severity

    Linux: Off-by-one Error

    CVE-2024-46852Linux

    In the Linux kernel, the following vulnerability has been resolved: dma-buf: heaps: Fix off-by-one in CMA heap fault handler Until VM_DONTEXPAND was added in commit 1c1914d6e8c6 ("dma-buf: heaps: Don't track CMA dma-buf pages under RssFile") it was possible to

  • 8.2 High severity

    FreeBSD: Out-of-bounds Write

    CVE-2024-32668FreeBSD

    An insufficient boundary validation in the USB code could lead to an out-of-bounds write on the heap, with data controlled by the caller. A malicious, privileged software running in a guest VM can exploit the vulnerability to achieve code execution on the host

  • 7.8 High severity

    Linux: Off-by-one Error

    CVE-2024-43852Linux

    In the Linux kernel, the following vulnerability has been resolved: hwmon: (ltc2991) re-order conditions to fix off by one bug LTC2991_T_INT_CH_NR is 4. The st->temp_en[] array has LTC2991_MAX_CHANNEL (4) elements. Thus if "channel" is equal to LTC2991_T_INT_C

  • 7.8 High severity

    Linux: Off-by-one Error

    CVE-2022-48732Linux

    In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: fix off by one in BIOS boundary checking Bounds checking when parsing init scripts embedded in the BIOS reject access to the last byte. This causes driver initialization to fail o

  • 9.8 Critical severity

    netatalk: Off-by-one Error

    CVE-2024-38441Netatalk

    Netatalk before 3.2.1 has an off-by-one error and resultant heap-based buffer overflow because of setting ibuf[len] to '\0' in FPMapName in afp_mapname in etc/afpd/directory.c. 2.4.1 and 3.1.19 are also fixed versions.

  • 7.5 High severity

    netatalk: Off-by-one Error

    CVE-2024-38440Netatalk

    Netatalk before 3.2.1 has an off-by-one error, and resultant heap-based buffer overflow and segmentation violation, because of incorrectly using FPLoginExt in BN_bin2bn in etc/uams/uams_dhx_pam.c. The original issue 1097 report stated: 'The latest version of N

  • 7.8 High severity

    Linux: Off-by-one Error

    CVE-2022-48672Linux

    In the Linux kernel, the following vulnerability has been resolved: of: fdt: fix off-by-one error in unflatten_dt_nodes() Commit 78c44d910d3e ("drivers/of: Fix depth when unflattening devicetree") forgot to fix up the depth check in the loop body in unflatten_

  • 7.8 High severity

    GIMP: Off-by-one Error

    CVE-2023-44444GIMPEPSS 56.1%

    GIMP PSP File Parsing Off-By-One Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must vis

  • 7.8 High severity

    Linux: Off-by-one Error

    CVE-2024-26995Linux

    In the Linux kernel, the following vulnerability has been resolved: usb: typec: tcpm: Correct the PDO counting in pd_set Off-by-one errors happen because nr_snk_pdo and nr_src_pdo are incorrectly added one. The index of the loop is equal to the number of PDOs

  • 7.5 High severity

    vyper: Off-by-one Error

    CVE-2023-46247Vyperlang

    Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine (EVM). Contracts containing large arrays might underallocate the number of slots they need by 1. Prior to v0.3.8, the calculation to determine how many slots a storage variable needed

  • 7.8 High severity

    Libsndfile: Off-by-one Error

    CVE-2022-33064Libsndfile Project

    An off-by-one error in function wav_read_header in src/wav.c in Libsndfile 1.1.0, results in a write out of bound, which allows an attacker to execute arbitrary code, Denial of Service or other unspecified impacts.

  • 9.8 Critical severity

    Linux Kernel: Off-by-one Error

    CVE-2023-38429LinuxEPSS 1.18%

    An issue was discovered in the Linux kernel before 6.3.4. fs/ksmbd/connection.c in ksmbd has an off-by-one error in memory allocation (because of ksmbd_smb2_check_message) that may lead to out-of-bounds access.

  • 7.5 High severity

    Apache Tomcat: Off-by-one Error

    CVE-2023-28709ApacheEPSS 48%

    The fix for CVE-2023-24998 was incomplete for Apache Tomcat 11.0.0-M2 to 11.0.0-M4, 10.1.5 to 10.1.7, 9.0.71 to 9.0.73 and 8.5.85 to 8.5.87. If non-default HTTP connector settings were used such that the maxParameterCount could be reached using query string pa

  • 7.5 High severity

    contiki-ng: Out-of-bounds Read

    CVE-2023-30546Contiki-ng

    Contiki-NG is an operating system for Internet of Things devices. An off-by-one error can be triggered in the Antelope database management system in the Contiki-NG operating system in versions 4.8 and prior. The problem exists in the Contiki File System (CFS)

  • 7.1 High severity

    vGPU software (guest driver) - Linux, vGPU…: Off-by-one Error

    CVE-2022-34684NVIDIA

    NVIDIA GPU Display Driver for Linux contains a vulnerability in the kernel mode layer (nvidia.ko), where an off-by-one error may lead to data tampering or information disclosure.

  • 7.5 High severity

    Drachtio-server: Off-by-one Error

    CVE-2022-47517DrachtioEPSS 1.56%

    An issue was discovered in the libsofia-sip fork in drachtio-server before 0.8.19. It allows remote attackers to cause a denial of service (daemon crash) via a crafted UDP message that causes a url_canonize2 heap-based buffer over-read because of an off-by-one

  • 7.5 High severity

    heimdal: Off-by-one Error

    CVE-2022-41916HeimdalEPSS 1.2%

    Heimdal is an implementation of ASN.1/DER, PKIX, and Kerberos. Versions prior to 7.7.1 are vulnerable to a denial of service vulnerability in Heimdal's PKI certificate validation library, affecting the KDC (via PKINIT) and kinit (via PKINIT), as well as any th

  • 8.6 High severity

    QEMU: Off-by-one Error

    CVE-2022-3872QEMUEPSS 1.1%

    An off-by-one read/write issue was found in the SDHCI device of QEMU. It occurs when reading/writing the Buffer Data Port Register in sdhci_read_dataport and sdhci_write_dataport, respectively, if data_count == block_size. A malicious guest could use this flaw

  • 9.8 Critical severity

    LoRaMac-node: Off-by-one Error

    CVE-2022-39274Lora-netEPSS 2.05%

    LoRaMac-node is a reference implementation and documentation of a LoRa network node. Versions of LoRaMac-node prior to 4.7.0 are vulnerable to a buffer overflow. Improper size validation of the incoming radio frames can lead to an 65280-byte out-of-bounds writ

  • 9.8 Critical severity

    Crow: Off-by-one Error

    CVE-2022-34970CrowCppEPSS 3.96%

    Crow before 1.0+4 has a heap-based buffer overflow via the function qs_parse in query_string.h. On successful exploitation this vulnerability allows attackers to remotely execute arbitrary code in the context of the vulnerable service.

  • 7.1 High severity

    ImageGear: Out-of-bounds Write

    CVE-2022-23400Accusoft

    A stack-based buffer overflow vulnerability exists in the IGXMPXMLParser::parseDelimiter functionality of Accusoft ImageGear 19.10. A specially-crafted PSD file can overflow a stack buffer, which could either lead to denial of service or, depending on the appl

  • 7.8 High severity

    Sudo Heap-Based Buffer Overflow Exploited

    CVE-2021-3156Sudo ProjectEPSS 100%

    Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character.