GHSA-X2G4-7MJ7-2HHJ
OC-65: overflow compaction retry counter reset after truncation amplifies bounded retry/cost cycles
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-X2G4-7MJ7-2HHJ divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Vulnerability
`overflowCompactionAttempts` could be reset after successful tool-result truncation, allowing additional overflow recovery retries beyond the intended global budget.
This was previously described as unbounded/infinite compaction. Code review confirmed the loop is bounded, but the reset still increases retry/cost amplification in worst-case overflow scenarios.
Affected Packages / Versions
- Package: `openclaw` (npm)
- Affected versions: `>=2026.2.9` and `<=2026.2.19-2`
- First affected release: `2026.2.9`
- Latest affected release at triage time: `2026.2.19-2`
- Planned patched version: `2026.2.21`
Impact
- Bounded API cost amplification from extra overflow recovery retries.
- Increased model/API calls in adversarial overflow inputs.
- No confirmed infinite loop in this path.
Technical Details
In `src/agents/pi-embedded-runner/run.ts`, successful tool-result truncation reset the overflow retry counter (`overflowCompactionAttempts = 0`) while `toolResultTruncationAttempted` remained one-shot. This preserved eventual termination, but expanded retry budget after truncation.
Remediation
- Keep overflow retry budgeting global across truncation recovery.
- Do not reset `overflowCompactionAttempts` after truncation.
- Add regression test for truncation-success followed by persistent overflow.
Fix Commit(s)
- `084f6210255da3ad3f2129ccfcfc84a094e10094`
- `b577228d6ba3a924c2b788100779b6098ea70b21`
Release Process Note
`patched_versions` is pre-set to planned next release `>=2026.2.21`. After npm publish of that version, the advisory can be published without further content edits.
Thanks @aether-ai-agent for reporting.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmopenclaw |
Corregida | >=2026.2.21 | — | — |
>=2026.2.21Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/openclaw/openclaw/security/advisories/GHSA-x2g4-7mj7-2hhjLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
