Go
GHSA-6ppq-9x26-5r92
OTS Expire override allows creation of non-expiring secrets despite configured maximum TTL
- Severity
- Medium 5.3
- Published
- 3 Dec 2026
- Last changed
- 3 Dec 2026
- Added to UpHeron
- 3 Dec 2026
- Fixed in
- 1.21.8
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N- Sources
- OSV.dev and GitHub
Description
OTS allows clients to override the configured secret expiry through the expire query parameter on the secret creation endpoint. When a server is configured with a positive SECRET_EXPIRY value, sending expire=0 bypasses the configured maximum TTL and creates a secret without an expiration time.
An unauthenticated remote attacker can create secrets that do not expire automatically, even when the instance operator configured a maximum secret lifetime through SECRET_EXPIRY.
This bypasses the configured retention policy for unread secrets. The secret is still removed when it is read successfully, but if it is never read, it can remain stored indefinitely.
The issue affects both Redis-backed and in-memory storage. In Redis, a zero expiration is passed to go-redis Set, which creates the key without an expiration. In the memory backend, zero duration similarly results in no expiry timestamp being set.
Affected software
| Software | Affected versions |
|---|---|
github.com/Luzifer/otsGo · osv:Go:github.com/Luzifer/ots |
|
About github.com/Luzifer/ots
Vulnerabilities in github.com/Luzifer/ots
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- GHSA-92r4-rpw3-7cwmOTS Redis storage backend allows non-atomic one-time secret retrieval under concurrent requestsMedium 5.3 3 Dec 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-6ppq-9x26-5r92