# CVE-2024-28236: Insecure Variable Substitution in Vela

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.92% (percentile 58, 2026-11-26)
- **CWE:** CWE-532, CWE-200
- **Aliases:** GHSA-pwx5-6wxg-px5h, GO-2024-2641
- **Published:** 2024-03-12T20:41:09.271Z
- **Modified:** 2026-09-10T03:50:10.743Z

## Who should check

- Projects that depend on Go package github.com/go-vela/worker (\< 0.23.2)
- Anyone running go-vela worker \< 0.23.2

## Description

Vela is a Pipeline Automation (CI/CD) framework built on Linux container technology written in Golang. Vela pipelines can use variable substitution combined with insensitive fields like \`parameters\`, \`image\` and \`entrypoint\` to inject secrets into a plugin/image and — by using common substitution string manipulation — can bypass log masking and expose secrets without the use of the commands block. This unexpected behavior primarily impacts secrets restricted by the "no commands" option. This can lead to unintended use of the secret value, and increased risk of exposing the secret during image execution bypassing log masking. \*\*To exploit this\*\* the pipeline author must be supplying the secrets to a plugin that is designed in such a way that will print those parameters in logs. Plugin parameters are not designed for sensitive values and are often intentionally printed throughout execution for informational/debugging purposes. Parameters should therefore be treated as insensitive. While Vela provides secrets masking, secrets exposure is not entirely solved by the masking process. A docker image (plugin) can easily expose secrets if they are not handled properly, or altered in some way. There is a responsibility on the end-user to understand how values injected into a plugin are used. This is a risk that exists for many CICD systems (like GitHub Actions) that handle sensitive runtime variables. Rather, the greater risk is that users who restrict a secret to the "no commands" option and use image restriction can still have their secret value exposed via substitution tinkering, which turns the image and command restrictions into a false sense of security. This issue has been addressed in version 0.23.2. Users are advised to upgrade. Users unable to upgrade should not provide sensitive values to plugins that can potentially expose them, especially in \`parameters\` that are not intended to be used for sensitive values, ensure plugins (especially those that utilize shared secrets) follow best practices to avoid logging parameters that are expected to be sensitive, minimize secrets with \`pull\_request\` events enabled, as this allows users to change pipeline configurations and pull in secrets to steps not typically part of the CI process, make use of the build approval setting, restricting builds from untrusted users, and limit use of shared secrets, as they are less restrictive to access by nature.

## Affected and fixed versions

- Go `github.com/go-vela/worker`: affected \< 0.23.2; fixed 0.23.2 (osv)
- go-vela worker: \< 0.23.2 (cvelist)

## Mitigation

- Upgrade github.com/go-vela/worker to 0.23.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-28236. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-28236.md
Affected: github.com/go-vela/worker < 0.23.2
Fixed in: 0.23.2

Steps:
1. Search this machine and project for github.com/go-vela/worker (Go), go-vela worker: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-28236 being exploited?

There is no confirmed exploitation: CVE-2024-28236 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.92% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-28236?

High: CVSS 7.7 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2024-28236?

github.com/go-vela/worker \< 0.23.2.

### Is there a fix for CVE-2024-28236?

Yes. Fixed in 0.23.2. Upgrade github.com/go-vela/worker to 0.23.2 or later.

### How do I check if I'm affected by CVE-2024-28236?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/go-vela/worker/security/advisories/GHSA-pwx5-6wxg-px5h>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-28236>
- patch: <https://github.com/go-vela/worker/commit/e1572743b008e4fbce31ebb1dcd23bf6a1a30297>
- other: <https://github.com/go-vela/worker>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-28236>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-pwx5-6wxg-px5h> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2641> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-28236> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-28236>
