A value parsed by std::stoi()/std::stol()/std::stoll() with base 16 is used as an array or container index without validating the parsed characters with std::isxdigit. Base-16 std::stoi() accepts a leading '-' sign and throws std::invalid_argument on non-hex characters, so attacker-controlled text shaped like "<0xXX>" but containing a sign or non-hex charact
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
- 6960
- Downloads
- 14.1M
- Verified
- 6960
- Authors
- 2
A frame/message length decoded from the wire ($LEN) is used as the extent of a buffer write/advance without a runtime bounds check: either it is consumed with no validation at all (parser side), or the only enforcement is ASSERT(...), which is compiled out of release builds (NDEBUG). A peer-supplied length larger than the receive buffer makes the masked writ
A message length decoded from network byte order is used without any runtime bound/equality check (only ASSERT()-style checks, which are compiled out in release builds) to compute a memmove()/memcpy() destination by backward pointer arithmetic ($BASE - $LEN ...). An attacker-chosen length moves the destination up to 64 KiB before the start of the heap buffer
A pointer-dereferenced index is bounds-checked against len(...) with an upper-bound-only predicate. A negative value (e.g. an optional attribute deserialized from untrusted XML/JSON into a pointer field) passes the guard and reaches a slice index expression, causing an "index out of range [-N]" panic that terminates the process. Validate the lower bound in t
A typed-array view is constructed over $ARR.buffer at parse position $POS using length $LEN without first validating $LEN against the remaining bytes of the view itself ($ARR.length - $POS). A wire-supplied length prefix larger than the remaining view silently spans the rest of the shared ArrayBuffer (out-of-bounds read relative to the message being decoded)
Range validation of caller-supplied id sequence $IDS only rejects values above an upper limit (max($IDS) > limit) and never rejects negative values. A negative id passes validation and is later used as an index (e.g. an embedding-table row); on GPU backends the out-of-range index raises a device-side assertion that poisons the accelerator context and fails e
Key-value string splitting with strings.Split or strings.SplitN accesses index 1 after matching index 0 without verifying slice length. If the input lacks the delimiter, strings.Split returns a single-element slice, causing an index out of bounds panic when accessing index 1.
Array buffer, offset, and length arguments are passed directly to a native method without validation. In JNI methods, out-of-bounds offsets or lengths can cause memory corruption, out-of-bounds reads, or abrupt JVM crashes. Validate that offset >= 0, length >= 0, and offset + length <= buffer.length before invoking native code.
Unchecked indexing into the result of metadata.MD.Get() can trigger an out-of-bounds panic and crash the server if the client omits the header. Always verify that the slice is non-empty before accessing index 0.
Detected reference index dereference after cache lookup without validating array bounds. Supplying out-of-bounds indices can lead to sparse array representation thrashing and algorithmic complexity denial of service.
The peer-supplied protocol payload `$P` is sliced/indexed at a fixed offset ($K) without validating its length. The peer controls the payload size, so a malformed or truncated message makes this expression panic with "slice bounds out of range"; when it runs in a goroutine without a recover(), the whole process terminates (CVE-2026-77375: an authenticated SS
A parsing routine copies bytes straight out of an input buffer it received as a bare pointer: the function signature carries no length or end parameter and the body derives no bounded end pointer, so nothing constrains the copy against the real buffer size. The memcpy source operand is the unsized buffer itself (the bare pointer, or that pointer plus an offs
Slice access is guarded only by an upper bound check (`len(...) > idx` or `idx < len(...)`) without verifying that `idx >= 0`. If `idx` is negative, the condition evaluates to true and indexing the slice triggers a panic.
Bootstrap setup hooks create and populate /etc/apt/trusted.gpg.d (apt's trust-anchor store) in the target rootfs, but no hook restores root ownership of that path. When the bootstrap runs unprivileged (e.g. mmdebstrap --mode=unshare), the directory and every keyring copied from the build-user-owned WORKDIR keep the build user's numeric uid/gid in the produce
Byte slice index or slice expression accessed before validating slice length with len(). This can trigger an out-of-bounds slice access panic on unexpected or truncated input.
Slicing SSH request payload without checking its length can cause a runtime panic if the payload is smaller than expected. Always check `len(req.Payload)` before indexing or slicing.
A buffer offset is computed as len(<C-string decoded from the same byte slice>) + 1 and the buffer is then re-sliced at that offset without verifying that a NUL terminator exists or that the offset is inside the buffer. ByteSliceToString returns the whole buffer when it contains no 0x00 byte, so an empty or unterminated attacker-controlled payload (e.g. a cr
$LAYER->_class[$LAYER->numclasses - 1] (or _SLDApplyRuleValues(..., 1)) is evaluated without verifying that the preceding parse/apply step actually added at least one class. A structurally valid SLD <Rule> that has an <ElseFilter/> but no symbolizer adds zero classes, so numclasses can be 0 and the index becomes -1, dereferencing _class[-1] (NULL/OOB pointer
Length $LEN is parsed from the byte stream as a signed value (`int(int32(binary.BigEndian.Uint32(...)))`) and used as a slice upper bound `$BUF[$OFF : $OFF + $LEN]`, but the only validation is the signed comparison `len(...) < $LEN`, which is always false when $LEN is negative. Any peer-supplied length other than the -1 sentinel therefore bypasses the bounds
net_nbr_get_lladdr($NBR->idx) is called without first validating the neighbor index against the NET_NBR_LLADDR_UNKNOWN (0xFF) sentinel. An unresolved neighbor cache entry (INCOMPLETE ND entry, or a router learned without a source link-layer address option) carries idx == NET_NBR_LLADDR_UNKNOWN, and net_nbr_get_lladdr() performs no runtime bounds check beyond
Virtio used-ring descriptor ID is used as an array index without bounds checking against the queue size. An untrusted virtio device or host backend can supply an out-of-bounds ID to trigger out-of-bounds access or control-flow hijacking. Validate that the descriptor ID is within queue bounds (e.g., id < vq->num).