Metraipolis › archive › dc_9a030f33a192

Python Import as an Execution Boundary: An Empirical Study of Bugs, Vulnerabilities, and Analysis Gaps — arXiv:2609.14791

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.14791
License (as archived)
CC0-1.0
Archived
2026-10-15T23:54:02.160Z
SHA-256 of the archived text
9391cf9fadf6cb21e171791dec4798357538a6359696c3eefa0a7dbd3263f6d3
Stable URL of this page
https://metraipolis.com/documento/dc_9a030f33a192

How to cite

Python Import as an Execution Boundary: An Empirical Study of Bugs, Vulnerabilities, and Analysis Gaps — arXiv:2609.14791 — arXiv (en), https://arxiv.org/abs/2609.14791 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9a030f33a192 (Metraipolis archive dc_9a030f33a192, sha256 9391cf9fadf6cb21e171791dec4798357538a6359696c3eefa0a7dbd3263f6d3)
BibTeX
@misc{dc9a030f33a192,
  title = {Python Import as an Execution Boundary: An Empirical Study of Bugs, Vulnerabilities, and Analysis Gaps — arXiv:2609.14791},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.14791},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9a030f33a192; sha256 9391cf9fadf6cb21e171791dec4798357538a6359696c3eefa0a7dbd3263f6d3},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.14791. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Python import does more than resolve dependencies: it executes code during module and package initialization. This behavior can trigger failures, load dynamic or native code, access resources, or change security-sensitive state before an application calls a package API. Prior work studies package selection, malicious packages, or package vulnerabilities. We present ImportMine, a study of import-related bugs and security vulnerabilities in Python software. We combine security advisories with PyPI project histories and use source and patch evidence to confirm how import activates cases, why the problem occurs, how developers fix it, and what program information is needed to explain the behavior. We retain 31 import-related advisory vulnerabilities and 38 application-data boundary cases and confirm 1,429 project-history bugs across 1,302 repositories. Among the project-history bugs activated during initialization, 97.6% stop or disrupt normal execution. In contrast, 90.0% of the 20 initialization- activated advisory vulnerabilities are High or Critical. Module-level code and package initialization activate 98.3% of the analyzed history cases. Dynamic loading is much less common, but most of its cases perform security-sensitive actions. We also find that many fixes change when an import becomes active instead of removing the dependency. Finally, we derive ImportVulBench, 228 paired pre-fix and fixed programs covering all 11 bug types.

Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-15 in cs.CR).
Categorie arXiv: Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2609.14791 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T23:20:42.687Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-15?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).