Access of Resource Using Incompatible Type ('Type Confusion') Affecting com.cedarpolicy:cedar-java package, versions [,2.3.6)[3.1.2,3.4.1)[4.0.0,4.9.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (20th 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-COMCEDARPOLICY-17732794
  • published30 Jun 2026
  • disclosed19 Jun 2026
  • creditUnknown

Introduced: 19 Jun 2026

CVE-2026-55772  (opens in a new tab)
CWE-843  (opens in a new tab)

How to fix?

Upgrade com.cedarpolicy:cedar-java to version 2.3.6, 3.4.1, 4.9.0 or higher.

Overview

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') through improper handling of reserved keys in the JSON protocol when serializing CedarMap. An attacker can cause unauthorized access or manipulation of data by supplying specially crafted keys that are interpreted incorrectly across the Java-Rust FFI boundary. This is only exploitable if the integrating service constructs a CedarMap from attacker-controlled keys and a policy references that value in a when/unless clause.

Workaround

This vulnerability can be mitigated by enabling schema-based request validation and ensuring user-controlled data does not contain reserved keys (__entity or __extn) before building CedarMap objects.

CVSS Base Scores

version 4.0
version 3.1