the transitive dependency dom4j 1.6.1 has a CVE, which is used by hibernate core (see http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000632).
I noticed that the version is very old (year 2006). Why is not the latest org.dom4j 2.x.x used?
The newest version 2.1.1 has this CVE too, but i hope in the next version it will be fixed.
I cannot comment to JIRA tickets, so I’ll try here. Can this be merged back to 5.2, 5.1 and 5.0? I am depending on 5.0 because of … political reasons (my team is not controlling the Spring version used).
Edit: I’m quite a noob with this Discourse stuff - I thought there were private messages here.
@gbadner Can we see this issue fixed in the previous Hibernate versions too? I am particularly interested in 5.0.x branch, since my team cannot change Spring versions, we have (for the time being) remain on 5.0.x branch.
Hello, is any release of 4.x that has this CVE fix? I’m using hibernate 4.2.16.Final and for now cannot upgrade to 5.x but I need this dom4j CVE fix. Thanks.
The last release of the 4.2 series was 4.2.21 and it ships with the same version of Dom4J, 1.6.1. There won’t be any future releases of those legacy versions.
Since the upgrade to Hibernate 5 appears to have only been a build change without any runtime impact, you may be able to get away with doing the same as a part of your own build, override the dependency manually by forcing your build to use 2.1.1 rather than 1.6.1 and see if you hit any regressions locally.