{"answers":{"affected":"3 open source packages ship an affected version, including github.com/go-vela/worker. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-28236 in the wild and no public exploit code.","fix":"Upgrade github.com/go-vela/worker to 0.23.2 or later.","what":"CVE-2024-28236 is a high-severity vulnerability in go-vela worker, published on 12 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-28236 and fix it if it is affected.\n\nWhat it is: CVE-2024-28236 is a high-severity vulnerability in go-vela worker, published on 12 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-28236 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/go-vela/worker (Go): affected all versions; fixed in 0.23.2\n- github.com/go-vela/worker (Go): affected all versions; fixed in 0.23.2\n- github.com/go-vela/worker (Go): affected all versions; fixed in 0.23.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-28236/ (Markdown: https://insights.sbomify.com/CVE-2024-28236/index.md)","id":"CVE-2024-28236","markdown":"https://insights.sbomify.com/CVE-2024-28236/index.md","name":"CVE-2024-28236","record":{"aliases":["GHSA-pwx5-6wxg-px5h","GO-2024-2641"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Vela CI/CD framework","requires_auth":"low_privilege","summary":"Attackers can bypass log masking and expose secrets in Vela pipelines by manipulating variable substitution in insensitive fields, undermining security restrictions.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"worker","vendor":"go-vela"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Insecure Variable Substitution in Vela","id":"CVE-2024-28236","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"OctoPrint XSS via the \"Snapshot Test\" feature in Classic Webcam plugin settings","id":"CVE-2024-28237"},"packages":[{"ecosystem":"Go","fixed":["0.23.2"],"introduced":["0"],"last_affected":[],"package":"github.com/go-vela/worker","purl":null,"source":"GHSA-pwx5-6wxg-px5h"},{"ecosystem":"Go","fixed":["0.23.2"],"introduced":["0"],"last_affected":[],"package":"github.com/go-vela/worker","purl":"pkg:golang/github.com/go-vela/worker","source":"GHSA-pwx5-6wxg-px5h"},{"ecosystem":"Go","fixed":["0.23.2"],"introduced":["0"],"last_affected":[],"package":"github.com/go-vela/worker","purl":"pkg:golang/github.com/go-vela/worker","source":"GO-2024-2641"}],"prev":{"headline":"Contao possible cookie sharing with external domains while checking protected pages for broken links","id":"CVE-2024-28235"},"products":["worker"],"published":"2024-03-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["go-vela"]},"summary":"Attackers can bypass log masking and expose secrets in Vela pipelines by manipulating variable substitution in insensitive fields, undermining security restrictions.","url":"https://insights.sbomify.com/CVE-2024-28236/"}