CVE-2024-58354 Details
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.
A repository takeover vulnerability has been identified in the cal.com GitHub repository, now known as cal.diy. This vulnerability arises within the GitHub Actions workflows, specifically in the 'pr.yml' file, which utilizes the 'pull_request_target' trigger. This trigger, combined with the repository's default write permissions, creates a risk by allowing an attacker to execute arbitrary commands using the repository's write-scoped GITHUB_TOKEN. The 'check-types.yml' workflow performs a 'dangerous' checkout of the code submitted in the pull request, using the 'dangerous-git-checkout' action, and then executes it through 'yarn install' and 'package.json' scripts. As a result, an attacker can manipulate the repository by pushing commits, merging or altering pull requests, managing comments, and controlling branches. This vulnerability affects the main branch, and no patch is currently available.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 23, 2026CISA-ADP
Assessed Jul 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/calcom/cal.diy/security/advisories/GHSA-p3f6-52gv-cj7m | CISA-ADP | AdvisoryExploitVendor |
| https://github.com/calcom/cal.diy/commit/9aa60fae41a6b6b101c86bf430754b439f440871 | [email protected] | Source CodeVendor |
| https://github.com/calcom/cal.diy/security/advisories/GHSA-p3f6-52gv-cj7m | [email protected] | AdvisoryExploitVendor |
| https://www.vulncheck.com/advisories/cal-com-repository-takeover-via-pull-request-target-workflow | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cal.com | main |
CPE
Remediation
| |
| calcom | main |
CPE
Remediation
| |
| calcom cal.diy | main |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 2, 2026 | CVE Translated | [email protected] |
| Jul 24, 2026 | CVE Modified | CISA-ADP |
| Jul 23, 2026 | New CVE Received | [email protected] |
Volerion