GHSA-4r9r-4425-74p7

Suggest an improvement
Source
https://github.com/advisories/GHSA-4r9r-4425-74p7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-4r9r-4425-74p7/GHSA-4r9r-4425-74p7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4r9r-4425-74p7
Aliases
Published
2026-07-28T14:50:25Z
Modified
2026-08-12T05:15:07.376813034Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Cedar-Java has policy injection, type confusion, and incorrect equality comparison vulnerabilities
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-697",
        "CWE-843",
        "CWE-94"
    ],
    "github_reviewed_at": "2026-07-28T14:50:25Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "nvd_published_at": "2026-07-13T20:16:48Z"
}
References

Affected packages

Maven / com.cedarpolicy:cedar-java

Package

Name
com.cedarpolicy:cedar-java
View open source insights on deps.dev
Purl
pkg:maven/com.cedarpolicy/cedar-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.6

Affected versions

2.*
2.3
2.3.3
2.3.4
2.3.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-4r9r-4425-74p7/GHSA-4r9r-4425-74p7.json"

Maven / com.cedarpolicy:cedar-java

Package

Name
com.cedarpolicy:cedar-java
View open source insights on deps.dev
Purl
pkg:maven/com.cedarpolicy/cedar-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.1.2
Fixed
3.4.1

Affected versions

3.*
3.1.2
3.2.0
3.2.5
3.3.0
3.4.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-4r9r-4425-74p7/GHSA-4r9r-4425-74p7.json"

Maven / com.cedarpolicy:cedar-java

Package

Name
com.cedarpolicy:cedar-java
View open source insights on deps.dev
Purl
pkg:maven/com.cedarpolicy/cedar-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0
Fixed
4.9.0

Affected versions

4.*
4.0.0
4.1.0
4.2.1
4.2.2
4.2.3
4.2.4
4.3.0
4.3.1
4.8.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-4r9r-4425-74p7/GHSA-4r9r-4425-74p7.json"