CVE-2021-21412 [thi.ng/egf] Potential arbitrary code execution of `#gpg`-tagged property values
HighCVSS 8.8
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Potential for arbitrary code execution in npm package @thi.ng/egf #gpg-tagged property values (only if decrypt: true option is enabled). PR with patch has been submitted and will has been released as of v0.4.0 By default the EGF parse functions do NOT attempt to decrypt values (since GPG only available in non-browser env). However, if GPG encrypted values are used/required: 1. Perform a regex search for #gpg-tagged values in the EGF source file/string and check for backtick (`) chars in the encrypted value string 2. Replace/remove them or skip parsing if present.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| thi.ng @thi.ng/egf(npm) | < 0.4.0 | 0.4.0 | Fixed |
| thi.ngegf project thi.ngegf | < 0.4.0 | 0.4.0 | Fixed |
| thi-ng egf | = < 0.4.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| thi.ng @thi.ng/egf(npm) | < 0.4.0 | 0.4.0 |
| thi.ngegf project thi.ngegf | < 0.4.0 | 0.4.0 |
| thi-ng egf | = < 0.4.0 | No fix listed |
References
- github.com patch third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com release-notes third-party-advisory
- www.npmjs.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- www.npmjs.com