Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/OliveTin/OliveTin
  4. ›
  5. CVE-2026-48708

CVE-2026-48708: OliveTin has a Concurrent Template Parsing Race Condition which Leads to Cross-Request Command Contamination

June 24, 2026

OliveTin’s 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:

  1. Cross-user command contamination: User A’s arguments rendered in User B’s shell command template
  2. Go runtime panic: Concurrent map writes in Go’s text/template internal structures cause a fatal crash
  3. Incorrect command execution: Template/argument mismatch produces unexpected or dangerous shell commands

References

  • github.com/OliveTin/OliveTin/commit/d74da9314005954dd49fa20dabf272247bc76519
  • github.com/OliveTin/OliveTin/releases/tag/3000.13.0
  • github.com/OliveTin/OliveTin/security/advisories/GHSA-7fq5-7wr8-rjwj
  • github.com/advisories/GHSA-7fq5-7wr8-rjwj
  • nvd.nist.gov/vuln/detail/CVE-2026-48708

Code Behaviors & Features

Detect and mitigate CVE-2026-48708 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260521225117-d74da9314005

Fixed versions

  • 0.0.0-20260521225117-d74da9314005

Solution

Upgrade to version 0.0.0-20260521225117-d74da9314005 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
  • CWE-567: Unsynchronized Access to Shared Data in a Multithreaded Context

Source file

go/github.com/OliveTin/OliveTin/CVE-2026-48708.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 16 Jul 2026 00:19:32 +0000.