CVE-2026-144938

Source
https://cve.org/CVERecord?id=CVE-2026-144938
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-144938.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-144938
Published
2026-12-04T15:36:57Z
Modified
2026-12-04T17:00:13Z
Severity
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
add-and-commit commits a nested git repository as a gitlink chosen by an outside contributor
Details

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.

Database specific
{
    "cna_assigner":  "Secur0",
    "cwe_ids":  [
        "CWE-754"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144938.json"
}
References

Affected packages

Git / github.com/endbug/add-and-commit

Affected ranges

Type
GIT
Repo
https://github.com/endbug/add-and-commit
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "5.0.0"
                },
                {
                    "fixed":  "11.0.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "ebc24bfdec878c7a9b73d6fd429c88cbb0316100"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v11.0.0",
            "range":  [
                {
                    "fixed":  "645ecc0dd0a57f4d86d26c0aa5fc42c0a856fbca"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

Other
v10
v5
v6
v7
v8
v9
v10.*
v10.0.0
v5.*
v5.0.0
v5.1.0
v5.1.1
v5.1.2
v5.2.0
v5.3.0
v6.*
v6.0.0
v6.1.0
v6.2.0
v7.*
v7.0.0
v7.1.0
v7.1.1
v7.1.2
v7.2.0
v7.2.1
v7.3.0
v7.4.0
v7.5.0
v8.*
v8.0.0
v8.0.1
v8.0.2
v9.*
v9.0.0
v9.0.1
v9.1.0
v9.1.2
v9.1.3
v9.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-144938.json"