Description
Meshtastic is an open source mesh networking solution. Prior to version 2.7.21.1370b23, the Meshtastic GitHub repository's main_matrix.yml workflow is triggered by pull_request_target and multiple jobs check out the attacker's fork code and execute it with access to repository secrets and elevated GITHUB_TOKEN permissions. No approval gate exists. Pull requests from external users with author_association: "NONE" triggered the CI workflow automatically. The workflow directly executes attacker-controlled files from the fork checkout. This issue could have resulted in supply chain compromise, self-hosted runner compromise, and/or repository takeover for the repo. This issue is separate from GHSA-6mwm-v2vv-pp96, which addressed a command injection via github.head_ref in the setup job of the same workflow. That fix correctly moved to environment variables. However, the more critical fork checkout vulnerability across the check, build, and build-debian-src jobs was not addressed. Version 2.7.21.1370b23 contains a patch for thie issue.
Published: 2026-07-19
Score: 10 Critical
EPSS: 1.0% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Before version 2.7.21.1370b23 the Meshtastic firmware GitHub Actions workflow main_matrix.yml was triggered by pull_request_target. The workflow design allowed multiple jobs to checkout code from a pull request originating from an external contributor’s fork and execute that code with full repository secrets and an elevated GITHUB_TOKEN. No approval gate was in place. Pull requests from external users with author_association “NONE” automatically triggered CI. The workflow ran attacker‑controlled files directly from the fork checkout. This flaw could lead to supply‑chain compromise, self‑hosted runner compromise, or repository takeover. The vulnerability is distinct from the GHSA‑6mwm‑v2vv‑pp96 fix which addressed a command injection in the setup job; that fix moved the github.head_ref argument to an environment variable but did not prevent the fork‑checkout vulnerability. The patch in version 2.7.21.1370b23 rectifies this issue.

Affected Systems

The affected product is the Meshtastic firmware repository maintained by the Meshtastic project. Versions older than 2.7.21.1370b23 are vulnerable, as the protection was added in that release. Anyone who relies on the legacy GitHub Actions workflow for building or deploying firmware, or who hosts the workflow in their own account, is impacted.

Risk and Exploitability

The CVSS score of 10 reflects a critical severity. The EPSS score of 1% indicates a very low injection probability but still non‑trivial. While the vulnerability is not listed in the CISA KEV catalog, the lack of an approval gate means a malicious pull request from an external contributor can automatically trigger the destructive workflow. Attackers can simply create a PR from a fork, and GitHub will run the workflow, checkout the attacker’s code, and execute it with full repository privileges. The result is immediate privilege escalation in the CI environment and significant supply‑chain risk.

Generated by OpenCVE AI on July 30, 2026 at 19:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the Meshtastic firmware update to version 2.7.21.1370b23 or later, which includes the fork checkout fix.
  • Immediately disable or lock the pull_request_target trigger in the main_matrix.yml workflow until the policy change is completed, or replace it with a pull_request trigger that requires manual approval.
  • Remove or restrict repository secrets from workflows that run automatically on pull requests, or adjust the GITHUB_TOKEN permissions to the minimum necessary scope before the patch is applied.

Generated by OpenCVE AI on July 30, 2026 at 19:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 20 Jul 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Meshtastic
Meshtastic firmware
Vendors & Products Meshtastic
Meshtastic firmware

Mon, 20 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sun, 19 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
Description Meshtastic is an open source mesh networking solution. Prior to version 2.7.21.1370b23, the Meshtastic GitHub repository's main_matrix.yml workflow is triggered by pull_request_target and multiple jobs check out the attacker's fork code and execute it with access to repository secrets and elevated GITHUB_TOKEN permissions. No approval gate exists. Pull requests from external users with author_association: "NONE" triggered the CI workflow automatically. The workflow directly executes attacker-controlled files from the fork checkout. This issue could have resulted in supply chain compromise, self-hosted runner compromise, and/or repository takeover for the repo. This issue is separate from GHSA-6mwm-v2vv-pp96, which addressed a command injection via github.head_ref in the setup job of the same workflow. That fix correctly moved to environment variables. However, the more critical fork checkout vulnerability across the check, build, and build-debian-src jobs was not addressed. Version 2.7.21.1370b23 contains a patch for thie issue.
Title Meshtastic GitHub repo vulnerable to Arbitrary Code Execution via pull_request_target Fork Checkout in CI Workflow
Weaknesses CWE-829
CWE-94
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N'}


Subscriptions

Meshtastic Firmware
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-24T03:56:28.416Z

Reserved: 2026-05-05T20:15:20.630Z

Link: CVE-2026-44359

cve-icon Vulnrichment

Updated: 2026-07-20T19:06:13.520Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T20:00:20Z

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')