# CVE-2024-58354: Calcom cal.diy repository takeover via GitHub Actions pull_request_target

Source: https://junglewise.ai/threats/cve-2024-58354-calcom-cal-diy-repository-takeover-via-github-actions-pull  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-23. Updated: 2026-07-23  
License: CC BY 4.0 with a link back

CVE-2024-58354 · Severity: critical · CVSS 9.9 · Published 2026-07-23

Cal.com (cal.diy) is an open-source scheduling platform. A security flaw in its automated code-testing system allows an attacker to take control of the project's source code repository. By submitting a malicious pull request, an attacker can execute unauthorized commands that allow them to modify code, delete branches, or tamper with the software's development history.

Technologies: [Cal.Com](https://junglewise.ai/threats/technologies/cal-com). Vendors: [Cal.com](https://junglewise.ai/threats/vendors/cal-com).

## Quick answers

**Is CVE-2024-58354 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-58354 being exploited in the wild.

**How severe is CVE-2024-58354?** Critical severity, with a CVSS score of 9.9, published 23 July 2026.

**Which products and versions are affected?** calcom cal.diy main branch.

**Is there a fix for CVE-2024-58354?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2024-58354 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2024-58354?** Check whether you run Cal.Com. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability exists in the GitHub Actions workflow 'pr.yml' which utilizes the 'pull_request_target' trigger. This trigger runs in the context of the base repository with default write permissions. The workflow passes these permissions to 'check-types.yml', which performs a checkout of untrusted code from the attacker's pull request using a 'dangerous-git-checkout' action. Subsequently, the workflow executes 'yarn install' and scripts from the attacker-controlled 'package.json'. An attacker with a GitHub account can trigger this by opening a pull request, gaining access to a write-scoped GITHUB_TOKEN. This allows for arbitrary command execution and full repository compromise, including pushing commits and merging malicious code.

## Affected products

- calcom cal.diy main branch

## Timeline

- 2024-04-08: advisory: GitHub Security Advisory GHSA-p3f6-52gv-cj7m published
- 2026-07-23: disclosed: NVD publication date

## References

- [https://github.com/calcom/cal.diy/commit/9aa60fae41a6b6b101c86bf430754b439f440871](https://github.com/calcom/cal.diy/commit/9aa60fae41a6b6b101c86bf430754b439f440871)
- [https://github.com/calcom/cal.diy/security/advisories/GHSA-p3f6-52gv-cj7m](https://github.com/calcom/cal.diy/security/advisories/GHSA-p3f6-52gv-cj7m)
- [https://www.vulncheck.com/advisories/cal-com-repository-takeover-via-pull-request-target-workflow](https://www.vulncheck.com/advisories/cal-com-repository-takeover-via-pull-request-target-workflow)

## Related threats

- [Cal.com authorization bypass in webhook handler](https://junglewise.ai/threats/cve-2026-112043-a-weakness-has-been-identified-in-calcom-cal-com-and-cal-diy-up)
- [Cal.com credentials delete cross-team privilege escalation](https://junglewise.ai/threats/cve-2026-109143-a-vulnerability-was-determined-in-calcom-cal-com-and-cal-diy-up)
- [Cal.com remote code execution via Next.js RSC deserialization](https://junglewise.ai/threats/cve-2025-71389-cal-com-remote-code-execution-via-next-js-rsc-deserialization)
- [Cal.com stored XSS in booking question labels](https://junglewise.ai/threats/cve-2024-58355-cal-com-stored-xss-in-booking-question-labels)
- [Cal.com cal.diy stored XSS in booking question labels](https://junglewise.ai/threats/cve-2024-58353-cal-com-cal-diy-stored-xss-in-booking-question-labels)
