{"id":"CVE-2024-42350","aliases":["CVE-2024-42350","GHSA-p9w4-585h-g3c7","GHSA-47cq-pc2v-3rmp","GHSA-rgqv-mwc3-c78m","HSEC-2024-0009"],"related":["CVE-2024-41949"],"kind":"vulnerability","state":"published","title":"Public key confusion in third party block in Biscuit","summary":"Biscuit is an authorization token with decentralized verification, offline attenuation and strong security policy enforcement based on a logic language. Third-party blocks can be generated without transferring the whole token to the third-party authority. Instead, a `ThirdPartyBlock` request can be sent, providing only the necessary info to generate a third-party block and to sign it: 1. the public key of the previous block (used in the signature), 2. the public keys part of the token symbol table (for public key interning in datalog expressions). A third-part block request forged by a malicious user can trick the third-party authority into generating datalog trusting the wrong keypair. Tokens with third-party blocks containing `trusted` annotations generated through a third party block request. This has been addressed in version 4 of the specification. Users are advised to update their implementations to conform. There are no known workarounds for this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Biscuit is an authorization token with decentralized verification, offline attenuation and strong security policy enforcement based on a logic language. Third-party blocks can be generated without transferring the whole token to the third-party authority. Instead, a `ThirdPartyBlock` request can be sent, providing only the necessary info to generate a third-party block and to sign it: 1. the public key of the previous block (used in the signature), 2. the public keys part of the token symbol table (for public key interning in datalog expressions). A third-part block request forged by a malicious user can trick the third-party authority into generating datalog trusting the wrong keypair. Tokens with third-party blocks containing `trusted` annotations generated through a third party block request. This has been addressed in version 4 of the specification. Users are advised to update their implementations to conform. There are no known workarounds for this vulnerability.","source":"cvelist"},{"lang":"en","text":"Third-party blocks can be generated without transferring the whole token to the third-party authority. Instead, a `ThirdPartyBlock` request can be sent, providing only the necessary info to generate a third-party block and to sign it:\n\n- the public key of the previous block (used in the signature)\n- the public keys part of the token symbol table (for public key interning in datalog expressions)\n\nA third-part block request forged by a malicious user can trick the third-party authority into generating datalog trusting the wrong keypair.\n\nConsider the following example (nominal case)\n\n- Authority `A` emits the following token: `check if thirdparty(\"b\") trusting ${pubkeyB}`\n- The well-behaving holder then generates a third-party block request based on the token and sends it to third-party authority `B`\n- Third-party `B` generates the following third-party block `thirdparty(\"b\"); check if thirdparty(\"c\") trusting ${pubkeyC}`\n- The token holder now must obtain a third-party block from third party `C` to be able to use the token\n\nNow, with a malicious user:\n- Authority `A` emits the following token: `check if thirdparty(\"b\") trusting ${pubkeyB}`\n- The holder then attenuates the token with the following third party block `thirdparty(\"c\")`, signed with a keypair `pubkeyD, privkeyD)` they generate\n- The holder then generates a third-party block request based on this token, but alter the `ThirdPartyBlockRequest` `publicKeys` field and replace `pubkeyD` with `pubkeyC`\n- Third-party `B` generates the following third-party block `thirdparty(\"b\"); check if thirdparty(\"c\") trusting ${pubkeyC}`\n- Due to the altered symbol table, the actual meaning of the block is `thirdparty(\"b\"); check if thirdparty(\"c\") trusting ${pubkeyD}`\n- The attacker can now use the token without obtaining a third-party block from `C`.\n\n### Impact\n\nTokens with third-party blocks containing `trusted` annotations generated through a third party block request","format":"markdown","source":"ghsa"},{"lang":"en","text":"# Public key confusion in third-party blocks\n\nThird-party blocks can be generated without transferring the whole token to the third-party authority. Instead, a `ThirdPartyBlock` request can be sent, providing only the necessary info to generate a third-party block and to sign it:\n\n- the public key of the previous block (used in the signature);\n- the public keys part of the token symbol table (for public key interning in datalog expressions).\n\nA third-party block request forged by a malicious user can trick the third-party authority into generating datalog trusting the wrong keypair.","format":"markdown","source":"hsec"},{"lang":"es","text":"Biscuit es un token de autorización con verificación descentralizada, atenuación fuera de línea y una fuerte aplicación de políticas de seguridad basada en un lenguaje lógico. Se pueden generar bloques de terceros sin transferir el token completo a la autoridad de terceros. En su lugar, se puede enviar una solicitud `ThirdPartyBlock`, proporcionando solo la información necesaria para generar un bloque de terceros y firmarlo: 1. la clave pública del bloque anterior (utilizada en la firma), 2. la parte de las claves públicas de la tabla de símbolos de token (para la clave pública interna en expresiones de registro de datos). Una solicitud de bloqueo de un tercero falsificada por un usuario malintencionado puede engañar a la autoridad del tercero para que genere un registro de datos que confíe en el par de claves incorrecto. Tokens con bloques de terceros que contienen anotaciones \"confiables\" generadas a través de una solicitud de bloqueo de terceros. Esto se ha solucionado en la versión 4 de la especificación. Se recomienda a los usuarios que actualicen sus implementaciones para ajustarlas. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2024-07-31T21:15:41.000Z","modified":"2026-06-17T07:49:18.473Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:L/A:N","score":3,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:L/A:N","score":3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:L/A:N","score":3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","rating":"LOW"}],"cwes":["CWE-269","CWE-668"],"affected":[{"ranges":[{"version":"< 4","status":"affected"}],"vendor":"biscuit-auth","product":"biscuit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"5.0.0"}],"ecosystem":"crates.io","package":"biscuit-auth","purl":"pkg:cargo/biscuit-auth","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.3.0.0","status":"affected","fixed":"0.4.0.0"}],"ecosystem":"Hackage","package":"biscuit-haskell","purl":"pkg:hackage/biscuit-haskell","source":"hsec"}],"references":[{"url":"https://github.com/biscuit-auth/biscuit/security/advisories/GHSA-rgqv-mwc3-c78m","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/biscuit-auth/biscuit/commit/c87cbb5d778964d6574df3e9e6579567cad12fff","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/biscuit-auth/biscuit-rust/security/advisories/GHSA-p9w4-585h-g3c7","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41949","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/biscuit-auth/biscuit-rust","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/biscuit-auth/biscuit-haskell/security/advisories/GHSA-47cq-pc2v-3rmp","tags":["advisory"],"sources":["hsec"]},{"url":"https://github.com/biscuit-auth/biscuit-haskell/pull/93","tags":["fix"],"sources":["hsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-05T20:23:26.079Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42350","url":"https://www.cve.org/CVERecord?id=CVE-2024-42350","licence":"CVE Terms of Use","modified":"2024-08-05T20:23:35.031Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p9w4-585h-g3c7","url":"https://github.com/advisories/GHSA-p9w4-585h-g3c7","licence":"CC-BY-4.0","modified":"2025-10-15T13:12:21.549Z"},{"source":"hsec","name":"Haskell Security Advisories","id":"HSEC-2024-0009","url":"https://osv.dev/vulnerability/HSEC-2024-0009","licence":"CC0-1.0","modified":"2025-11-14T18:15:43.110Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42350","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42350","licence":"Public domain","modified":"2026-06-17T07:49:18.473Z"}],"updatedAt":"2026-11-25T22:58:43.801Z","epss":{"score":0.00475,"percentile":0.33385,"date":"2026-11-30T12:00:22.000Z"}}