{"id":"CVE-2024-41949","aliases":["CVE-2024-41949","GHSA-p9w4-585h-g3c7","GHSA-47cq-pc2v-3rmp","GHSA-rgqv-mwc3-c78m","HSEC-2024-0009"],"related":["CVE-2024-42350"],"kind":"vulnerability","state":"published","title":"biscuit-rust vulnerable to public key confusion in third party block","summary":"biscuit-rust is the Rust implementation of Biscuit, an authentication and authorization token for microservices architectures. 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, which includes the public key of the previous block (used in the signature) and 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"biscuit-rust is the Rust implementation of Biscuit, an authentication and authorization token for microservices architectures. 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, which includes the public key of the previous block (used in the signature) and 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.","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-rust es la implementación Rust de Biscuit, un token de autenticación y autorización para arquitecturas de microservicios. 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, que incluye la clave pública del bloque anterior (utilizada en la firma) y las claves públicas que forman parte de la tabla de símbolos de token (para 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.","source":"nvd"}],"published":"2024-07-31T21:15:41.000Z","modified":"2026-06-17T07:48:30.727Z","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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-269"],"affected":[{"ranges":[{"version":"< 5.0.0","status":"affected"}],"vendor":"biscuit-auth","product":"biscuit-rust","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"},{"ranges":[{"status":"affected","fixed":"5.0.0"}],"vendor":"biscuitsec","product":"biscuit-auth","cpe":"cpe:2.3:a:biscuitsec:biscuit-auth:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/biscuit-auth/biscuit-rust/security/advisories/GHSA-p9w4-585h-g3c7","tags":["third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/biscuit-auth/biscuit/security/advisories/GHSA-rgqv-mwc3-c78m","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-02T14:49:36.289Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41949","url":"https://www.cve.org/CVERecord?id=CVE-2024-41949","licence":"CVE Terms of Use","modified":"2024-08-02T14:49:52.914Z"},{"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-41949","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41949","licence":"Public domain","modified":"2026-06-17T07:48:30.727Z"}],"updatedAt":"2026-11-25T22:58:43.530Z","epss":{"score":0.00237,"percentile":0.1579,"date":"2026-12-01T12:00:22.000Z"}}