github.com/cedar-policy/cedar-go is vulnerable to Access of Resource Using Incompatible Type ('Type Confusion')
81
CVE Score
High
Access of Resource Using Incompatible Type ('Type Confusion')
Affected versions of this package are affected by a type confusion vulnerability in the cedar-go JSON value parser, where JSON objects containing string-valued type and id keys are incorrectly parsed as EntityUID values instead of Record objects, silently dropping all other fields. Because this coercion happens recursively across nested values, Cedar policies that expect record fields may instead evaluate unexpected EntityUID objects, causing expressions to fail and authorization decisions to be computed incorrectly. An attacker able to supply JSON entity data, context, or nested record values can craft objects with type and id keys to strip security-relevant fields during parsing and trigger policy mis-evaluation, potentially bypassing intended authorization checks.
Upgrade the github.com/cedar-policy/cedar-go library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.2.0 - 1.5.2
Fixed in 1.6.0github.com/cedar-policy/cedar-go is vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') in versions 0.2.0 - 1.5.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.