-
Notifications
You must be signed in to change notification settings - Fork 267
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
CVEs - Issue #2119 #2133
CVEs - Issue #2119 #2133
Conversation
Make sure to not read past end of string after deleting '\r'. This fixes https://sourceforge.net/p/ezxml/bugs/19/ Signed-off-by: Egbert Eich <eich@suse.com>
For UTF-8 the multi-byte sequences should use at most 36 bits UTF-8 standard uses 21 bits or 4 bytes). This fixes: https://sourceforge.net/p/ezxml/bugs/15/ https://sourceforge.net/p/ezxml/bugs/17/ https://sourceforge.net/p/ezxml/bugs/28/ Signed-off-by: Egbert Eich <eich@suse.com>
Make sure end token ';' has really been found. This fixes https://sourceforge.net/p/ezxml/bugs/18/ Signed-off-by: Egbert Eich <eich@suse.com>
Make sure that ezxml_str2utf8() has succeeded. This fixes https://sourceforge.net/p/ezxml/bugs/13/ Signed-off-by: Egbert Eich <eich@suse.com>
Make sure malloc() succeeds. This fixes https://sourceforge.net/p/ezxml/bugs/21/ Signed-off-by: Egbert Eich <eich@suse.com>
Make sure malloc() succeeds. This fixes https://sourceforge.net/p/ezxml/bugs/22/ Signed-off-by: Egbert Eich <eich@suse.com>
The original fix for CVE-2021-31598 from https://sourceforge.net/p/ezxml/bugs/28/ is bogus: 1. The memmove target (s + c) may not point to a valid string thus the result of the test is invalid and may in fact break on perfectly valid XML data. 2. Using exit(-1) when the test fails to hard-exit the program is prohibitiv for a library like netcdf. The issue reported in above ticket is resolved by the fix for CVE-2019-20006: https://sourceforge.net/p/ezxml/bugs/15/ and CVE-2019-20202: https://sourceforge.net/p/ezxml/bugs/17/ Signed-off-by: Egbert Eich <eich@suse.com>
A more thorough analysis if the issues discovered can be found here. |
I am a bit confused. In your list, the only open bug appears to be bullet point 1, correct? |
Sounds like the correct solution is to update to the latest version of exzml, correct? |
Actually, no. The only issues fixed in netcdf-c from the list in #2119 so far are:
As far as I can see, the latest exzml is used already. As it looks like, the upstream project has been abandoned for a while already. I've published my proposed fixes as attachment to the respective bug and do not intend to take over maintenance of ezxlm. |
I think all of these changes are covered by PR #2139 |
Yes, I've seen this. Thank you! |
This series of patches addresses the CVEs mentioned in issue #2119 that have not been addressed by commit b5d4afd.