# CVE-2021-21412: [thi.ng/egf] Potential arbitrary code execution of `#gpg`-tagged property values

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.34%, higher than 72% of CVEs (2026-12-01)
- Published: 2021-03-30T17:40:15.000Z
- Modified: 2026-07-08T06:29:39.326Z
- Also known as: GHSA-rj44-gpjc-29r7
- Weaknesses: CWE-78
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- thi-ng egf: < 0.4.0
- @thi.ng/egf (npm): before 0.4.0
- @thi.ng/egf_project @thi.ng/egf: before 0.4.0

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7> (patch, third-party-advisory, web)
- <https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243> (patch, third-party-advisory, web)
- <https://github.com/thi-ng/umbrella/blob/develop/packages/egf/CHANGELOG.md#040-2021-03-27> (release-notes, third-party-advisory, web)
- <https://www.npmjs.com/package/%40thi.ng/egf>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21412> (advisory)
- <https://www.npmjs.com/package/@thi.ng/egf> (web)

## Sources

- CVE List: [CVE-2021-21412](https://www.cve.org/CVERecord?id=CVE-2021-21412), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-rj44-gpjc-29r7](https://github.com/advisories/GHSA-rj44-gpjc-29r7), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21412](https://nvd.nist.gov/vuln/detail/CVE-2021-21412), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21412 · Whole record: https://cve.day/CVE-2021-21412.json · Rebuilt by cve.day 2026-11-25T22:58:00.509Z
