cal.com Repository Takeover via pull_request_target Workflow
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-58354
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 11:28 UTC · Revision 1
Source evidence
cal.com Repository Takeover via pull_request_target Workflow
core-osv · Original sourcePublished 23 Jul 2026, 21:16 UTC
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.
osv:CVE-2024-58354
Complete source record
{
"id": "685ef5bbb332bb7cae752c255a49a9655d72b69e1d0a880777367da5d9a5b7e4",
"url": "https://osv.dev/vulnerability/CVE-2024-58354",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "cal.com Repository Takeover via pull_request_target Workflow",
"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 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.",
"evidence": "osv:CVE-2024-58354",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-58354",
"aliases": [
"CVE-2024-58354",
"GHSA-p3f6-52gv-cj7m"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/calcom/cal.diy",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "9aa60fae41a6b6b101c86bf430754b439f440871"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "9aa60fae41a6b6b101c86bf430754b439f440871"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58354.json"
}
}
],
"modified": "2026-10-28T02:30:44.031168939Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58354.json",
"https://github.com/calcom/cal.diy/security/advisories/GHSA-p3f6-52gv-cj7m",
"https://nvd.nist.gov/vuln/detail/CVE-2024-58354",
"https://www.vulncheck.com/advisories/cal-com-repository-takeover-via-pull-request-target-workflow",
"https://github.com/calcom/cal.diy/commit/9aa60fae41a6b6b101c86bf430754b439f440871"
],
"provider_metadata": {
"cwe_ids": [
"CWE-77"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58354.json"
}
},
"related_cves": [
{
"value": "CVE-2024-58354",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 511732,
"published_at": "2026-07-23T21:16:43.545+00:00"
}