Every CVESearch/Get API key

CVE-2021-26541

Command injection in gitlog

9.8 CriticalFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

5.43%Up 4.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used9.8

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

Record
CVE-2021-26541
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-78
Updated
2026-11-02
CVE ListNo score

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

Record
CVE-2021-26541
Updated
2026-11-02
EUVDEUVD-2021-0771No score

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

Record
EUVD-2021-0771
Updated
2026-11-03
GitHub AdvisoriesGHSA-67mm-m3wx-j7fr9.8

Command injection in gitlog

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

Record
GHSA-67mm-m3wx-j7fr
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-77
Updated
2026-11-02
OSV9.8

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

Record
CVE-2021-26541
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-67mm-m3wx-j7fr9.8

Command injection in gitlog

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

Record
GHSA-67mm-m3wx-j7fr
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-77
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
gitlog
npm
before 4.0.4
4.0.4

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-26541 is a critical vulnerability (CVSS 9.8) in Gitlog Project Gitlog, published February 8, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.43%, the 92nd percentile. Fixed in gitlog 4.0.4.

References

MoveEnter Open