The vulnerability lies in the OoxmlConversion.php file, specifically within the readXlsx and readPptx methods of the Tpwd\KeSearch\Utility\OoxmlConversion class. These methods are responsible for parsing OOXML files (.xlsx and .pptx). The vulnerability is caused by the use of the loadXML function with the LIBXML_NOENT and LIBXML_XINCLUDE flags. These flags instruct the XML parser to substitute entities and include external entities, creating an XML External Entity (XXE) injection vulnerability. An attacker could craft a malicious .xlsx or .pptx file containing external entity definitions that point to local files on the server or internal network resources. When the ke_search file indexer processes this malicious file, the XML parser would resolve these entities, and the content would be included in the search index, exfiltrating sensitive information. The patch resolves this by removing the LIBXML_NOENT and LIBXML_XINCLUDE flags from the loadXML calls, thus disabling the processing of external entities.