Arbitrary Code Injection 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.29% (22nd 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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMCEDARPOLICY-17732795
  • published30 Jun 2026
  • disclosed19 Jun 2026
  • creditUnknown

Introduced: 19 Jun 2026

CVE-2026-55773  (opens in a new tab)
CWE-94  (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 Arbitrary Code Injection via the toCedarExpr method, which does not escape special characters when converting values to source code. An attacker can inject arbitrary expressions by supplying specially crafted input, potentially altering authorization logic or bypassing intended restrictions. This is only exploitable if user-controlled input is used to build policy text at runtime through toCedarExpr.

Workaround

This vulnerability can be mitigated by validating and sanitizing all user-supplied input before passing it to toCedarExpr, and by avoiding the construction of policy text at runtime from user-controlled values.

CVSS Base Scores

version 4.0
version 3.1