Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/Luzifer/ots
  4. ›
  5. GHSA-h5fq-653g-gxrm

GHSA-h5fq-653g-gxrm: ots has a negative expire override that can bypass its secret retention policy

May 5, 2026

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.

References

  • github.com/Luzifer/ots
  • github.com/Luzifer/ots/commit/3511bd18a2bec75bd9c6b4d513f2a90ccf4209b7
  • github.com/Luzifer/ots/releases/tag/v1.21.5
  • github.com/Luzifer/ots/security/advisories/GHSA-h5fq-653g-gxrm
  • github.com/advisories/GHSA-h5fq-653g-gxrm

Code Behaviors & Features

Detect and mitigate GHSA-h5fq-653g-gxrm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.21.5

Fixed versions

  • 1.21.5

Solution

Upgrade to version 1.21.5 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/Luzifer/ots/GHSA-h5fq-653g-gxrm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:18:40 +0000.