dependabot[bot] opened a new pull request, #2332: URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2332
Bumps [org.apache.opennlp:opennlp-tools](https://github.com/apache/opennlp) from 2.3.2 to 2.5.9. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/apache/opennlp/releases">org.apache.opennlp:opennlp-tools's releases</a>.</em></p> <blockquote> <h2>OpenNLP 2.5.9</h2> <h1>Apache OpenNLP 2.5.9</h1> <p>This is a <strong>maintenance and security release</strong> on the 2.x line. It backports the security fixes shipped in 3.0.0-M3 and refreshes several dependencies.</p> <h2>Security Fixes</h2> <p>Three security issues are addressed in this release (also fixed in <strong>3.0.0-M3</strong> on the 3.x line).</p> <h3>XXE in <code>DictionaryEntryPersistor</code> (OPENNLP-1819)</h3> <p>The <code>DictionaryEntryPersistor</code> previously used a <code>SAXParserFactory</code> that did not enable secure processing or disable DTD handling, leaving external entity resolution active. A malicious dictionary file could exploit this for <strong>local file disclosure</strong> or <strong>SSRF</strong> before any dictionary entry was processed.</p> <p>The parsing path is now aligned with the project's existing <code>XmlUtil</code> helper, which properly sets <code>FEATURE_SECURE_PROCESSING</code> and <code>disallow-doctype-decl</code>.</p> <h3>Arbitrary Class Instantiation in <code>ExtensionLoader</code> (OPENNLP-1820)</h3> <p><code>ExtensionLoader.instantiateExtension()</code> performed its <code>isAssignableFrom</code> type check <strong>after</strong> <code>Class.forName()</code> had already executed the target class's static initializer, allowing a crafted model archive to trigger the static initializer of any class on the classpath.</p> <p>The fix introduces a <strong>package-prefix allowlist</strong> consulted before <code>Class.forName()</code> is invoked:</p> <ul> <li>Classes under <code>opennlp.*</code> remain permitted by default.</li> <li>Other packages must be opted in via <code>ExtensionLoader.registerAllowedPackage(String)</code> or the <code>OPENNLP_EXT_ALLOWED_PACKAGES</code> system property (comma-separated list).</li> </ul> <h3>OOM via Unbounded Array Allocation in <code>AbstractModelReader</code> (OPENNLP-1821)</h3> <p><code>getOutcomes()</code>, <code>getOutcomePatterns()</code>, and <code>getPredicates()</code> read attacker-controlled 32-bit count fields from binary model streams and passed them directly to array allocations. A crafted <code>.bin</code> file could trigger an immediate <code>OutOfMemoryError</code> and crash the JVM.</p> <p>Each count is now bounded (default <strong>10,000,000</strong>, configurable via <code>-DOPENNLP_MAX_ENTRIES=<n></code>), with negative or oversized values failing fast via <code>IllegalArgumentException</code>.</p> <blockquote> <p>⚠️ For all three issues, users who cannot upgrade immediately should restrict input (dictionary and model files) to <strong>trusted sources only</strong>.</p> </blockquote> <h2>What's Changed</h2> <ul> <li>Apache OpenNLP 2.5.8 by <a href="https://github.com/mawiesne"><code>@mawiesne</code></a> in <a href="https://redirect.github.com/apache/opennlp/pull/1004">apache/opennlp#1004</a></li> <li>[2.x]: OPENNLP-1817: Update log4j2 to 2.25.4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/apache/opennlp/pull/999">apache/opennlp#999</a></li> <li>[2.x] Regenerated NOTICE file after dependency changes by <a href="https://github.com/github-actions"><code>@github-actions</code></a>[bot] in <a href="https://redirect.github.com/apache/opennlp/pull/1008">apache/opennlp#1008</a></li> <li>[2.x]: Bump actions/cache from 5.0.4 to 5.0.5 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/apache/opennlp/pull/1018">apache/opennlp#1018</a></li> <li>[2.x]: Bump com.ruleoftech:markdown-page-generator-plugin from 2.4.2 to 2.4.3 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/apache/opennlp/pull/1015">apache/opennlp#1015</a></li> <li>[2.x]: Bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/apache/opennlp/pull/1013">apache/opennlp#1013</a></li> <li>[2.x] OPENNLP-1819: Align DictionaryEntryPersistor XML parsing with XmlUtil by <a href="https://github.com/rzo1"><code>@rzo1</code></a> in <a href="https://redirect.github.com/apache/opennlp/pull/1020">apache/opennlp#1020</a></li> <li>[2.x]: OPENNLP-1822: Update ONNX runtime to 1.25.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/apache/opennlp/pull/1023">apache/opennlp#1023</a></li> <li>[2.x] Regenerated NOTICE file after dependency changes by <a href="https://github.com/github-actions"><code>@github-actions</code></a>[bot] in <a href="https://redirect.github.com/apache/opennlp/pull/1026">apache/opennlp#1026</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311215&version=12356814">https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311215&version=12356814</a></p> <h2>OpenNLP 2.5.8</h2> <h1>Summary</h1> <h2>Maintenance Infos:</h2> <ul> <li>Bug Fixes: <ul> <li>The SentenceDetector got three fixes in handling edge cases with abbreviation dictionaries (OPENNLP-1809, OPENNLP-1810, OPENNLP-1811)</li> </ul> </li> <li>Improvements: <ul> <li>The OpenNLP developer manual (HTML + PDF) got an uplift for the UIMA documentation part, being largely extended (OPENNLP-49)</li> <li>Some updates of dependencies</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/apache/opennlp/commit/420b7a4b9335bc4824ca9dfa2daa3222de06edb4"><code>420b7a4</code></a> [maven-release-plugin] prepare release opennlp-2.5.9</li> <li><a href="https://github.com/apache/opennlp/commit/44a02a7eeb17fdde62a69ed79e92c5074013cadd"><code>44a02a7</code></a> OPENNLP-1820: Restrict ExtensionLoader to allowlisted package prefixes (<a href="https://redirect.github.com/apache/opennlp/issues/1021">#1021</a>)</li> <li><a href="https://github.com/apache/opennlp/commit/49ba4ef3a3c12541d9d7a910993de1dc540683f1"><code>49ba4ef</code></a> OPENNLP-1821: Prevent OutOfMemory Due To Huge Array Allocation (<a href="https://redirect.github.com/apache/opennlp/issues/1022">#1022</a>)</li> <li><a href="https://github.com/apache/opennlp/commit/94f89b5793311e3e4f44fe6372b38751490d840e"><code>94f89b5</code></a> Minor: Regenerated NOTICE File for 3eb21bcf093324c4a43b780383a4e5f37aaaf606 (...</li> <li><a href="https://github.com/apache/opennlp/commit/3eb21bcf093324c4a43b780383a4e5f37aaaf606"><code>3eb21bc</code></a> [2.x]: OPENNLP-1822: Update ONNX runtime to 1.25.0 (<a href="https://redirect.github.com/apache/opennlp/issues/1023">#1023</a>)</li> <li><a href="https://github.com/apache/opennlp/commit/d9aaa472e0e6672d672bfc296a69ab68f8757959"><code>d9aaa47</code></a> OPENNLP-1819: Align DictionaryEntryPersistor XML parsing with XmlUtil helper ...</li> <li><a href="https://github.com/apache/opennlp/commit/cd6c49dc2757d1a9aa5e3cf64767559b47fde5cd"><code>cd6c49d</code></a> [2.x]: Bump peter-evans/create-pull-request from 8.1.0 to 8.1.1</li> <li><a href="https://github.com/apache/opennlp/commit/d28365f182c47d0571c2a655e3de22b649ad21c5"><code>d28365f</code></a> [2.x]: Bump com.ruleoftech:markdown-page-generator-plugin</li> <li><a href="https://github.com/apache/opennlp/commit/ad5d2007da2be98ba7e0c9c5d5670aa92f1b7d01"><code>ad5d200</code></a> [2.x]: Bump actions/cache from 5.0.4 to 5.0.5</li> <li><a href="https://github.com/apache/opennlp/commit/a219be12ef2a63af127f4ab4db26bf98fe3c54f0"><code>a219be1</code></a> OPENNLP-53: Fix compile error in ParseTest on 2.x The ch...</li> <li>Additional commits viewable in <a href="https://github.com/apache/opennlp/compare/opennlp-2.3.2...opennlp-2.5.9">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/apache/incubator-kie-kogito-apps/network/alerts). </details> -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
