GadgetHunter: Region-Based Neuro-symbolic Detection of Java Deserialization Vulnerabilities
Open Access
- 30 June 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Software Engineering
- Vol. 3 (FSE) , 46-68
Abstract
Java deserialization vulnerabilities (JDVs) enable attackers to execute arbitrary code by crafting malicious serialized objects that trigger sequences of method calls (gadget chains) leading to dangerous operations. Existing detection approaches face a fundamental trade-off: static analysis achieves scalability but suffers from high false positives due to infeasible paths and imprecision with dynamic features like reflection; dynamic validation reduces false positives but incurs prohibitive costs and fails to explore deep exploitation chains. We present GadgetHunter, a neuro-symbolic JDV detector that combines scalable static analysis with targeted LLM reasoning and JDV exploitation-oriented constraint solving. Our approach partitions gadget chains into regions based on analyzability: statically resolvable segments are processed via interprocedural taint analysis, while dynamic boundaries are delegated to LLMs for semantic validation. We then extract critical constraints from each gadget and compose them into SMT formulas to determine chain feasibility through satisfiability solving. Evaluation on the ysoserial benchmark demonstrates that GadgetHunter reduces false negatives by up to 32% and false positives by 12-85% compared to state-of-the-art tools, while discovering 197 previously unknown gadget chains and rediscovering 4 recent CVEs. Our results show that combining symbolic reasoning with semantic understanding achieves both precision and practical impact in vulnerability detection.Keywords
Funding Information
- the RIE2025 Industry Alignment Fund - Industry Collaboration Projects (IAF-ICP) Funding Initiative (I2501E0045)
This publication has 34 references indexed in Scilit:
- Towards More Accurate Static Analysis for Taint-Style Bug Detection in Linux Kernel2025
- SerdeSniffer: Enhancing Java Deserialization Vulnerability Detection with Function Summaries2024
- Efficient Detection of Java Deserialization Gadget Chains via Bottom-up Gadget Search and Dataflow-aided Payload Construction2024
- Tabby: Automated Gadget Chain Detection for Java Deserialization Vulnerabilities2023
- ODDFuzz: Discovering Java Deserialization Vulnerabilities via Structure-Aware Directed Greybox Fuzzing2023
- Improving Java Deserialization Gadget Chain Mining via Overriding-Guided Object Generation2023
- Z3: An Efficient SMT Solver2008
- DART2005
- Introduction to set constraint-based program analysisScience of Computer Programming, 1999
- On the security of public key protocolsIEEE Transactions on Information Theory, 1983