Cedar-policy cedar-java
CedarJava has a type confusion vulnerability
CedarJava is an open source Java implementation of the Cedar policy language, used for fine-grained authorization decisions. In versions prior to 2.3.6, 3.4.1 and 4.9.0, under certain circumstances, improper input handling could allow Record-to-Entity type confusion across the Java-Rust FFI boundary. CedarJava sends authorization requests to the Rust cedar-policy evaluator as JSON. The JSON protocol reserves magic single-key object shapes (__entity and __extn) for entity references and extension values. When serializing a CedarMap, there is no validation preventing these reserved keys from being used. If an integrating service builds a CedarMap from caller-supplied key/value data (such as request headers, user-defined metadata, or resource tags), an actor who controls those keys could cause the Rust evaluator to interpret a record as an entity reference. This issue requires the integrating service to build a CedarMap where the an actor controls the keys, and a policy must reference that value in a when/unless clause. This vulnerability has been fixed in versions 2.3.6, 3.4.1, and 4.9.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.3.6
- >= 3.1.2, < 3.4.1
- >= 4.0.0, < 4.9.0
Fixed in 2.3.6, 3.4.1, 4.9.0
Mitigation
Upgrade cedar-java to 2.3.6 or 3.4.1 or 4.9.0 or later.
References
- Vendor advisory github.com/cedar-policy/cedar-java/security/ad…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.