Read the docs

OTS expire override creates secrets that never expire

Priority LOW 39CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · GHSA-6ppq-9x26-5r92. Fix status from GitHub.

Summary

The OTS one-time secret sharing service lets clients override the configured secret expiry through the expire query parameter on the secret creation endpoint. An unauthenticated remote attacker can send expire=0 to create secrets that never expire, even when the operator set a maximum lifetime with SECRET_EXPIRY. Unread secrets can therefore stay stored indefinitely, with the flaw affecting both Redis-backed and in-memory storage. The weakness is classified as CWE-20 (improper input validation).

Written with Claude Haiku 5.5 from the sources below · 2026-12-03

Description from the GitHub advisory

### 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.

Why it matters now

Fix Fixed github.com/Luzifer/ots (Go): 1.21.8

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—github.com/Luzifer/ots (Go)before 1.21.81.21.8Patch availableGHSA-6ppq-9x26-5r92
  • github.com/Luzifer/ots (Go) Vendor— Affected before 1.21.8 Fixed in 1.21.8 Patch available GHSA-6ppq-9x26-5r92

Remediation

Upgrade github.com/Luzifer/ots to version 1.21.8 or later, which fixes the flaw in the Go module from version 0 before 1.21.8.

Written with Claude Haiku 5.5 from the sources below · 2026-12-03

  • Fix · GHSA-6ppq-9x26-5r92 github.com/Luzifer/ots (Go) Fixed in 1.21.8 Advisory →

Timeline

  1. 2026-12-03 Threatist record created from GHSA-6ppq-9x26-5r92

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences