GHSA-6ppq-9x26-5r92: Github.com/Luzifer/ots OTS Expire Override Allows Creation Vulnerability

MODERATE
CVSS 5.3
CWE-20
Published
Advisory Summary

GHSA-6ppq-9x26-5r92 is a MODERATE (CVSS 5.3) ots expire override allows creation vulnerability (CWE-20: Improper Input Validation) affecting Github.com/Luzifer/ots libraries in the Go ecosystem. The issue involves ots expire override allows creation of non-expiring secrets despite configured maximum ttl. Remediation is available by upgrading affected packages to version 1.21.8.

GHSA-6ppq-9x26-5r92 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-6ppq-9x26-5r92
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/Luzifer/ots
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-6ppq-9x26-5r92

To remediate this vulnerability, upgrade all affected Github.com/Luzifer/ots dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/Luzifer/ots fixed: 1.21.8
Upgrade github.com/Luzifer/ots to 1.21.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/Luzifer/ots

How to Check if You Are Affected

To determine whether your application is affected by GHSA-6ppq-9x26-5r92, inspect your project dependencies for Github.com/Luzifer/ots:

inspect dependencies for github.com/Luzifer/ots

Analyze the terminal output to locate any version of Github.com/Luzifer/ots in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.21.8), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/Luzifer/ots, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

GHSA-6ppq-9x26-5r92 Affected Github.com/Luzifer/ots Versions

1 component(s)
Fixed Versions:
1.21.8
Product / Package Ecosystem Affected Versions Fixed Version
github.com/Luzifer/ots
Go
< 1.21.8
1.21.8

References

Frequently Asked Questions

What is GHSA-6ppq-9x26-5r92?
GHSA-6ppq-9x26-5r92 is a security vulnerability in Github.com/Luzifer/ots involving OTS Expire override allows creation of non-expiring secrets despite configured maximum TTL under CWE-20: Improper Input Validation.
Which Github.com/Luzifer/ots versions are affected?
Affected versions include releases prior to 1.21.8 across affected packages: github.com/Luzifer/ots.
What version fixes GHSA-6ppq-9x26-5r92?
Upgrading to 1.21.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/Luzifer/ots affected?
Yes, github.com/Luzifer/ots is affected in releases prior to 1.21.8. Upgrade your dependency to 1.21.8 or later.
What is the CVSS score of GHSA-6ppq-9x26-5r92?
GHSA-6ppq-9x26-5r92 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with GHSA-6ppq-9x26-5r92?
GHSA-6ppq-9x26-5r92 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for GHSA-6ppq-9x26-5r92?
Run the dependency tree command: 'inspect dependencies for github.com/Luzifer/ots'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6ppq-9x26-5r92",
  "modified" : "2026-12-03T21:32:59Z",
  "published" : "2026-12-03T21:32:59Z",
  "aliases" : [ ],
  "summary" : "OTS Expire override allows creation of non-expiring secrets despite configured maximum TTL",
  "details" : "### Summary\n\nOTS 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.\n\n### Impact\n\nAn unauthenticated remote attacker can create secrets that do not expire automatically, even when the instance operator configured a maximum secret lifetime through `SECRET_EXPIRY`.\n\nThis 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.\n\nThe 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/Luzifer/ots"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.21.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/security/advisories/GHSA-6ppq-9x26-5r92"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/commit/035019e443819919190a0c1e4cd96e2ff33aa754"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Luzifer/ots"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/releases#release-v1.21.8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T21:32:59Z",
    "nvd_published_at" : null
  }
}