Cross-Ecosystem Vulnerability Analysis for Python Applications

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Alexopoulos, Georgios, Alexopoulos, Nikolaos, Sotiropoulos, Thodoris, Mitropoulos, Charalambos, Su, Zhendong, Mitropoulos, Dimitris
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917541650104320
author Alexopoulos, Georgios
Alexopoulos, Nikolaos
Sotiropoulos, Thodoris
Mitropoulos, Charalambos
Su, Zhendong
Mitropoulos, Dimitris
author_facet Alexopoulos, Georgios
Alexopoulos, Nikolaos
Sotiropoulos, Thodoris
Mitropoulos, Charalambos
Su, Zhendong
Mitropoulos, Dimitris
contents Python applications depend on third-party native libraries that may be vendored within package distributions or installed on the host system. When vulnerabilities are discovered in these native libraries, determining which Python packages are affected requires analysis across ecosystem boundaries, from Python dependency graphs to OS distribution packages. Current vulnerability scanners produce false negatives by overlooking vulnerabilities in vendored native libaries and false positives by failing to account for security patches backported by OS distributions. We present a provenance-aware vulnerability analysis approach that resolves vendored libraries to specific OS package versions or upstream project releases. Our approach queries vendored libraries against a database of historical OS package artifacts using content-based hashing, and applies library-specific dynamic analyses to extract version information from binaries built from upstream source. We then construct cross-ecosystem call graphs by stitching together Python and binary call graphs across dependency boundaries, enabling reachability analysis of vulnerable functions. Evaluating on 100,000 Python packages and 10 known CVEs associated with third-party native dependencies, We identify 39 directly vulnerable packages (47M+ monthly downloads) and 312 indirectly vulnerable client packages affected through dependency chains. Our analysis reduces false positives by 52% on average compared to upstream version matching, and by up to 97% for heavily-patched libraries. We responsibly disclosed all findings to maintainers; 54 issues have been fixed to date.
format Preprint
id arxiv_https___arxiv_org_abs_2603_18693
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Cross-Ecosystem Vulnerability Analysis for Python Applications
Alexopoulos, Georgios
Alexopoulos, Nikolaos
Sotiropoulos, Thodoris
Mitropoulos, Charalambos
Su, Zhendong
Mitropoulos, Dimitris
Cryptography and Security
Software Engineering
Python applications depend on third-party native libraries that may be vendored within package distributions or installed on the host system. When vulnerabilities are discovered in these native libraries, determining which Python packages are affected requires analysis across ecosystem boundaries, from Python dependency graphs to OS distribution packages. Current vulnerability scanners produce false negatives by overlooking vulnerabilities in vendored native libaries and false positives by failing to account for security patches backported by OS distributions. We present a provenance-aware vulnerability analysis approach that resolves vendored libraries to specific OS package versions or upstream project releases. Our approach queries vendored libraries against a database of historical OS package artifacts using content-based hashing, and applies library-specific dynamic analyses to extract version information from binaries built from upstream source. We then construct cross-ecosystem call graphs by stitching together Python and binary call graphs across dependency boundaries, enabling reachability analysis of vulnerable functions. Evaluating on 100,000 Python packages and 10 known CVEs associated with third-party native dependencies, We identify 39 directly vulnerable packages (47M+ monthly downloads) and 312 indirectly vulnerable client packages affected through dependency chains. Our analysis reduces false positives by 52% on average compared to upstream version matching, and by up to 97% for heavily-patched libraries. We responsibly disclosed all findings to maintainers; 54 issues have been fixed to date.
title Cross-Ecosystem Vulnerability Analysis for Python Applications
topic Cryptography and Security
Software Engineering
url https://arxiv.org/abs/2603.18693