spomky-labs/cbor-php is vulnerable to Type Confusion
65
Medium Risk
The CBOR map objects store decoded entries in a native PHP array keyed by each key's normalized value. Because PHP casts numeric strings to integers and rejects arrays used as offsets, structurally distinct keys such as the integer 1, the text string 1, and a byte string collapse onto one slot while an array or map key raises an uncaught TypeError. Decoding untrusted CBOR can therefore crash the process or silently overwrite earlier entries, producing parser-differential behavior in COSE and WebAuthn use. The fix records each occupied slot's major type and rejects colliding, duplicate, and non-scalar keys.
You are affected if you are using a version that falls within the vulnerable range and you decode untrusted or externally controlled CBOR data.
spomky-labs/cbor-php is vulnerable to Type Confusion in versions 0.0.1 - 3.3.3.
Upgrade the spomky-labs/cbor-php library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

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.