Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') Affecting org.apache.nutch:nutch package, versions [1.10,1.23)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.75% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHENUTCH-22283258
  • published8 Nov 2026
  • disclosed9 Sept 2026
  • creditTh1nk

Introduced: 9 Sep 2026

CVE-2026-41871  (opens in a new tab)
CWE-470  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade org.apache.nutch:nutch to version 1.23 or higher.

Overview

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in the create endpoint of the Nutch Server REST API. An unauthenticated attacker can send a POST request to /job/create with a job configuration specifying an attacker-chosen class name; JobManagerImpl passes it to JobFactory.createToolByClassName, which loads and instantiates the class. This lets the attacker run a selected Nutch tool with the server’s privileges, putting the server’s data and availability at risk.

Notes

  • Exploit path at the REST listener: Nutch Server must be running and reachable. The Dockerfile’s default BUILD_MODE=0 does not start the REST service; standalone deployments must invoke startserver (Docker modes 1/2 start it).

Workarounds

  • Restrict access to instances running the Nutch Service to trusted users only, preventing untrusted users from invoking the REST API.

CVSS Base Scores

version 4.0
version 3.1