{"id":"CVE-2025-31129","aliases":["CVE-2025-31129","GHSA-7c5v-895v-w4q5"],"related":[],"kind":"vulnerability","state":"published","title":"jooby-pac4j: deserialization of untrusted data","summary":"Jooby is a web framework for Java and Kotlin. The pac4j io.jooby.internal.pac4j.SessionStoreImpl#get module deserializes untrusted data. This vulnerability is fixed in 2.17.0 (2.x) and 3.7.0 (3.x).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jooby is a web framework for Java and Kotlin. The pac4j io.jooby.internal.pac4j.SessionStoreImpl#get module deserializes untrusted data. This vulnerability is fixed in 2.17.0 (2.x) and 3.7.0 (3.x).","source":"cvelist"},{"lang":"en","text":"### Impact\n\nVersions after 2.x and before 3.x of io.jooby:jooby-pac4j can cause deserialization of untrusted data\n\n### Patches\n\n- 2.17.0 (2.x)\n- 3.7.0 (3.x)\n\n### Workarounds\n\n- Not using io.jooby:jooby-pac4j until it gets patches.\n- Check what values you put/save on session\n\n### References\n\nVersion 2.x:\n\nhttps://github.com/jooby-project/jooby/blob/v2.x/modules/jooby-pac4j/src/main/java/io/jooby/internal/pac4j/SessionStoreImpl.java#L39-L45\n\nVersion 3.x:\nhttps://github.com/jooby-project/jooby/blob/v3.6.1/modules/jooby-pac4j/src/main/java/io/jooby/internal/pac4j/SessionStoreImpl.java#L77-L84\n\n### Cause\n\nIn module pac4j io.jooby.internal.pac4j.SessionStoreImpl#get , it is used to handle sessions , and trying to get key value. In strToObject function ,it's trying to deserialize value when value starts with \"b64~\" , which might cause deserialization of untrusted data.\n\n[modules/jooby-pac4j/src/main/java/io/jooby/internal/pac4j/SessionStoreImpl.java](https://github.com/jooby-project/jooby/blob/v3.6.1/modules/jooby-pac4j/src/main/java/io/jooby/internal/pac4j/SessionStoreImpl.java#L77-L84)\n\nHere's a small demo using SessionStoreImpl#get to handle sessions ,and user can pass parameters.\n\n![屏幕截图 2025-03-25 051325](https://github.com/user-attachments/assets/93039a06-d4f1-458a-8595-736b3fede345)\n\nAnd following below is exploiting successfully(execute calculator)\n\n![屏幕截图 2025-03-24 015128（1）](https://github.com/user-attachments/assets/415cf20c-dda0-4634-83ae-f8fa89677a16)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Jooby es un framework web para Java y Kotlin. El módulo io.jooby.internal.pac4j.SessionStoreImpl#get de pac4j deserializa datos no confiables. Esta vulnerabilidad se corrigió en las versiones 2.17.0 (2.x) y 3.7.0 (3.x).","source":"nvd"}],"published":"2025-03-31T19:10:57.599Z","modified":"2026-06-17T09:09:54.457Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":">= 3.0.0.M1, < 3.7.0","status":"affected"},{"version":"< 2.17.0","status":"affected"}],"vendor":"jooby-project","product":"jooby","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.17.0"}],"ecosystem":"Maven","package":"io.jooby:jooby-pac4j","purl":"pkg:maven/io.jooby/jooby-pac4j","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0.M1","status":"affected","fixed":"3.7.0"}],"ecosystem":"Maven","package":"io.jooby:jooby-pac4j","purl":"pkg:maven/io.jooby/jooby-pac4j","source":"ghsa"}],"references":[{"url":"https://github.com/jooby-project/jooby/security/advisories/GHSA-7c5v-895v-w4q5","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jooby-project/jooby/commit/3e13562cf36d7407813eae464e0f4b598de15692","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jooby-project/jooby/blob/v2.x/modules/jooby-pac4j/src/main/java/io/jooby/internal/pac4j/SessionStoreImpl.java#L39-L45","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jooby-project/jooby/blob/v3.6.1/modules/jooby-pac4j/src/main/java/io/jooby/internal/pac4j/SessionStoreImpl.java#L77-L84","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31129","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jooby-project/jooby","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-03-31T21:06:47.734Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-31129","url":"https://www.cve.org/CVERecord?id=CVE-2025-31129","licence":"CVE Terms of Use","modified":"2025-04-01T13:53:56.983Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7c5v-895v-w4q5","url":"https://github.com/advisories/GHSA-7c5v-895v-w4q5","licence":"CC-BY-4.0","modified":"2025-04-01T15:01:54.395Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-31129","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31129","licence":"Public domain","modified":"2026-06-17T09:09:54.457Z"}],"updatedAt":"2026-11-25T22:58:55.745Z","epss":{"score":0.00663,"percentile":0.52978,"date":"2026-12-01T12:00:22.000Z"}}