Vulnerabilities in CF application files
I am running a CycloneDX security scan on the latest ColdFusion 2021 Enterprise WAR file for my application (HF22). I am getting 160+ vulnerabilities reported, most of them either Critical or High. I have some questions about these:
1. Most of these seem to be related not to the actual libraries in /cfusion/lib, but to the JAR files in /bundles/repo, e.g. ehcache-2.10.3.jar, jackson-databind-2.9.8.jar. I don't know what (if anything) I can do to fix these. Can I delete the most vulnerable files without killing the application server? Does anyone have any advice?
2. A number of the other vulnerabilities are being reported in libraries that aren't necessarily in use in my deployment: they're part of the hotfix installer JARs in /cfusion/hf-updates or /bundles/updateinstallers. Can I safely remove the most recent hotfix installers from these directories, once the hotfix has been installed and tested? (I have no intention of uninstalling a hotfix from Production: if necessary, I will backtrack to a previous Azure deployment slot.)
3. Another source of vulnerability notices is the file /cfusion/jetty/webapps/solr.war I did not think I had the Solr module installed, but if I remove this WAR file it seems to break my PDFs. I am not using the htmltopdf tag specifically, and the PDF module is installed on its own; but after I remove solr.war PDFs fail with the messsage "cannot find implementation class tagext.document.DocumentTag". Does anyone have experience with this? Is it a Solr dependency issue, or is this just a red herring with the issue possibly occurring somewhere else?
I hope this isn't too scatterbrained. It all seems related to me. Anyway, thanks in advance for any advice anyone can give me.
