Github actions package vulnerabilities CVE-2021-44531, CVE-2018-8292, CVE-2019-0980, CVE-2019-0820
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 1.4k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 24
Description
Describe the bug
I would like to build a Docker image with GitHub Actions. After building this image I check it using the Twistlock scanner and I can see vulnerabilities according to the list in the To Reproduce step.
The Dockerfile just contain these commands:
RUN curl -Ls https://github.com/actions/runner/releases/download/v${GITHUB_RUNNER_VERSION}/actions-runner-linux-x64-${GITHUB_RUNNER_VERSION}.tar.gz | tar xz \
&& sudo ./bin/installdependencies.sh
To Reproduce
Run Twistlock security scanner:
Result of security scan:
system.text.regularexpressions.dll NVD - CVE-2019-0820 - 7 pcs
Paths:
/home/github/bin/Sdk.deps.json
/home/github/bin/Runner.Worker.deps.json
/home/github/bin/Runner.Sdk.deps.json
/home/github/bin/Runner.Common.deps.json
/home/github/bin/Runner.PluginHost.deps.json
/home/github/bin/Runner.Listener.deps.json
/home/github/bin/Runner.Plugins.deps.json
system.private.uri.dll, NVD - CVE-2019-0980 - 21 pcs
Paths:
/home/github/bin/Runner.Worker.deps.json
/home/github/bin/Runner.PluginHost.deps.json
/home/github/bin/Runner.Listener.deps.json
/home/github/bin/Runner.Plugins.deps.json
/home/github/bin/Sdk.deps.json
/home/github/bin/Runner.Common.deps.json
/home/github/bin/Runner.Sdk.deps.json
system.net.http.dll, NVD - CVE-2018-8292 - 7 pcs
Paths:
/home/github/bin/Runner.Common.deps.json
/home/github/bin/Runner.PluginHost.deps.json
/home/github/bin/Sdk.deps.json
/home/github/bin/Runner.Worker.deps.json
/home/github/bin/Runner.Plugins.deps.json
/home/github/bin/Runner.Listener.deps.json
/home/github/bin/Runner.Sdk.deps.json
Application, node js NVD - CVE-2021-44531 - 4 pcs
Paths:
/home/github/externals/node16_alpine/bin/node
/home/github/externals/node16/bin/node
/home/github/externals/node12_alpine/bin/node
/home/github/externals/node12/bin/node
Expected behavior
I would like to pass the security scan without high CVEs - Twistlock scanner is a part of CI - image with vulnerabilities doesn't build.
Runner Version and Platform
2.304, 2.305
OS of the machine running the runner? -Linux (debian:stable-slim )
What's not working?
Job Log Output
No need.
Runner and Worker's Diagnostic Logs
No need.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Dockerfile commands and the runner release contents at /home/github/bin/.deps.json and /home/github/externals/node16/bin/node and node12*/bin/node. Re-run the Twistlock scan against the Debian runner image and trace the reported CVEs to those bundled dependencies; done means the listed high-severity vulnerabilities no longer appear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, docker, github-actions, nodejs
- Domain
- devops, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100