CVE-2021-21412
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. Limited direct impact.
- Exploit odds
- 1.3% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.3% in the next 30 days (EPSS).
- Severity: 6.4 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.3% · EPSS, next 30 days
- Weakness
- CWE-78 · OS command injection
- Record status
- Modified
Affected
- \@thi.ng\/egf Project \@thi.ng\/egf < 0.4.0
Attack profile CVSS 3.1 · 6.4
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-21412.md and follow it. Check whether this project is affected by CVE-2021-21412. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243
- https://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7
- https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243
- https://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7
References
- https://github.com/thi-ng/umbrella/blob/develop/packages/egf/CHANGELOG.md#040-2021-03-27
- https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243
- https://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7
- https://www.npmjs.com/package/%40thi.ng/egf
- https://github.com/thi-ng/umbrella/blob/develop/packages/egf/CHANGELOG.md#040-2021-03-27
- https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243
- https://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7
- https://www.npmjs.com/package/%40thi.ng/egf