All vulnerabilities

Go

GHSA-f3fj-9625-rv3m

charmbracelet/soft-serve: Race in `SetPrivate` leaves a private repository readable by unauthenticated users

Severity
Medium 5.9
Published
30 Oct 2026
Last changed
5 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.12.3
Weakness
Race condition (CWE-362)Time-of-check time-of-use race condition (CWE-367)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GO-2026-6891
Sources
OSV.dev and GitHub

Description

Soft Serve cached repository records in memory with no expiry, and trusted the cached record for every access check. SetPrivate cleared the cached record before it saved the new visibility, and not afterwards.

A request that arrived between the two read the old, public record from the database and cached it after the change was saved. From then on every access check used that stale record, so a repository the operator had just made private stayed readable by unauthenticated users over HTTP, SSH, and git:// until the server restarted.

An unauthenticated attacker can keep reading a repository after it is made private, including everything pushed to it afterwards. The attacker needs no account and no timing knowledge: a client polling GET /.git/info/refs?service=git-upload-pack, which the default anon-access: read-only allows, will eventually land in the window when the operator changes the visibility.

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

Workarounds

It is recommended to upgrade to the patched release.

No configuration closes the race. Restarting the server clears a stale record and restores correct access checks until the next visibility change. Operators who cannot upgrade immediately should create repositories as private from the start (repo create -p) rather than making public ones private, and avoid changing visibility while the server is serving traffic.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/charmbracelet/soft-serveGo · osv:Go:github.com/charmbracelet/soft-serve
  • From 0.6.0 before 0.12.3

About github.com/charmbracelet/soft-serve

Vulnerabilities in github.com/charmbracelet/soft-serve

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/charmbracelet/soft-serve

References