Vulnerability · Published Jun 6, 2023 · Assigned by GitHub_M
CVE-2023-34111Command Injection Vulnerability in `Release PR Merged` Workflow in taosdata/grafanaplugin
High 8.1
In plain English
A high-severity improper input validation in grafanaplugin from taosdata. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 4.0% (higher than 91% of all known vulnerabilities).
Official description
The `Release PR Merged` workflow in the github repo taosdata/grafanaplugin is subject to a command injection vulnerability which allows for arbitrary code execution within the github action context due to the insecure usage of `${{ github.event.pull_request.title }}` in a bash command within the GitHub workflow. Attackers can inject malicious commands which will be executed by the workflow. This happens because `${{ github.event.pull_request.title }}` is directly passed to bash command on like 25 of the workflow. This may allow an attacker to gain access to secrets which the github action has access to or to otherwise make use of the compute resources.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| taosdata | grafanaplugin | <= 2e4c82b002 |
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
References
- https://github.com/taosdata/grafanaplugin/security/advisories/GHSA-23wp-p848-hcgr x_refsource_CONFIRM
- https://github.com/taosdata/grafanaplugin/blob/master/.github/workflows/release-pr-merged.yaml#L25 x_refsource_MISC
- https://securitylab.github.com/research/github-actions-untrusted-input/ x_refsource_MISC