<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Repository-Takeover - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/repository-takeover/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 23 Jul 2026 22:20:33 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/repository-takeover/feed.xml" rel="self" type="application/rss+xml"/><item><title>Repository Takeover Vulnerability in cal.com GitHub Actions (CVE-2024-58354)</title><link>https://feed.craftedsignal.io/briefs/2026-07-calcom-repo-takeover/</link><pubDate>Thu, 23 Jul 2026 22:20:33 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-calcom-repo-takeover/</guid><description>A critical repository takeover vulnerability (CVE-2024-58354) exists in the cal.com (calcom/cal.diy) GitHub Actions workflows, allowing an attacker to submit a malicious pull request that executes arbitrary commands with write permissions to the repository, leading to full compromise.</description><content:encoded><![CDATA[<p>A critical repository takeover vulnerability, identified as CVE-2024-58354, affects the cal.com (specifically the <code>calcom</code> repository, later renamed <code>cal.diy</code>) project's GitHub Actions workflows. Attackers can exploit this by submitting a specially crafted pull request. The vulnerable <code>pr.yml</code> workflow, triggered by <code>pull_request_target</code> events, inadvertently grants its default write permissions (via the GITHUB_TOKEN) to a downstream workflow, <code>check-types.yml</code>. This <code>check-types.yml</code> then utilizes a &quot;dangerous&quot; checkout action to retrieve the attacker's submitted pull request code and subsequently executes it through <code>yarn install</code> and <code>package.json</code> scripts. This execution takes place with the repository's write-scoped token, enabling the attacker to perform arbitrary actions such as pushing commits, merging or mutating pull requests, adding or deleting comments, and deleting or force-pushing branches, effectively leading to a full compromise of the main branch and its associated codebase. No patched version is currently available for this vulnerability.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious pull request containing arbitrary commands within <code>package.json</code> scripts.</li>
<li>The attacker submits this pull request to the vulnerable cal.com repository.</li>
<li>The <code>pr.yml</code> GitHub Actions workflow is triggered by the <code>pull_request_target</code> event.</li>
<li>The <code>pr.yml</code> workflow, by design, passes its default repository write permissions (via <code>GITHUB_TOKEN</code>) to the <code>check-types.yml</code> workflow.</li>
<li>The <code>check-types.yml</code> workflow uses a &quot;dangerous&quot; checkout action to fetch the attacker's malicious pull request code.</li>
<li><code>check-types.yml</code> executes <code>yarn install</code> and subsequent <code>package.json</code> scripts from the attacker-controlled code.</li>
<li>The attacker's arbitrary commands are executed with the repository's write-scoped <code>GITHUB_TOKEN</code>.</li>
<li>The attacker gains full control over the repository, capable of pushing commits, merging pull requests, and manipulating branches, leading to a complete repository compromise.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The successful exploitation of CVE-2024-58354 results in a complete repository takeover for the affected cal.com GitHub repository. Attackers can gain the ability to inject malicious code, tamper with the software supply chain, delete or alter source code, and potentially compromise the integrity of releases. This could lead to backdoored software distributed to users, data exfiltration from the repository, or disruption of development workflows. As the main branch is affected and no patch is available, the risk remains high for organizations using or contributing to the cal.com project.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Review all GitHub Actions workflows, particularly <code>pr.yml</code> and <code>check-types.yml</code>, for the use of <code>pull_request_target</code> in conjunction with write permissions and dangerous checkout actions as described in CVE-2024-58354.</li>
<li>Disable or refactor GitHub Actions workflows that use <code>pull_request_target</code> with default write permissions and perform untrusted code execution to mitigate CVE-2024-58354.</li>
<li>Implement &quot;least privilege&quot; for GitHub Actions workflows, explicitly limiting permissions for GITHUB_TOKEN rather than relying on default write permissions.</li>
<li>Audit existing GitHub Actions workflow logs for any suspicious activity or unexpected command execution that could indicate prior exploitation of CVE-2024-58354.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>github-actions</category><category>repository-takeover</category><category>vulnerability</category><category>cloud-security</category></item></channel></rss>