Ron (@RonB_Y) is a security researcher at SafeBreach with 11 years of experience. He works in vulnerability research and has knowledge in forensic investigations, malware analysis and reverse engineering. Ron previously worked in the development of security products and spoke several times at DEF CON
Abstract
Microsoft integrated Python into Excel, giving users more advanced data analysis. The Python code is processed in a cloud container and returned as results. This sparks an immediate question: does it allow remote code execution on Microsoft owned servers?
In this talk, we'll dig into the various web applications and components in the Python execution environment. We'll describe how we discovered a privilege escalation vulnerability in the file upload mechanism of this service, which allowed us to gain root access within the container. Utilizing that, we revealed the complete architecture of this solution. We will show how we discovered Microsoft’s internal deployment configuration, including key vaults, database servers, account names, tenant IDs, and much more. We were even able to execute code on the pilot servers of this product.
We also found how to craft a special response to Excel, resulting in bypassing two security boundaries (CVE-2026-45459): the trusted records protection (“Enable Content” warning) and the network isolation protection.
We will expose features that weren’t even announced yet and how they might be exploited. Follow us in our journey from the first “whoami” command, through exfiltrating tailor-made Python libraries, and eventually finding a vulnerability to achieve execution as root!
https://i.blackhat.com/Asia-25/Asia-25-Carmel-The-Problems-of-Embedded-Python-in-Excel.pdf
https://www.netspi.com/blog/technical-blog/red-teaming/a-first-look-at-python-in-excel/
What you'll get from it
Python in Excel runs your code in a Microsoft cloud container, and Ron Ben Yizhak wanted to know what else it would run. A privilege escalation flaw in the file upload mechanism gave root inside the container, which exposed the architecture, internal deployment details such as key vaults, database servers and tenant IDs, and even code execution on the product's pilot servers. A crafted response to Excel also bypassed both the "Enable Content" warning and network isolation (CVE-2026-45459). Cloud and application security researchers get the full route from a first whoami to root, plus unannounced features.