8.5high
cal.com Repository Takeover via pull_request_target Workflow
- Severity
- 8.5high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| calcom cal.diy | Not specified | CVE List |
All scores
| VulnCheck | 8.5high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:L/SI:H/SA:H |
| VulnCheck | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
cal.com (repositorio calcom, posteriormente renombrado cal.diy) está afectado por una vulnerabilidad de toma de control de repositorio en sus flujos de trabajo de GitHub Actions. El flujo de trabajo pr.yml utiliza el disparador pull_request_target con los permisos de escritura predeterminados del repositorio y los pasa a check-types.yml. check-types.yml luego realiza un checkout 'peligroso' del código de la solicitud de extracción enviado por el atacante (a través de la acción dangerous-git-checkout) y posteriormente lo ejecuta (mediante yarn install y scripts de package.json). Un atacante puede abrir una solicitud de extracción cuyo código ejecuta comandos arbitrarios con el GITHUB_TOKEN con ámbito de escritura del repositorio, permitiéndole enviar commits, fusionar o mutar solicitudes de extracción, añadir o eliminar comentarios, y eliminar o forzar el envío de ramas, comprometiendo así el repositorio. La rama principal está afectada; no hay una versión parcheada disponible.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58354 changed 2026-07-24 | CVE Terms of Use |
| NVD | CVE-2024-58354 changed 2026-10-02 | Public domain |