{"id":"GHSA-h5fq-653g-gxrm","revision":"065597902bb3462eb2e0f53e7dccd9d3","records":[{"revision":"065597902bb3462eb2e0f53e7dccd9d3","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-h5fq-653g-gxrm","aliases":["GO-2026-5413"],"title":"ots has a negative expire override that can bypass its secret retention policy","description":"## 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.","state":0,"publishedAt":"2026-05-05T17:20:36+00:00","modifiedAt":"2026-07-21T14:49:20+00:00","affected":[{"ecosystem":"Go","name":"github.com/Luzifer/ots","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.21.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/Luzifer/ots/security/advisories/GHSA-h5fq-653g-gxrm","https://github.com/Luzifer/ots/commit/3511bd18a2bec75bd9c6b4d513f2a90ccf4209b7","https://github.com/Luzifer/ots","https://github.com/Luzifer/ots/releases/tag/v1.21.5"],"sourceUrl":"https://github.com/advisories/GHSA-h5fq-653g-gxrm","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-h5fq-653g-gxrm","identifiers":["GHSA-h5fq-653g-gxrm","GO-2026-5413"]},"retained":false,"historicalAffected":[]}],"coverage":[]}