GHSA-h5fq-653g-gxrm: Github.com/Luzifer/ots Ots Has A Negative Expire Vulnerability
MODERATEGHSA-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
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).
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.
Upgrade github.com/Luzifer/ots to 1.21.5
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
GHSA-h5fq-653g-gxrm Affected Github.com/Luzifer/ots Versions
1 component(s)| 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?
Which Github.com/Luzifer/ots versions are affected?
What version fixes GHSA-h5fq-653g-gxrm?
Is github.com/Luzifer/ots affected?
What is the CVSS score of GHSA-h5fq-653g-gxrm?
What CWE is associated with GHSA-h5fq-653g-gxrm?
How can I check Go dependencies for GHSA-h5fq-653g-gxrm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}