Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

obgm/libcoap
develop @ e2463f0
82
Fixes
16
CVEs
CRITICAL
Peak severity
33.3%
Coverage
Highlights
Buffer Overflow: 16 prior fixes. Scrutinize any change in this area.
src/net.c: most-fixed (13 issues). Treat as high-risk during review.
48 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Buffer Overflow: Inadequate length validation when parsing hostnames from CoAP URIs allows copying attacker-controlled input into fixed stack/heap buffers, leading to memory corruption during address resolution. This is a critical remote risk when proxy features are active.
Auth Bypass: Flaws in sequence number validation (such as skipping sender sequence validation checks or shift overflows in sliding window calculations) allow remote attackers to bypass OSCORE replay protections.
Memory Safety: Relying on unsafe parsing or assert() calls for bounds checking during CBOR unwrap and parsing operations allows attackers to trigger out-of-bounds reads and memory safety violations via malformed OSCORE configurations.