{"id":"CVE-2026-27695","aliases":["CVE-2026-27695","GHSA-76rv-2r9v-c5m6","PYSEC-2026-3434"],"related":[],"kind":"vulnerability","state":"published","title":"zae-limiter: DynamoDB hot partition throttling enables per-entity Denial of Service","summary":"zae-limiter is a rate limiting library using the token bucket algorithm. Prior to version 0.10.1, 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. Version 0.10.1 fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"zae-limiter is a rate limiting library using the token bucket algorithm. Prior to version 0.10.1, 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. Version 0.10.1 fixes the issue.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nAll 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.\n\n## Details\n\nEach `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`.\n\nThe library has no built-in mitigation:\n- No partition key sharding/salting\n- No write coalescing or batching\n- No client-side admission control before hitting DynamoDB\n- `RateLimiterUnavailable` is raised but the caller has already been delayed\n\n## Impact\n\n- **Availability**: High-traffic entities experience elevated latency and rejected requests beyond what their rate limits specify\n- **Fairness**: Other entities sharing the same DynamoDB partition may experience collateral throttling\n- **Multi-tenant risk**: In a shared LLM proxy scenario, one tenant's burst traffic could degrade service for others\n\n## Reproduction\n\n1. Create an entity with high rate limits (e.g., 100,000 rpm)\n2. Send sustained traffic at 1,000+ req/sec to a single entity\n3. Observe DynamoDB `ThrottledRequests` CloudWatch metric increasing\n4. Observe `acquire()` latency spikes and `RateLimiterUnavailable` exceptions\n\n## Remediation Design: Pre-Shard Buckets\n\n- Move buckets to `PK={ns}/BUCKET#{entity}#{resource}#{shard}, SK=#STATE` — one partition per (entity, resource, shard)\n- Auto-inject `wcu:1000` reserved limit on every bucket — tracks DynamoDB partition write pressure in-band (name may change during implementation)\n- Shard doubling (1→2→4→8) triggered by client on `wcu` exhaustion or proactively by aggregator\n- Shard 0 at suffix `#0` is source of truth for `shard_count`. Aggregator propagates to other shards\n- Original limits stored on bucket, effective limits derived: `original / shard_count`. Infrastructure limits (`wcu`) not divided\n- Shard selection: random/round-robin. On application limit exhaustion, retry on another shard (max 2 retries)\n- Lazy shard creation on first access\n- Bucket discovery via GSI3 (KEYS_ONLY) + BatchGetItem. GSI2 for resource aggregation unchanged\n- Cascade: parent unaware, protected by own `wcu`\n- Aggregator: parse new PK format, key by shard_id, effective limits for refill, filter `wcu` from snapshots\n- Clean break migration: schema version bump, old buckets ignored, new buckets created on first access\n- **$0.625/M preserved on hot path**","format":"markdown","source":"ghsa"},{"lang":"es","text":"zae-limiter es una librería de limitación de velocidad que utiliza el algoritmo de cubo de tokens. Antes de la versión 0.10.1, todos los cubos de límite de velocidad para una única entidad comparten la misma clave de partición de DynamoDB ('namespace/ENTITY#{id}'). Una entidad de alto tráfico puede exceder los límites de rendimiento por partición de DynamoDB (~1.000 WCU/seg), causando una limitación que degrada el servicio para esa entidad — y potencialmente para entidades coubicadas en la misma partición. La versión 0.10.1 corrige el problema.","source":"nvd"}],"published":"2026-02-25T14:56:27.221Z","modified":"2026-07-13T16:42:41.891Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 0.10.1","status":"affected"}],"vendor":"zeroae","product":"zae-limiter","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.10.1"}],"ecosystem":"PyPI","package":"zae-limiter","purl":"pkg:pypi/zae-limiter","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.10.1"}],"vendor":"zeroae","product":"zae-limiter","cpe":"cpe:2.3:a:zeroae:zae-limiter:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.10.1"}],"ecosystem":"PyPI","package":"zae-limiter","purl":"pkg:pypi/zae-limiter","source":"pysec"}],"references":[{"url":"https://github.com/zeroae/zae-limiter/security/advisories/GHSA-76rv-2r9v-c5m6","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/zeroae/zae-limiter/releases/tag/v0.10.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27695","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/zeroae/zae-limiter/commit/481ce44d818d66e31d8837bc48519660ce4c267f","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/zeroae/zae-limiter","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/zae-limiter","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-76rv-2r9v-c5m6","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-26T21:07:07.167Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27695","url":"https://www.cve.org/CVERecord?id=CVE-2026-27695","licence":"CVE Terms of Use","modified":"2026-02-26T21:33:41.329Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-76rv-2r9v-c5m6","url":"https://github.com/advisories/GHSA-76rv-2r9v-c5m6","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:41.891Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27695","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27695","licence":"Public domain","modified":"2026-06-17T10:27:31.953Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3434","url":"https://osv.dev/vulnerability/PYSEC-2026-3434","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:10.992Z"}],"updatedAt":"2026-11-25T22:59:14.841Z","epss":{"score":0.00273,"percentile":0.21019,"date":"2026-12-01T12:00:22.000Z"}}