Skip to content

NMS-20357: Cap XML entity expansion in JaxbUtils - #8898

Open
cgorantla wants to merge 1 commit into
foundation-2023from
cg/jira/NMS-20357
Open

cgorantla wants to merge 1 commit into
foundation-2023from
cg/jira/NMS-20357

Conversation

@cgorantla

Copy link
Copy Markdown
Contributor

The Xerces parser shipped with OpenNMS had no limit on entity expansion, so a DOCTYPE with nested entities (e.g. in an imported requisition) could exhaust memory. Add an expansion limit to every JaxbUtils parser; DOCTYPEs and normal entities still work.

External References

The Xerces parser shipped with OpenNMS had no limit on entity expansion, so a
DOCTYPE with nested entities (e.g. in an imported requisition) could exhaust
memory. Add an expansion limit to every JaxbUtils parser; DOCTYPEs and normal
entities still work.

@synqotik synqotik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@marshallmassengill marshallmassengill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants