8.8high
CedarJava has policy injection, type confusion, and incorrect equality comparison vulnerabilities
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4r9r-4425-74p7
Description
CedarJava is an open source Java implementation of the Cedar policy language, used for fine-grained authorization decisions. In versions prior to 4.9.0, the EntityIdentifier.equals() has inverted null/self branches which could lead to incorrect equality comparisons. The EntityIdentifier.equals() method has inverted logic for null and self-reference checks, returning true for null comparisons and false for self-comparisons. This does not affect Cedar authorization decisions (computed in Rust from JSON), but could affect integrators who perform their own equality checks on entity identifiers. This issue has been fixed in version 4.9.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cedar-policy cedar-java | < 4.9.0 | CVE List |
| com.cedarpolicy:cedar-java (Maven) | before 2.3.6, from 3.1.2 before 3.4.1, from 4.0.0 before 4.9.0 | GitHub Advisory Database |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
CedarJava is an open source Java implementation of the Cedar policy language, used for fine-grained authorization decisions. In versions prior to 4.9.0, the EntityIdentifier.equals() has inverted null/self branches which could lead to incorrect equality comparisons. The EntityIdentifier.equals() method has inverted logic for null and self-reference checks, returning true for null comparisons and false for self-comparisons. This does not affect Cedar authorization decisions (computed in Rust from JSON), but could affect integrators who perform their own equality checks on entity identifiers. This issue has been fixed in version 4.9.0.
GitHub Advisory Database
Summary
CedarJava is an open source Java implementation of the Cedar policy language, used for fine-grained authorization decisions. Under certain circumstances, it could lead to incorrect equality comparisons.
Impact
EntityIdentifier.equals() has inverted null/self branches
The EntityIdentifier.equals() method has inverted logic for null and self-reference checks, returning true for null comparisons and false for self-comparisons. This does not affect Cedar authorization decisions (computed in Rust from JSON), but could affect integrators who perform their own equality checks on entity identifiers.
Impacted versions:
< 4.9
Patches
It has been addressed in CedarJava version 4.9 and above. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.
Workarounds
Avoid relying on EntityIdentifier.equals() for security-sensitive comparisons until upgraded to version 4.9.
References
If you have any questions or comments about this advisory, Cedar asks that you contact us directly via email to cedar-policy-security@lists.cncf.io. Please do not create a public GitHub issue.
NVD (es)
CedarJava es una implementación Java de código abierto del lenguaje de políticas Cedar, utilizada para decisiones de autorización de grano fino. En versiones anteriores a la 4.9.0, el método EntityIdentifier.equals() tiene ramas nulas/de autorreferencia invertidas, lo que podría llevar a comparaciones de igualdad incorrectas. El método EntityIdentifier.equals() tiene lógica invertida para las comprobaciones de nulo y de autorreferencia, devolviendo verdadero para comparaciones nulas y falso para comparaciones de autorreferencia. Esto no afecta las decisiones de autorización de Cedar (calculadas en Rust a partir de JSON), pero podría afectar a los integradores que realizan sus propias comprobaciones de igualdad en los identificadores de entidad. Este problema ha sido solucionado en la versión 4.9.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55771 changed 2026-07-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4r9r-4425-74p7 changed 2026-08-12 | CC-BY-4.0 |
| NVD | CVE-2026-55771 changed 2026-10-24 | Public domain |