lanky228 opened a new pull request, #5142:
URL: https://github.com/apache/calcite/pull/5142

   ## What
   
   `ST_GeomFromGML` did not disable external entity expansion when parsing GML 
input, allowing XXE (XML External Entity) attacks via crafted GML strings 
containing `<!DOCTYPE>` declarations.
   
   ## Fix
   
   Configure the XML parser with:
   - `disallow-doctype-decl = true`
   - `external-general-entities = false`
   - `external-parameter-entities = false`
   - `load-external-dtd = false`
   
   ## Tests
   
   - Normal GML strings still parse correctly
   - Malicious GML with DOCTYPE + external entity is rejected
   - Empty/null input handled gracefully
   
   ## Jira
   
   [CALCITE-7601](https://issues.apache.org/jira/browse/CALCITE-7601)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to