GHSA-h5fq-653g-gxrm: Github.com/Luzifer/ots Ots Has A Negative Expire Vulnerability

MODERATE
CVSS 5.3
CWE-20
Published
Advisory Summary

GHSA-h5fq-653g-gxrm is a MODERATE (CVSS 5.3) ots has a negative expire vulnerability (CWE-20: Improper Input Validation) affecting Github.com/Luzifer/ots libraries in the Go ecosystem. The issue involves ots has a negative expire override that can bypass its secret retention policy. Remediation is available by upgrading affected packages to version 1.21.5.

GHSA-h5fq-653g-gxrm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h5fq-653g-gxrm
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:L/I:N/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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-h5fq-653g-gxrm

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.5
Upgrade github.com/Luzifer/ots to 1.21.5
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-h5fq-653g-gxrm, 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.5), 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 The `/api/create` endpoint accepted negative `expire` query values. For the memory storage backend, negative values were passed to secret creation as a negative duration and treated as no expiry, allowing callers to create secrets that persisted longer than intended. ## Impact Unauthenticated users could bypass configured retention expectations for secrets they create by sending `POST /api/create?expire=-1`. This does not allow reading or modifying secrets created by other users. Secrets remain one-time-read and, in the normal web flow, client-side encrypted. ## Affected versions Versions up to and including v1.21.4 are affected. ## Patched versions Fixed in v1.21.5. ## Workarounds Disable expiry overrides via `disableExpiryOverride: true` until upgrading. ## Credit Reported by Chai Cheng Xun via email.

GHSA-h5fq-653g-gxrm Affected Github.com/Luzifer/ots Versions

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

References

Frequently Asked Questions

What is GHSA-h5fq-653g-gxrm?
GHSA-h5fq-653g-gxrm is a security vulnerability in Github.com/Luzifer/ots involving ots has a negative expire override that can bypass its secret retention policy under CWE-20: Improper Input Validation.
Which Github.com/Luzifer/ots versions are affected?
Affected versions include releases prior to 1.21.5 across affected packages: github.com/Luzifer/ots.
What version fixes GHSA-h5fq-653g-gxrm?
Upgrading to 1.21.5 (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.5. Upgrade your dependency to 1.21.5 or later.
What is the CVSS score of GHSA-h5fq-653g-gxrm?
GHSA-h5fq-653g-gxrm 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:L/I:N/A:N.
What CWE is associated with GHSA-h5fq-653g-gxrm?
GHSA-h5fq-653g-gxrm 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-h5fq-653g-gxrm?
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-h5fq-653g-gxrm",
  "modified" : "2026-07-21T14:49:20Z",
  "published" : "2026-05-05T17:20:36Z",
  "aliases" : [ ],
  "summary" : "ots has a negative expire override that can bypass its secret retention policy",
  "details" : "## Summary\n\nThe `/api/create` endpoint accepted negative `expire` query values. For the memory storage backend, negative values were passed to secret creation as a negative duration and treated as no expiry, allowing callers to create secrets that persisted longer than intended.\n\n## Impact\n\nUnauthenticated users could bypass configured retention expectations for secrets they create by sending `POST /api/create?expire=-1`.\n\nThis does not allow reading or modifying secrets created by other users. Secrets remain one-time-read and, in the normal web flow, client-side encrypted.\n\n## Affected versions\n\nVersions up to and including v1.21.4 are affected.\n\n## Patched versions\n\nFixed in v1.21.5.\n\n## Workarounds\n\nDisable expiry overrides via `disableExpiryOverride: true` until upgrading.\n\n## Credit\n\nReported by Chai Cheng Xun via email.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/Luzifer/ots"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.21.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.21.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/security/advisories/GHSA-h5fq-653g-gxrm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/commit/3511bd18a2bec75bd9c6b4d513f2a90ccf4209b7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Luzifer/ots"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/releases/tag/v1.21.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T17:20:36Z",
    "nvd_published_at" : null
  }
}