GitHub Advisoryadvisory · npm
GHSA-c9j3-wqph-5xx9 Command Injection in egg-scripts
CRITICAL
Official page ↗
- Aliases
- CVE-2018-3786
- Ecosystem
- npm
- Packages
- egg-scripts
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-77, CWE-78
- Reviewed
- 2020-06-16
Affected packages
• npm egg-scripts: < 2.8.1 → fixed in 2.8.1
Description
Versions of `egg-scripts` before 2.8.1 are vulnerable to command injection. This is only exploitable if a malicious argument is provided on the command line.
Example:
`eggctl start --daemon --stderr='/tmp/eggctl_stderr.log; touch /tmp/malicious'`
Recommendation
Update to version 2.8.1 or later.
Related
Alias · CVE (1)
- CVE-2018-3786 A command injection vulnerability in egg-scripts <v2.8.1 allows arbitrary shell command execution through a maliciously crafted command… vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-3786 advisory
- https://github.com/eggjs/egg-scripts/pull/26 web
- https://github.com/eggjs/egg-scripts/commit/b98fd03d1e3aaed68004b881f0b3d42fe47341dd web
- https://hackerone.com/reports/388936 web
- https://github.com/advisories/GHSA-c9j3-wqph-5xx9 advisory
- https://github.com/eggjs/egg-scripts/blob/2.8.1/History.md web
- https://www.npmjs.com/advisories/694 web