OpenNMS denial of service via XML entity expansion
The OpenNMS Group Meridian · The OpenNMS Group Horizon
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| The OpenNMS Group Meridian |
| No fix yet |
| The OpenNMS Group Horizon |
| No fix yet |
Original description
A denial of service vulnerability exists in the XML parsing of multiple versions of OpenNMS Meridian and Horizon. OpenNMS parsed XML without an effective limit on entity expansion. A document with a DOCTYPE that declares internal entities can expand to a very large value and exhaust the server memory. An authenticated user with provisioning access can supply such a document through a requisition or foreign-source import, which includes a remote requisition URL that the server fetches and parses. Both deeply nested entities and a single large entity referenced many times cause the memory exhaustion. The fix caps the number of entity expansions for all XML parsing and rejects any DOCTYPE in requisition and foreign-source XML.