OTS Expire override allows creation of non-expiring secrets despite configured maximum TTLGHSA-6ppq-9x26-5r92
MEDIUMFix: Luzifer/ots@035019eGHSA-6ppq-9x26-5r92 is a medium-severity (CVSS 5.3) vulnerability in github.com/Luzifer/ots. A fix is available for github.com/Luzifer/ots — see the affected versions and patch details below.
Real-World Exposure
github.com/Luzifer/otsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Summary
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.
Impact
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/Luzifer/ots | all versions | 1.21.8go get github.com/Luzifer/ots@v1.21.8 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/Luzifer/ots, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/Luzifer/ots to 1.21.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-6ppq-9x26-5r92 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-6ppq-9x26-5r92 in your dependencies?
Find it across Go, including transitive dependencies.