GHSA-h5fq-653g-gxrm
MEDIUM 5.3CVSS 3.1ots has a negative expire override that can bypass its secret retention policy
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.
- Published
- 5 May 2026
- Last modified
- 21 Jul 2026
- Weakness
- CWE-20
- Also known as
- GO-2026-5413
- Sources
- OSVJSONOSV GO-2026-5413JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/Luzifer/ots | < 1.21.5 | 1.21.5 |
References
- https://github.com/Luzifer/ots/security/advisories/GHSA-h5fq-653g-gxrm · WEB, ADVISORY
- https://github.com/Luzifer/ots/commit/3511bd18a2bec75bd9c6b4d513f2a90ccf4209b7 · WEB, FIX
- https://github.com/Luzifer/ots · PACKAGE
- https://github.com/Luzifer/ots/releases/tag/v1.21.5 · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 May 2026)