CVE-2026-40938

Tekton Pipelines: Git Resolver Unsanitized Revision Parameter Enables git Argument Injection Leading to RCE

7.5 high EPSS 0.94%

Published 21 Apr 2026 Updated 7 Sep 2026 CNA: GitHub_M

Check your servers for CVE-2026-40938

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-40938 affects pipeline, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 1.0.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, the git resolver's revision parameter is passed directly as a positional argument to git fetch without any validation that it does not begin with a - character. Because git parses flags from mixed positional arguments, an attacker can inject arbitrary git fetch flags such as --upload-pack=<binary>. Combined with the validateRepoURL function explicitly permitting URLs that begin with / (local filesystem paths), a tenant who can submit ResolutionRequest objects can chain these two behaviors to execute an arbitrary binary on the resolver pod. The tekton-pipelines-resolvers ServiceAccount holds cluster-wide get/list/watch on all Secrets, so code execution on the resolver pod enables full cluster-wide secret exfiltration. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.

Severity (CVSS)

7.5 high CVSS 3.1 from GitHub_M (CNA)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
8.5 high CVSS 3.1 from redhat-SADP
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.94%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 59.4% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 22 Apr 2026):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-88 Improper Neutralization of Argument Delimiters in a Command

Affected products

As the CNA lists them.

ProductVersions
pipeline
affected >= 1.0.0, < 1.0.2
affected >= 1.2.0, < 1.3.4
affected >= 1.4.0, < 1.6.2
affected >= 1.7.0, < 1.9.3
affected >= 1.10.0, < 1.11.1

Is my server affected?

Find the installed version of pipeline and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i pipeline
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-40938 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-40938

RHEL, Rocky, Alma, Fedora

rpm -q pipeline
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-40938

Alpine

apk list --installed | grep -i pipeline

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-40938
trivy image --scanners vuln IMAGE | grep CVE-2026-40938

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Exploits and proof of concept

Other references

Source: the record CVE-2026-40938 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.