{"id":"CVE-2026-55773","aliases":["CVE-2026-55773","GHSA-qmch-v2q9-wg4p"],"related":[],"kind":"vulnerability","state":"published","title":"CedarJava has a policy injection vulnerability","summary":"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 Cedar-expression injection via unescaped toCedarExpr(). The 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. This issue requires the integrator to use toCedarExpr() to build policy text at runtime from user-controlled input. This vulnerability has been fixed in versions 2.3.6, 3.4.1, and 4.9.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 Cedar-expression injection via unescaped toCedarExpr(). The 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. This issue requires the integrator to use toCedarExpr() to build policy text at runtime from user-controlled input. This vulnerability has been fixed in versions 2.3.6, 3.4.1, and 4.9.0.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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 2.3.6, 3.4.1 y 4.9.0, bajo ciertas circunstancias, un manejo inadecuado de la entrada podría permitir la inyección de expresiones Cedar a través de toCedarExpr() sin escape. El método toCedarExpr() en los tipos de valor Cedar no escapa caracteres especiales (” o \\) al convertir valores a código fuente Cedar. Si un integrador utiliza toCedarExpr() para construir texto de política en tiempo de ejecución a partir de valores controlados por el usuario, un actor podría inyectar expresiones Cedar arbitrarias. Por ejemplo, inyectar || true en una cláusula permit ... when { ... } podría hacer que el permiso sea incondicional, o inyectar && false en una cláusula forbid podría evitar que el forbid se active. Este problema requiere que el integrador utilice toCedarExpr() para construir texto de política en tiempo de ejecución a partir de entrada controlada por el usuario. Esta vulnerabilidad ha sido corregida en las versiones 2.3.6, 3.4.1 y 4.9.0.","source":"nvd"}],"published":"2026-06-19T14:39:25.000Z","modified":"2026-10-24T22:10:00.210Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 2.3.6","status":"affected"},{"version":">= 3.1.2, < 3.4.1","status":"affected"},{"version":">= 4.0.0, < 4.9.0","status":"affected"}],"vendor":"cedar-policy","product":"cedar-java","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.6"}],"ecosystem":"Maven","package":"com.cedarpolicy:cedar-java","purl":"pkg:maven/com.cedarpolicy/cedar-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1.2","status":"affected","fixed":"3.4.1"}],"ecosystem":"Maven","package":"com.cedarpolicy:cedar-java","purl":"pkg:maven/com.cedarpolicy/cedar-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.9.0"}],"ecosystem":"Maven","package":"com.cedarpolicy:cedar-java","purl":"pkg:maven/com.cedarpolicy/cedar-java","source":"ghsa"}],"references":[{"url":"https://github.com/cedar-policy/cedar-java/security/advisories/GHSA-qmch-v2q9-wg4p","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55773","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cedar-policy/cedar-java","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-15T14:18:12.881Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55773","url":"https://www.cve.org/CVERecord?id=CVE-2026-55773","licence":"CVE Terms of Use","modified":"2026-07-15T14:18:27.118Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qmch-v2q9-wg4p","url":"https://github.com/advisories/GHSA-qmch-v2q9-wg4p","licence":"CC-BY-4.0","modified":"2026-07-28T02:00:32.809Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55773","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55773","licence":"Public domain","modified":"2026-10-24T22:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:27.843Z","epss":{"score":0.00518,"percentile":0.37397,"date":"2026-11-30T12:00:22.000Z"}}