zae-limiter
Affected
- introduced
0, fixed0.10.1(ecosystem)
Fixed versions
0.10.1
Fix
- Fixed version
0.10.1pip install --upgrade zae-limiter==0.10.1
Advisory
Also known as: CVE-2026-27695, GHSA-76rv-2r9v-c5m6
zae-limiter: DynamoDB hot partition throttling enables per-entity Denial of Service
Summary
All rate limit buckets for a single entity share the same DynamoDB partition key (namespace/ENTITY#{id}). A high-traffic entity can exceed DynamoDB's per-partition throughput limits (~1,000 WCU/sec), causing throttling that degrades service for that entity — and potentially co-located entities in the same partition.
Details
Each acquire() call performs a TransactWriteItems (or UpdateItem in speculative mode) against items sharing the same partition key. For cascade entities, this doubles to 2-4 writes per request (child + parent). At sustained rates above ~500 req/sec for a single entity, DynamoDB's adaptive capacity may not redistribute fast enough, causing ProvisionedThroughputExceededException.
The library has no built-in mitigation:
RateLimiterUnavailable is raised but the caller has already been delayedImpact
Reproduction
ThrottledRequests CloudWatch metric increasingacquire() latency spikes and RateLimiterUnavailable exceptionsRemediation Design: Pre-Shard Buckets
PK={ns}/BUCKET#{entity}#{resource}#{shard}, SK=#STATE — one partition per (entity, resource, shard)wcu:1000 reserved limit on every bucket — tracks DynamoDB partition write pressure in-band (name may change during implementation)wcu exhaustion or proactively by aggregator#0 is source of truth for shard_count. Aggregator propagates to other shardsoriginal / shard_count. Infrastructure limits (wcu) not dividedwcuwcu from snapshotsMedium Basis: CVSS v3 score 4.3, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
0, fixed 0.10.1 (ecosystem)0.10.1
0.10.1pip install --upgrade zae-limiter==0.10.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0