GHSA-4r9r-4425-74p7
HIGHGHSA-4r9r-4425-74p7 is a high-severity (CVSS 8.8) Code Injection vulnerability in com.cedarpolicy:cedar-java. O3 Security confirms whether GHSA-4r9r-4425-74p7 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
Cedar-Java has policy injection, type confusion, and incorrect equality comparison vulnerabilities
Real-World Exposure
com.cedarpolicy:cedar-java☕com.cedarpolicy:cedar-java☕com.cedarpolicy:cedar-javaReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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 [email protected]. Please do not create a public GitHub issue.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.cedarpolicy:cedar-java | all versions | 2.3.6 |
| ☕Maven | com.cedarpolicy:cedar-java | ≥ 3.1.2&&< 3.4.1 | 3.4.1 |
| ☕Maven | com.cedarpolicy:cedar-java | ≥ 4.0.0&&< 4.9.0 | 4.9.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.cedarpolicy:cedar-java. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update com.cedarpolicy:cedar-java to 2.3.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-4r9r-4425-74p7 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-4r9r-4425-74p7 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-4r9r-4425-74p7. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-4r9r-4425-74p7 in your dependencies?
O3 detects GHSA-4r9r-4425-74p7 across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.