{"id":"GHSA-h5fq-653g-gxrm","aliases":["GHSA-h5fq-653g-gxrm","GO-2026-5413"],"related":[],"kind":"vulnerability","state":"published","title":"ots has a negative expire override that can bypass its secret retention policy","summary":"## 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"ots has a negative expire override that can bypass its secret retention policy in github.com/Luzifer/ots","format":"markdown","source":"go"}],"published":"2026-05-05T17:20:36.000Z","modified":"2026-07-21T14:49:20.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.21.5"}],"ecosystem":"Go","package":"github.com/Luzifer/ots","purl":"pkg:golang/github.com/Luzifer/ots","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.21.5"}],"ecosystem":"Go","package":"github.com/Luzifer/ots","purl":"pkg:golang/github.com/Luzifer/ots","source":"go"}],"references":[{"url":"https://github.com/Luzifer/ots/security/advisories/GHSA-h5fq-653g-gxrm","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/Luzifer/ots/commit/3511bd18a2bec75bd9c6b4d513f2a90ccf4209b7","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/Luzifer/ots","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/Luzifer/ots/releases/tag/v1.21.5","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h5fq-653g-gxrm","url":"https://github.com/advisories/GHSA-h5fq-653g-gxrm","licence":"CC-BY-4.0","modified":"2026-07-21T14:49:20.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5413","url":"https://pkg.go.dev/vuln/GO-2026-5413","licence":"CC-BY-4.0","modified":"2026-06-25T23:00:16.329Z"}],"updatedAt":"2026-11-25T22:56:24.842Z"}