{"id":"CVE-2026-55773","title":"CedarJava has policy injection vulnerability","summary":"CedarJava has policy injection vulnerability","severity":"high","cvss":8.8,"cwe":["CWE-94"],"vendor":"cedarpolicy","product":"com.cedarpolicy:cedar-java","affected":["com.cedarpolicy:cedar-java < 2.3.6","com.cedarpolicy:cedar-java >= 3.1.2, < 3.4.1","com.cedarpolicy:cedar-java >= 4.0.0, < 4.9.0"],"patched":["com.cedarpolicy:cedar-java 2.3.6","com.cedarpolicy:cedar-java 3.4.1","com.cedarpolicy:cedar-java 4.9.0"],"published":"2026-06-19","updated":"2026-06-19","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-qmch-v2q9-wg4p","references":[{"url":"https://github.com/cedar-policy/cedar-java/security/advisories/GHSA-qmch-v2q9-wg4p"},{"url":"https://github.com/advisories/GHSA-qmch-v2q9-wg4p"}],"tags":["ghsa","maven"],"ingestedAt":"2026-06-22T15:59:08.183Z","ecosystem":"maven","epss":0.00518,"epssPercentile":0.43043,"slug":"CVE-2026-55773","body":"## Overview\n\n### Summary\n\nCedarJava is an open source Java implementation of the Cedar policy language, used for fine-grained authorization decisions. Under certain circumstances, improper input handling could allow policy injection.\n\n### Impact\n\n**Cedar-expression injection via unescaped `toCedarExpr()`**\n\nThe `toCedarExpr()` method on Cedar Value types does not escape special characters (`\"` or `\\`) when converting values to Cedar source code. If an integrator uses `toCedarExpr()` to build policy text at runtime from user-controlled values, an actor could inject arbitrary Cedar expressions. For example, injecting `|| true` into a `permit ... when { ... }` clause could make the permit unconditional, or injecting `&& false` into a `forbid` clause could prevent the `forbid` from triggering.\n\nThis issue requires the integrator to use `toCedarExpr()` to build policy text at runtime from user-controlled input.\n\n### Impacted versions: \n< 4.9\n\n### Patches\nAddressed in CedarJava version 2.3.6, 3.4.1, and 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.\n\n### Workarounds\nValidate and sanitize all user-supplied input before passing it to `toCedarExpr()`. Avoid building policy text at runtime from user-controlled values.\n\n### References\nIf you have any questions or comments about this advisory, we ask that you contact us directly via email to [cedar-policy-security@lists.cncf.io](mailto:cedar-policy-security@lists.cncf.io). Please do not create a public GitHub issue.\n\n## Affected packages\n\n- `com.cedarpolicy:cedar-java < 2.3.6`\n- `com.cedarpolicy:cedar-java >= 3.1.2, < 3.4.1`\n- `com.cedarpolicy:cedar-java >= 4.0.0, < 4.9.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `com.cedarpolicy:cedar-java 2.3.6`\n- `com.cedarpolicy:cedar-java 3.4.1`\n- `com.cedarpolicy:cedar-java 4.9.0`","depth":"twilight","depthScore":49,"depthScoreParts":{"impact":48.4,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}