GHSA-92r4-rpw3-7cwm: Github.com/Luzifer/ots OTS Redis Storage Backend Allows Vulnerability

MODERATE
CVSS 5.3
CWE-367
Published
Advisory Summary

GHSA-92r4-rpw3-7cwm is a MODERATE (CVSS 5.3) ots redis storage backend allows vulnerability (CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Github.com/Luzifer/ots libraries in the Go ecosystem. The issue involves ots redis storage backend allows non-atomic one-time secret retrieval under concurrent requests. Remediation is available by upgrading affected packages to version 1.21.8.

GHSA-92r4-rpw3-7cwm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-92r4-rpw3-7cwm
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Affected Product Github.com/Luzifer/ots
Package Ecosystem Go
Published Date
Last Updated

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:H/PR:N/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-92r4-rpw3-7cwm

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.

github.com/Luzifer/ots fixed: 1.21.8
Upgrade github.com/Luzifer/ots to 1.21.8
Verify Direct and Transitive Dependencies

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-92r4-rpw3-7cwm, 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.8), 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-367: Time-of-check Time-of-use (TOCTOU) Race Condition, where the product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. 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

### Summary The Redis storage backend performs secret retrieval and deletion as two separate operations (`GET` followed by `DEL`). Under highly concurrent access to the same secret ID, more than one request may read the secret before it is deleted. This can violate the intended one-time-read property for Redis-backed deployments. ### Impact This issue affects deployments using the Redis storage backend. The issue is theoretically exploitable by racing multiple requests against the same secret ID. In local laboratory testing, concurrent requests can retrieve the same secret more than once because deletion is not atomic. In real-world conditions, exploitation is not considered practical for confidentiality impact unless the attacker already knows the secret URL/ID and can precisely time requests within the very small interval between Redis `GET` and `DEL`, or can themselves issue concurrent requests for a secret they already possess access to. Therefore, this is best treated as a violation of the one-time-read guarantee under artificial race conditions rather than a practical remote disclosure vulnerability. ### Attack Requirements An attacker would need: - Knowledge of the secret ID / secret URL - Network access to the OTS instance - Ability to issue highly concurrent requests, or to race the legitimate recipient’s read request within a very small timing window - The attacker cannot discover arbitrary secrets through this issue.

GHSA-92r4-rpw3-7cwm Affected Github.com/Luzifer/ots Versions

1 component(s)
Fixed Versions:
1.21.8
Product / Package Ecosystem Affected Versions Fixed Version
github.com/Luzifer/ots
Go
< 1.21.8
1.21.8

References

Frequently Asked Questions

What is GHSA-92r4-rpw3-7cwm?
GHSA-92r4-rpw3-7cwm is a security vulnerability in Github.com/Luzifer/ots involving OTS Redis storage backend allows non-atomic one-time secret retrieval under concurrent requests under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition.
Which Github.com/Luzifer/ots versions are affected?
Affected versions include releases prior to 1.21.8 across affected packages: github.com/Luzifer/ots.
What version fixes GHSA-92r4-rpw3-7cwm?
Upgrading to 1.21.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/Luzifer/ots affected?
Yes, github.com/Luzifer/ots is affected in releases prior to 1.21.8. Upgrade your dependency to 1.21.8 or later.
What is the CVSS score of GHSA-92r4-rpw3-7cwm?
GHSA-92r4-rpw3-7cwm has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-92r4-rpw3-7cwm?
GHSA-92r4-rpw3-7cwm is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition (The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.).
How can I check Go dependencies for GHSA-92r4-rpw3-7cwm?
Run the dependency tree command: 'inspect dependencies for github.com/Luzifer/ots'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-92r4-rpw3-7cwm",
  "modified" : "2026-12-03T21:31:42Z",
  "published" : "2026-12-03T21:31:42Z",
  "aliases" : [ ],
  "summary" : "OTS Redis storage backend allows non-atomic one-time secret retrieval under concurrent requests",
  "details" : "### Summary\n\nThe Redis storage backend performs secret retrieval and deletion as two separate operations (`GET` followed by `DEL`). Under highly concurrent access to the same secret ID, more than one request may read the secret before it is deleted. This can violate the intended one-time-read property for Redis-backed deployments.\n\n### Impact\n\nThis issue affects deployments using the Redis storage backend.\n\nThe issue is theoretically exploitable by racing multiple requests against the same secret ID. In local laboratory testing, concurrent requests can retrieve the same secret more than once because deletion is not atomic.\n\nIn real-world conditions, exploitation is not considered practical for confidentiality impact unless the attacker already knows the secret URL/ID and can precisely time requests within the very small interval between Redis `GET` and `DEL`, or can themselves issue concurrent requests for a secret they already possess access to. Therefore, this is best treated as a violation of the one-time-read guarantee under artificial race conditions rather than a practical remote disclosure vulnerability.\n\n### Attack Requirements\n\nAn attacker would need:\n\n- Knowledge of the secret ID / secret URL\n- Network access to the OTS instance\n- Ability to issue highly concurrent requests, or to race the legitimate recipient’s read request within a very small timing window\n- The attacker cannot discover arbitrary secrets through this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/Luzifer/ots"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.21.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/security/advisories/GHSA-92r4-rpw3-7cwm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/commit/035019e443819919190a0c1e4cd96e2ff33aa754"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Luzifer/ots"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Luzifer/ots/releases#release-v1.21.8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-367" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T21:31:42Z",
    "nvd_published_at" : null
  }
}