GHSA-6ppq-9x26-5r92

Suggest an improvement
Source
https://github.com/advisories/GHSA-6ppq-9x26-5r92
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-6ppq-9x26-5r92/GHSA-6ppq-9x26-5r92.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6ppq-9x26-5r92
Published
2026-12-03T21:32:59Z
Modified
2026-12-03T21:45:03Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
OTS Expire override allows creation of non-expiring secrets despite configured maximum TTL
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-20"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-03T21:32:59Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/Luzifer/ots

Package

Name
github.com/Luzifer/ots
View open source insights on deps.dev
Purl
pkg:golang/github.com/Luzifer/ots

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.21.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-6ppq-9x26-5r92/GHSA-6ppq-9x26-5r92.json"