CWE-193: Off-by-one Error, published in 2022
Filter
A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.
What the weakness is: CWE-193 at MITRE. All weaknesses
Ask an AI about CWE-193
Show the prompt
Explain CWE-193: Off-by-one Error and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/193.html and https://cve.bz/cve/cwe/193?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.1CVE-2022-34684nvidiaEPSS 0.3%
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.
- 5.3CVE-2022-36354EPSS 0.8%
A heap out-of-bounds read vulnerability exists in the RLA format parser of OpenImageIO master-branch-9aeece7a and v2.3.19.0. More specifically, in the way run-length encoded byte spans are handled. A malformed RLA file can lead to an out-o…
- 7.5CVE-2022-47517drachtio drachtio-serverEPSS 1.6%
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 bec…
- 7.5CVE-2022-41916EPSS 1.3%
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 PKINI…
- 5.5CVE-2022-3821EPSS 0.4%
An off-by-one Error issue was discovered in Systemd in format_timespan() function of time-util.c. An attacker could supply specific values for time and accuracy that leads to buffer overrun in format_timespan(), leading to a Denial of Serv…
- 8.6CVE-2022-3872qemuEPSS 1.2%
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 gues…
- 9.1CVE-2021-46848EPSS 2.8%
GNU Libtasn1 before 4.19.0 has an ETYPE_OK off-by-one array size check that affects asn1_encode_simple_der.
- 9.8CVE-2022-39274semtech loramac-nodeEPSS 2.1%
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-by…
- 7.8CVE-2022-3103linux kernelEPSS 0.3%
off-by-one in io_uring module.
- 7.8CVE-2021-3999EPSS 0.8%
A flaw was found in glibc. An off-by-one buffer overflow and underflow in getcwd() may lead to memory corruption when the size of the buffer is exactly 1. A local attacker who can control the input buffer and size passed to getcwd() in a s…
- 7.5CVE-2020-27793radare radare2EPSS 1.2%
An off-by-one overflow flaw was found in radare2 due to mismatched array length in core_java.c. This could allow an attacker to cause a crash, and perform a denail of service attack.
- 9.8CVE-2022-34970crowcpp crowEPSS 4.1%
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.
- 5.5CVE-2022-30155microsoftEPSS 5.5%
Windows Kernel Denial of Service Vulnerability
- 7.1CVE-2022-23400accusoft imagegearEPSS 0.7%
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, …
- 8.8CVE-2021-21938accusoft imagegearEPSS 1.9%
A heap-based buffer overflow vulnerability exists in the Palette box parser functionality of Accusoft ImageGear 19.10. A specially-crafted file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerabil…
- 5.5CVE-2022-25051rtl 433 project rtl 433EPSS 0.9%
An Off-by-one Error occurs in cmr113_decode of rtl_433 21.12 when decoding a crafted file.
- 9.1CVE-2021-4070v2fly v2ray-coreEPSS 0.9%
Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.
- 6.5CVE-2021-3930EPSS 0.3%
An off-by-one error was found in the SCSI device emulation in QEMU. It could occur while processing MODE SELECT commands in mode_sense_page() if the 'page' argument was set to MODE_PAGE_ALLS (0x3f). A malicious guest could use this flaw to…
- 9.8CVE-2022-24988galois 2p8 project galois 2p8EPSS 1.1%
In galois_2p8 before 0.1.2, PrimitivePolynomialField::new has an off-by-one buffer overflow for a vector.