Uncontrolled Recursion Affecting org.apache.neethi:neethi package, versions [,3.2.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (39th 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-ORGAPACHENEETHI-19352682
  • published27 Aug 2026
  • disclosed24 Jul 2026
  • creditLTSHFWJT

Introduced: 24 Jul 2026

CVE-2026-66142  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade org.apache.neethi:neethi to version 3.2.3 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion in the PolicyBuilder policy parser. An attacker can exhaust runtime memory and crash the application by supplying a policy document with deeply nested policy operators, or a policy structure that drives unbounded recursive descent during parsing. The flaw lives in src/main/java/org/apache/neethi/PolicyBuilder.java, where getPolicy() recursively processes nested policy elements. When the parser handles attacker-controlled policy input, the recursive expansion can grow until it runs out of memory, causing a denial of service for applications that parse untrusted WS-Policy documents.

CVSS Base Scores

version 4.0
version 3.1