mediumCVSS 5.3Vulnerability

GHSA-h5fq-653g-gxrm

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

Properties

ghsa_id
GHSA-h5fq-653g-gxrm
severity
medium
summary
ots has a negative expire override that can bypass its secret retention policy
cvss_score
5.3
cve_id
GHSA-h5fq-653g-gxrm
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
is_ghsa_only
true
ghsa_published
2026-05-05T17:20:36Z
source_url
https://github.com/advisories/GHSA-h5fq-653g-gxrm
ghsa_updated
2026-05-05T17:20:37Z

Related Entities (4)

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]go/github.com/Luzifer/ots

AFFECTS (1)

[Software]go/github.com/Luzifer/ots

HAS_WEAKNESS (1)

[Weakness]Improper Input Validation

Explore deeper with Ninja Signal's threat intelligence graph