---
id: CVE-2024-58354
title: >-
  cal.com (calcom repository, later renamed cal.diy) is affected by a repository
  takeover vulnerability in its GitHub Actions workflows
summary: >-
  cal.com (calcom repository, later renamed cal.diy) is affected by a repository
  takeover vulnerability in its GitHub Actions workflows. The workflow pr.yml
  uses the pull_request_target trigger with the repository's default write
  permissio…
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H'
cwe:
  - CWE-77
published: '2026-07-23'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T00:10:00.180'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-58354'
references:
  - url: >-
      https://github.com/calcom/cal.diy/commit/9aa60fae41a6b6b101c86bf430754b439f440871
    label: disclosure@vulncheck.com
  - url: 'https://github.com/calcom/cal.diy/security/advisories/GHSA-p3f6-52gv-cj7m'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/cal-com-repository-takeover-via-pull-request-target-workflow
    label: disclosure@vulncheck.com
  - url: 'https://github.com/calcom/cal.diy/security/advisories/GHSA-p3f6-52gv-cj7m'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00559
epssPercentile: 0.44505
ingestedAt: '2026-10-02T01:05:54.733Z'
---

## Overview

cal.com (calcom repository, later renamed cal.diy) is affected by a repository takeover vulnerability in its GitHub Actions workflows. The workflow pr.yml uses the pull_request_target trigger with the repository's default write permissions and passes them down to check-types.yml. check-types.yml then performs a 'dangerous' checkout of the attacker-submitted pull request code (via the dangerous-git-checkout action) and subsequently executes it (through yarn install and package.json scripts). An attacker can open a pull request whose code runs arbitrary commands with the repository's write-scoped GITHUB_TOKEN, allowing them to push commits, merge or mutate pull requests, add or delete comments, and delete or force-push branches, thereby compromising the repository. The main branch is affected; no patched version is available.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
