Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
CVE-2026-48708
Summary
OliveTin gives access to predefined shell commands from a web interface. In versions prior to 3000.13.0, the template engine uses a single shared 'text/template.Template' instance ('tpl' package-level variable in 'service/internal/tpl/templates.go') across all goroutines. Every action execution calls 'tpl.Parse(source)' followed by 't.Execute()' on this shared instance with no synchronization. When two or more actions execute concurrently (which is the normal case each 'ExecRequest' spawns a goroutine), a race condition occurs: one goroutine's 'Parse' overwrites the template tree while another goroutine is calling 'Execute', causing cross-user command contamination, Go runtime panic, and incorrect command execution. This issue has been resolved in version 3000.13.0.
- HIGH
- NETWORK
- HIGH
- UNCHANGED
- NONE
- LOW
- HIGH
- HIGH
CWE-362 - Race Condition
A race condition occurs in a shared memory program when two threads/processes access the same shared memory data, and at least one thread executes a write operation. This vulnerability manipulates the time to check vs. time to use (TOC/TOU) gap between the threads in the critical section to cause disorientation in the shared data. The impact can vary from compromising the confidentiality of the system to causing the system to crash or to execute arbitrary code.
References
Advisory Timeline
- Published