Explore

Rule Explorer

Search the public rule index by CVE, GHSA, CWE, language, framework, author, or rule slug. Filter by language, framework, severity, confidence, license, and validation status.

Public rules
4797
Downloads
7.5M
Verified
4797
Authors
2
Search the rule indexUse CVE, GHSA, CWE, language, framework, package, or rule slug.
11 rules matched. Showing 11 loaded rules.
Publish rule
CVE-2026-65927: For Loop Off By One Restartcve-2026-65927-for-loop-off-by-one-restart

Resetting loop variable '$I' to 0 immediately before 'continue' in an incrementing for-loop causes '$I' to increment to 1 on the next iteration, skipping index 0. Set '$I = -1' if the loop is intended to restart from index 0.

by Provallyupdated 2026-09-02Apache-2.0
2790 direct279 via packs
downloads
65quality
CVE-2026-48689: Cpp Capacity Off By Onecve-2026-48689-cpp-capacity-off-by-one

An improper bounds check was found where a required capacity upper limit is incorrectly increased by one (`> size + 1`). This off-by-one limit validation allows exactly one byte to be written or read out of bounds. Ensure limits bounds rely strictly on exact sizes, checking `offset + length > size`.

by Provallyupdated 2026-06-23Apache-2.0
2K0 direct2K via packs
downloads
70quality
CVE-2026-33997: Slice Equality Off By Onecve-2026-33997-slice-equality-off-by-one

A loop variable is initialized to 1 instead of 0 during a slice comparison. This skips the first element of the slice (index 0). If this function is used for security validation (e.g., evaluating privileges or rules), it could lead to policy bypasses. Ensure index 0 is validated, or initialize the loop variable to 0.

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
65quality
CVE-2026-32605: Rust Off By One Bounds Checkcve-2026-32605-rust-off-by-one-bounds-check

Using strict greater-than (>) instead of greater-than-or-equal (>=) against a collection length or count can allow an index exactly equal to the length to bypass validation, potentially leading to out-of-bounds accesses and panics.

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
68quality
CVE-2026-32135: Urldecoding Off By One Overflowcve-2026-32135-urldecoding-off-by-one-overflow

A string is decoded into a dynamically allocated buffer that is restricted to the exact size of the input string length, but a null byte is unconditionally written at the end. This leads to an off-by-one heap buffer overflow if the input does not shrink during decoding. Ensure that the buffer allocation explicitly reserves space for the null terminator (e.g.

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
65quality
CVE-2026-31969: Postfix Decrement Bounds Check Oobcve-2026-31969-postfix-decrement-bounds-check-oob

A loop reads from a pointer before performing bounds checking or checking remaining capacity, leading to potential out-of-bounds reads. Furthermore, using postfix decrement (`term-- < 0`) inside the loop causes off-by-one capacity failures, potentially leading to a one-byte buffer overflow (OOB write). Check limits before pointer dereference using a prefix d

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
73quality
CVE-2026-29775: Target Exact Allocation For Vulnerable Cache Cellscve-2026-29775-target-exact-allocation-for-vulnerable-cache-cells

The 'cells' structure member is allocated exactly to a defined maximum number of elements without padding. If index guards are off-by-one (as noted in FreeRDP CVE-2026-29775), this direct allocation enables heap out-of-bounds memory access. Ensure the element count is properly padded (e.g., + 1) to mitigate potential off-by-one access violations.

by Provallyupdated 2026-06-23Apache-2.0
2K0 direct2K via packs
downloads
73quality
CVE-2024-41311: Off By One Image Bounds Checkcve-2024-41311-off-by-one-image-bounds-check

Bounds checking uses `>` instead of `>=` against width/height dimensions. This allows an off-by-one out-of-bounds access if the value equals the dimension size. Fix by using inclusive `>=` conditional bounds checking.

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
68quality
CVE-2024-21875: Uncapped Circular Increment After Resetcve-2024-21875-uncapped-circular-increment-after-reset

Detected an unconditional increment of an index/cursor after a boundary check and reset. This logic causes the cursor to go out of bounds before the check (off-by-one) and skips the 0th element after a reset. Ensure the increment happens in an `else` branch or fix the bounds logic.

by Provallyupdated 2026-06-12Apache-2.0
2.3K0 direct2.3K via packs
downloads
70quality
All matching rules loaded.