CVE-2024-28236
Last modified
CVE-2024-28236 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.72% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Go-Vela | Worker | < 0.23.2 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-28236?
How severe is CVE-2024-28236?
How do I fix CVE-2024-28236?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-28230In JetBrains YouTrack before 2024.1.25893 attaching/detachin…6.5
- CVE-2024-28231eprosima Fast DDS is a C++ implementation of the Data Distri…7.5
- CVE-2024-28232Go package IceWhaleTech/CasaOS-UserService provides user man…7.5
- CVE-2024-28233JupyterHub is an open source multi-user server for Jupyter n…6.1
- CVE-2024-28234Contao is an open source content management system. Starting…4.7
- CVE-2024-28235Contao is an open source content management system. Starting…6.5
- CVE-2024-28237OctoPrint provides a web interface for controlling consumer …4.8
- CVE-2024-28238Directus is a real-time API and App dashboard for managing S…2.3
- CVE-2024-28239Directus is a real-time API and App dashboard for managing S…4.3
- CVE-2024-2824A vulnerability was found in Matthias-Wandel jhead 3.08 and …6.3
- CVE-2024-28240The GLPI Agent is a generic management agent. A vulnerabilit…7.8
- CVE-2024-28241The GLPI Agent is a generic management agent. Prior to versi…7.8
Are you affected by CVE-2024-28236?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
