{"id":"CVE-2024-41948","aliases":["CVE-2024-41948","GHSA-5hcj-rwm6-xmw4"],"related":[],"kind":"vulnerability","state":"published","title":"biscuit-java vulnerable to public key confusion in third party block","summary":"biscuit-java is the java 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. This vulnerability is fixed in 4.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"biscuit-java is the java 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. This vulnerability is fixed in 4.0.0.","source":"cvelist"},{"lang":"en","text":"### Impact\nTokens with third-party blocks containing trusted annotations generated through a third party block request. Due to implementation issues in biscuit-java,  third party block support in published versions is inoperating. Nevertheless, to synchronize with other implementations, we publish this advisory and the related fix.\n\n### Description\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\nthe public key of the previous block (used in the signature)\nthe public keys part of the token symbol table (for public key interning in datalog expressions)\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* 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### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n### References\n_Are there any links users can visit to find out more?_","format":"markdown","source":"ghsa"},{"lang":"es","text":"biscuit-java es la implementación java 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. Esta vulnerabilidad se solucionó en 4.0.0.","source":"nvd"}],"published":"2024-07-31T18:48:40.000Z","modified":"2026-06-17T07:48:30.617Z","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":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-1259"],"affected":[{"ranges":[{"version":">= 3.0.0, < 4.0.0","status":"affected"}],"vendor":"biscuit-auth","product":"biscuit-java","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"4.0.0"}],"ecosystem":"Maven","package":"org.biscuitsec:biscuit","purl":"pkg:maven/org.biscuitsec/biscuit","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"4.0.0"}],"vendor":"biscuitsec","product":"biscuit-java","cpe":"cpe:2.3:a:biscuitsec:biscuit-java:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/biscuit-auth/biscuit-java/security/advisories/GHSA-5hcj-rwm6-xmw4","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-41948","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/biscuit-auth/biscuit-java/commit/2e05e7b3f8f2aae38f33294f19419e2d638cb564","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/biscuit-auth/biscuit-java","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/biscuit-auth/biscuit-java/releases/tag/4.0.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-07T14:57:49.306Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41948","url":"https://www.cve.org/CVERecord?id=CVE-2024-41948","licence":"CVE Terms of Use","modified":"2024-08-07T14:59:20.577Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5hcj-rwm6-xmw4","url":"https://github.com/advisories/GHSA-5hcj-rwm6-xmw4","licence":"CC-BY-4.0","modified":"2024-11-25T05:24:39.778Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41948","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41948","licence":"Public domain","modified":"2026-06-17T07:48:30.617Z"}],"updatedAt":"2026-11-25T22:58:43.529Z","epss":{"score":0.00503,"percentile":0.36115,"date":"2026-11-30T12:00:22.000Z"}}