Security mailing lists by PureSourceCode

GHSA-6ppq-9x26-5r92

MEDIUM 5.3CVSS 3.1

OTS Expire override allows creation of non-expiring secrets despite configured maximum TTL

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.

Published
3 Dec 2026
Last modified
3 Dec 2026
Weakness
CWE-20
Sources
OSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/Luzifer/ots < 1.21.8 1.21.8

References

History

  • 3 Dec 2026 23:56 UTC · OSV: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.