In Apache Batik 1.x before 1.10, when deserializing subclass of AbstractDocument, the class takes a string from the inputStream as the class name which then use it to call the no-arg constructor of the class. Fix was to check the class type before calling newInstance in deserialization.
{
"github_reviewed": true,
"nvd_published_at": "2018-05-24T16:29:00Z",
"github_reviewed_at": "2022-06-29T18:57:27Z",
"severity": "CRITICAL",
"cwe_ids": [
"CWE-502"
]
}