Security context

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

aws/smithy-go
main @ 648e8ad
4
Fixes
0
CVEs
HIGH
Peak severity
66.7%
Coverage
Highlights
Denial of Service: 3 prior fixes. Scrutinize any change in this area.
transport/http/protocol/internal/json/shape_deserializer.go: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

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

Denial of Service: A process-crashing panic can be triggered during JSON and CBOR deserialization of nested union shapes. This occurs when the deserializer fails to properly track schema identifiers on the context stack, leading to panic states in d.head.Push.
Denial of Service: The LRU cache structure is vulnerable to a memory-exhaustion denial of service. Updating an existing key repeatedly causes the internal list to grow beyond its configured capacity without eviction, leading to an unbounded memory leak.
Memory Corruption: The use of unsafe string conversions (unsafe.String) during JSON parsing introduces potential memory safety issues and undefined behavior when underlying buffer states are shared or modified.