Description
kas is a setup tool for bitbake based projects. Prior to version 5.3, when relying solely on a git commit ID (SHA-1 or SHA-256) to qualify if a checkout of a repository is equivalent to the state validated while adding its commit ID to a kas configuration, users may be tricked to check out a branch of the same name from this repository. This implies that the referenced repository has been taken over by an attacker and modified to carry such a branch. SHA-1 commits may also be replaced by creating hash collisions, so the primary impact of this issue is on SHA-256 commit IDs. Version 5.3 fixes the issue. As a workaround, avoid relying solely on the commit ID for integrity validation of a repository that might become under control of a malicious 3rd party. If available, additional validate cryptographically signed commits or tags. Alternatively, mirror the repository to a save place, validate its integrity, and use this instead of the original one.
Published: 2026-08-14
Score: 2.1 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

kas considers a branch of the same name as a valid commit when only a SHA value is supplied, which undermines the integrity check that the configuration file defines. The flaw allows a repository that has been taken over by an attacker to present a malicious branch that satisfies the commit ID requirement. This could enable the injection of malicious code or the deployment of an unintended repository state. The overall impact is low, reflected in the CVSS score of 2.1, because the attacker must control the target repository and create a branch with the same name; a direct code‑execution vector is not present.

Affected Systems

The issue affects Siemens KAS tools before version 5.3. Users running KAS 5.0, 5.1, or 5.2 are susceptible; later releases have been patched.

Risk and Exploitability

The CVSS score of 2.1 indicates a low severity. EPSS data is unavailable, and the vulnerability is not listed in CISA KEV, suggesting limited active exploitation. The likely attack scenario requires the attacker to control or compromise the source repository and create a new branch with the same name, after which kas will mistakenly treat the branch tip as the validated commit.

Generated by OpenCVE AI on August 14, 2026 at 17:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Siemens KAS to version 5.3 or later
  • If an upgrade is not possible, avoid relying solely on the commit SHA—validate using cryptographically signed commits or tags if they are available
  • Mirror the repository to a trusted location, verify its integrity, and reference the mirror rather than the original source

Generated by OpenCVE AI on August 14, 2026 at 17:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qjwp-hrq6-r26r kas checks out SHA-like git branches as valid commits
History

Fri, 14 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Description kas is a setup tool for bitbake based projects. Prior to version 5.3, when relying solely on a git commit ID (SHA-1 or SHA-256) to qualify if a checkout of a repository is equivalent to the state validated while adding its commit ID to a kas configuration, users may be tricked to check out a branch of the same name from this repository. This implies that the referenced repository has been taken over by an attacker and modified to carry such a branch. SHA-1 commits may also be replaced by creating hash collisions, so the primary impact of this issue is on SHA-256 commit IDs. Version 5.3 fixes the issue. As a workaround, avoid relying solely on the commit ID for integrity validation of a repository that might become under control of a malicious 3rd party. If available, additional validate cryptographically signed commits or tags. Alternatively, mirror the repository to a save place, validate its integrity, and use this instead of the original one.
Title kas checks out SHA-like git branches as valid commits
Weaknesses CWE-347
References
Metrics cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-14T16:35:48.128Z

Reserved: 2026-05-18T22:07:37.435Z

Link: CVE-2026-47191

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-14T17:18:15.410

Modified: 2026-08-14T17:18:15.410

Link: CVE-2026-47191

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T17:30:12Z

Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature