Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to upstream repo
-
DeliveryCreate branch named after target commit SHA
-
ExploitPush malicious code to that branch
-
ExecutionTarget runs kas workspace setup
-
Persistkas invokes git checkout without commit disambiguation
-
ImpactMalicious branch content checked out into build environment
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Signature verification
|
| Exploitation Conditions | Exploitation requires two concurrent conditions: (1) the attacker must have write access to a git repository that is referenced by a kas configuration file in the target environment - this implies either compromise of the upstream repository, repository takeover (e.g., abandoned GitHub org), or a trusted-insider scenario; and (2) the kas configuration must reference that repository using a commit SHA (either 40-character SHA-1 or 64-character SHA-256). SHA-256 commit IDs are primarily at risk because creating a branch with a SHA-256-matching name is feasible, while SHA-1 collision-based substitution is separately limited by computational cost. The vulnerability does not affect configurations that reference repositories by branch or tag name rather than commit SHA, since those carry no expectation of commit-level integrity anyway. Local-only repositories or repositories hosted exclusively in environments the defender controls are not exploitable. |
| Impact | No CVSS score or vector was provided for this CVE, preventing quantitative scoring. Risk must be assessed qualitatively from available signals. The attack requires an adversary to have write access to an external git repository that is already trusted and referenced in a kas configuration - a meaningful prerequisite that limits opportunistic exploitation. However, for supply-chain scenarios (compromised upstream repos, typosquatting, repository takeovers on platforms like GitHub), this is a realistic threat model. The vulnerability directly undermines a core security assumption of reproducible build systems: that pinning a commit SHA guarantees what code is fetched. The impact on SHA-256 commits is particularly significant because users may treat SHA-256 pins as cryptographically strong guarantees. SHA-1 collision attacks remain computationally expensive and are a separate, harder threat vector. No EPSS score, KEV listing, or public POC is available, suggesting limited or no observed exploitation to date. Despite the lack of a CVSS score, this is a meaningful supply-chain integrity risk for any organization using kas to manage external dependencies in Yocto builds. |
| Exploit ScenarioDerived | An attacker who has gained write access to an upstream git repository referenced in a target organization's kas configuration (through repository takeover, credential compromise, or a malicious contributor scenario) creates a new branch whose name is the exact 64-character SHA-256 hex string of the commit pinned in the kas config. The branch points to attacker-controlled code. When a developer or CI system runs kas to set up the Yocto build workspace, kas invokes |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Integrity bypass in Siemens kas (pip/kas < 5.3) allows an attacker who controls a referenced external git repository to substitute arbitrary commit content by creating a branch whose name matches the commit SHA recorded in a kas configuration file. Because kas passed the raw SHA string to git checkout without forcing disambiguation to a commit object, git resolves a branch of that name instead of the pinned commit, defeating the integrity guarantee users rely on. The primary impact falls on SHA-256 commit IDs; SHA-1 commits face a related but distinct risk through hash-collision substitution. No public exploit has been identified at time of analysis and the issue is not listed in CISA KEV.
RemediationAI
Upgrade kas to version 5.3 or later, which contains the fix in commit 4cb4a3d01122ffaec9feaae768a5814092f6f9b5 (https://github.com/siemens/kas/commit/4cb4a3d01122ffaec9feaae768a5814092f6f9b5). This is the primary and definitive remediation. For environments where immediate upgrade is not possible, the vendor recommends validating cryptographically signed git commits or tags in addition to commit SHA pinning, which provides authenticity proof that bare SHAs cannot. As a second workaround, mirror all externally referenced repositories to a controlled internal location, validate integrity there, and configure kas to reference the mirror rather than the original upstream - this prevents an attacker who controls the upstream repo from introducing malicious branches. Note that the mirror approach introduces an operational burden of keeping mirrors synchronized and does not address the underlying git disambiguation issue. Neither workaround should be considered a long-term substitute for upgrading to 5.3.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
kas is a Python-based build configuration and workspace management tool for Yocto/OpenEmbedded projects, distributed as pip/kas. It manages external git repositories declared in configuration files, checking them out at specific commit SHAs to ensure reproducible builds. The vulnerability stems from CWE-347 (Improper Verification of Cryptographic Signature / integrity check): the affected code in kas/repos.py invoked git checkout -q <sha> where <sha> is the raw 40- or 64-character hex string from the config. Git's disambiguation logic allows a branch name to shadow a commit SHA when both exist in a repository; without appending the ^{commit} suffix, git resolves the ref against branch names first in some resolution paths. The patch (commit 4cb4a3d01122ffaec9feaae768a5814092f6f9b5) adds a regex check against 40- or 64-hex-char strings and appends ^{commit} to force git to treat the ref exclusively as a commit object, not a branch pointer. The affected CPE is pkg:pip/kas versions prior to 5.3.
Know when Jwt Attack gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (https://github.com/siemens/kas) · only source for this CVE.
CVSS VectorVendor: https://github.com/siemens/kas
DescriptionCVE.org
Impact
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.
Patches
Commit https://github.com/siemens/kas/commit/4cb4a3d01122ffaec9feaae768a5814092f6f9b5 is resolving this issue. It has been released along with kas version 5.3.
Workarounds
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.
Credits
That such issues exist was already reported 3 years ago by Aditya Sirish A Yelgundhalli. At this point, no strong integrity checks for external repositories were in place in kas, and Siemens stated in the kas documentation that such attacks are considered out of scope. This hasn't changed for SHA-1 commits as explained above. If a repo provides SHA-256 commits, though, those may be considered strong enough (even if not providing authenticity proof) and can be affected by this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Jwt Attack
View allWhy is Microsoft republishing a CVE from 2013? We are republishing CVE-2013-3900 in the Security Update Guide to update
Authentication bypass in SimpleHelp 5.5.15 and prior (plus 6.0 pre-release builds) allows remote unauthenticated attacke
Authentication bypass in WSO2 API Manager and related components (Universal Gateway, Traffic Manager, API Control Plane,
Authentication bypass in Fortinet FortiOS, FortiProxy, and FortiSwitchManager allows unauthenticated remote attackers to
ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. Rated critical severity (CVS
Security feature bypass in Microsoft .NET (shipped via Visual Studio 2022 17.12/17.14 and Visual Studio 2026 18.7) lets
ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. Rated critical severity (CVS
The package jsrsasign before 10.5.25 are vulnerable to Improper Verification of Cryptographic Signature when JWS or JWT
Authentication and authorization bypass in fast-jwt 6.2.0 through 6.2.4 (npm, NearForm) lets a remote, unauthenticated a
A library injection vulnerability exists in Microsoft Teams (work or school) 24046.2813.2770.1094 for macOS. Rated criti
A library injection vulnerability exists in the WebView.app helper app of Microsoft Teams (work or school) 24046.2813.27
A library injection vulnerability exists in the com.microsoft.teams2.modulehost.app helper app of Microsoft Teams (work
EUVD-2026-58719
GHSA-qjwp-hrq6-r26r
NVD
CVE.org
EPSS
Exploit-DB