CVE-2026-144938
Received Received - Intake

Improper Check for Unusual Conditions in add-and-commit

Vulnerability report for CVE-2026-144938, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: Secur0

Description

Improper Check for Unusual or Exceptional Conditions (CWE-754) in add-and-commit, in src/main.ts, from 5.0.0 before 11.0.0. A contributor who controls a directory under the add pathspec can commit a gitlink of their choosing. The add input takes the arguments for git add, and the default value is .. git add records a directory that has its own nested .git directory as a gitlink. The index entry has mode 160000 and names the commit at the nested repository's HEAD. git stores none of the files inside that directory, writes a warning and the remediation hints to stderr, and exits 0. add() in src/main.ts, at lines 220 to 258 in 10.0.0, calls simple-git's add() with a callback that reaches log(). simple-git builds that task with straightThroughStringTask, whose parser takes one argument, so callTaskParser passes stdout and stderr and the parser returns stdout alone. isTaskError is exitCode && stdErr.length, so a zero exit code raises no error, whatever stderr contains. log() in src/util.ts prints the data and reports the error, and both arguments are empty, so the job log shows no warning. add() never reads the staged entries back, so the commit keeps the gitlink, whose path and commit name the contributor sets. The value reaches the action in a workflow that checks out pull request content and then runs the action over a pathspec that covers that content.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
EndBug add-and-commit From 5.0.0 (inc) to 11.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-754 The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-144938 is an improper input validation flaw in the add-and-commit GitHub Action (versions 5.0.0 to 11.0.0). It allows a contributor controlling a directory to insert a malicious gitlink into a commit. The action fails to detect this because it does not verify staged entries after git add executes. Git exits with a zero status despite writing warnings to stderr, so the vulnerability goes unnoticed.

Detection Guidance

To detect this vulnerability, inspect your repository for unexpected gitlinks (mode 160000) in staged changes. Run: git diff --cached --raw | grep '160000'. Check for directories with .git subdirectories before running the add-and-commit action.

Impact Analysis

An attacker could embed a malicious submodule-like reference in your repository by committing a nested .git directory. This could allow them to control part of your project's history or introduce unexpected dependencies. The attack requires no special privileges or user interaction and can be executed remotely.

Mitigation Strategies

Upgrade to version 11.0.0 or later of add-and-commit. Remove nested .git directories before running the action. Restrict the add pathspec to avoid including directories with .git subdirectories. Use git rm --cached to unstage any detected gitlinks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-144938. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...