GHSA-h5fq-653g-gxrm json
ots has a negative expire override that can bypass its secret retention policy
published 6mo ago modified 3mo ago also GO-2026-5413
- cvss
- 5.3
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
## Summary
The `/api/create` endpoint accepted negative `expire` query values. For the memory storage backend, negative values were passed to secret creation as a negative duration and treated as no expiry, allowing callers to create secrets that persisted longer than intended.
## Impact
Unauthenticated users could bypass configured retention expectations for secrets they create by sending `POST /api/create?expire=-1`.
This does not allow reading or modifying secrets created by other users. Secrets remain one-time-read and, in the normal web flow, client-side encrypted.
## Affected versions
Versions up to and including v1.21.4 are affected.
## Patched versions
Fixed in v1.21.5.
## Workarounds
Disable expiry overrides via `disableExpiryOverride: true` until upgrading.
## Credit
Reported by Chai Cheng Xun via email.
Patch / fix
- go github.com/Luzifer/ots 1.21.5
Is GHSA-h5fq-653g-gxrm in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/Luzifer/ots | <1.21.5 |
1.21.5 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
Sources
- GitHub Advisory GHSA-h5fq-653g-gxrm
- OSV GO-2026-5413
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.