# CVE-2021-26541: Command injection in gitlog

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 5.43%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-08T16:16:08.000Z
- Modified: 2026-06-17T03:43:27.520Z
- Also known as: GHSA-67mm-m3wx-j7fr
- Weaknesses: CWE-77, CWE-78
- Assigned by: mitre

## Description

The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gitlog (npm): before 4.0.4
- gitlog_project gitlog: before 4.0.4

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://advisory.checkmarx.net/advisory/CX-2020-4301> (exploit, third-party-advisory, web)
- <https://github.com/domharrington/node-gitlog/pull/65> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/gitlog> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-26541> (advisory)
- <https://github.com/domharrington/node-gitlog/pull/65/commits/bb22ffb2c907e0284f887ab625e12b88c31f4bf4> (web)
- <https://github.com/domharrington/node-gitlog> (package)

## Sources

- CVE List: [CVE-2021-26541](https://www.cve.org/CVERecord?id=CVE-2021-26541), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-67mm-m3wx-j7fr](https://github.com/advisories/GHSA-67mm-m3wx-j7fr), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-26541](https://nvd.nist.gov/vuln/detail/CVE-2021-26541), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-26541 · Whole record: https://cve.day/CVE-2021-26541.json · Rebuilt by cve.day 2026-11-25T22:57:59.839Z
