-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BC since Settings::libXmlLoaderOptions is ignored #4260
Comments
It was not something that we considered. As far as I could tell, libXmlLoaderOptions was nothing but a vector for malicious exploits. If you can upload a file with this problem, I can work on finding a solution for it. |
We were also using libXmlLoaderOptions to set LIBXML_PARSEHUGE up until version 1.29.4. |
I would need to understand why you need it. The reason for restricting files to those which don't require PARSEHUGE is to prevent DOS attacks using too much memory. The recent set of security fixes has made me paranoid. Is it possible to upload an affected file? |
I am not sure why, we noticed that if we remove the LIBXML_PARSEHUGE some of our excel files (the biggest ones) can not be read by php spreadsheet anymore. Once the option is set back up, everything works fine. |
If you are able to upload a failing file, I can investigate. |
This is:
What is the expected behavior?
Currently, we use the
Settings::setLibXmlLoaderOptions()
function to use the constantLIBXML_PARSEHUGE
While we added this 4 years ago and I can hardly find which files we are receiving is using this functionality, I would like to be sure that updating the library will not cause a BC on our side, since it was removed in the #4233
Is it something that was considered, do we have another way to allow to parse huge XML files?
What is the current behavior?
Huge XLXS files can be parsed with the library
What are the steps to reproduce?
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
Format using XML files
Which versions of PhpSpreadsheet and PHP are affected?
The text was updated successfully, but these errors were encountered: