CVE-2025-8022
HIGH 8.8CVSS 3.1bun vulnerable to OS Command Injection
Rejected reason: Bun Shell does not invoke /bin/sh, or any other interpreter, for template literals created with the $ function. Each ${…} interpolation is treated as a single argument. The security responsibility for this usage pattern lies with the calling application, which must ensure the sanitization and validation of any untrusted arguments before passing them to the executed commands. Therefore, the potential for command injection is not a flaw within Bun itself; rather, it is an argument injection that is contingent on its implementation by the consuming application.
- Published
- 23 Jul 2025
- Last modified
- 11 Aug 2025
- Assigned by
- report@snyk.io
- NVD status
- Rejected
- Weakness
- CWE-78
- Also known as
- GHSA-4j66-8f4r-3pjx
- Sources
- NVDJSONOSV GHSA-4j66-8f4r-3pjxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P | |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | bun | <= 1.1.39 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-8022 · ADVISORY
- https://gist.github.com/lirantal/9780d664037f29d5277d7b2bc569d213 · WEB
- https://github.com/oven-sh/bun · PACKAGE
- https://security.snyk.io/vuln/SNYK-JS-BUN-9510752 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 23 Jul 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 23 Jul 2025)