All vulnerabilities

Go

GHSA-92r4-rpw3-7cwm

OTS Redis storage backend allows non-atomic one-time secret retrieval under concurrent requests

Severity
Medium 5.3
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
1.21.8
Weakness
Time-of-check time-of-use race condition (CWE-367)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Sources
OSV.dev and GitHub

Description

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.

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
github.com/Luzifer/otsGo · osv:Go:github.com/Luzifer/ots
  • Every version before 1.21.8

About github.com/Luzifer/ots

Vulnerabilities in github.com/Luzifer/ots

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for github.com/Luzifer/ots

References