{"id":"CVE-2021-21412","published":"2021-03-30T17:40:15Z","modified":"2024-08-03T18:09:16Z","title":"[thi.ng/egf] Potential arbitrary code execution of `#gpg`-tagged property values","vendor":"thi-ng","product":"egf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01339,"percentile":0.72,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243","tags":["x_refsource_MISC"]},{"url":"https://github.com/thi-ng/umbrella/blob/develop/packages/egf/CHANGELOG.md#040-2021-03-27","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/%40thi.ng/egf","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":14.4},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"thi-ng","affectedVersions":[{"vendor":"thi-ng","product":"egf","versions":["< 0.4.0"]}],"affected":[{"ecosystem":"npm","package":"@thi.ng/egf","vulnerableRanges":["<0.4.0"],"patched":["0.4.0"],"from":["GHSA-rj44-gpjc-29r7"],"provenance":"source"}],"summary":{"text":"The thi.ng/egf npm package, a component of its EGF parser, is vulnerable to OS command injection through #gpg-tagged property values when the decrypt: true option is enabled. An attacker who can supply a crafted EGF source file or string that the parser processes, with low privileges and no user interaction needed, could execute arbitrary code, and that exposure applies only when decryption is enabled, since the parser does not attempt decryption by default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:25Z"},"euvd":{"id":"EUVD-2021-0870","exploited":false,"provenance":"source"}}