google / osv-scanner

Vulnerability scanner written in Go which uses the data provided by https://osv.dev
https://google.github.io/osv-scanner/
Apache License 2.0
6.01k stars 337 forks source link

Java import reachability #1031

Open oliverchang opened 3 weeks ago

oliverchang commented 3 weeks ago

With transitive pom.xml resolution landing soon in https://github.com/google/osv-scanner/pull/1028, we'll likely start to get a lot more vulnerability matches for Java projects.

IIUC, Java dependency resolution does not take into account import reachability (unlike Go). This means there's an opportunity to do some kind of import reachability analysis to prune (VEX) out vulnerability matches that likely do not affect the project.

One tool that may be useful for this is jdeps: https://docs.oracle.com/en/java/javase/11/tools/jdeps.html

oliverchang commented 3 weeks ago

CC @cuixq @michaelkedar