{"id":"CVE-2024-31033","state":"PUBLISHED","title":"JJWT (aka Java JWT) through 0.12.5 ignores certain characters and thus a user might falsely conclude that they have a strong key. The impacted code is the setSigningKey() method wi","description":"JJWT (aka Java JWT) through 0.12.5 ignores certain characters and thus a user might falsely conclude that they have a strong key. The impacted code is the setSigningKey() method within the DefaultJwtParser class and the signWith() method within the DefaultJwtBuilder class. NOTE: the vendor disputes this because the \"ignores\" behavior cannot occur (in any version) unless there is a user error in how JJWT is used, and because the version that was actually tested must have been more than six years out of date.","publishedAt":"2024-04-01T00:00:00.000Z","updatedAt":"2024-08-27T17:59:14.397Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","source":"CISA-ADP"},"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/jwtk/jjwt","https://www.viralpatel.net/java-create-validate-jwt-token/","https://github.com/2308652512/JJWT_BUG","https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/31xxx/CVE-2024-31033.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-31033","state":"PUBLISHED","datePublished":"2024-04-01T00:00:00.000Z","dateUpdated":"2024-08-27T17:59:14.397Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2024-03-27T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"JJWT (aka Java JWT) through 0.12.5 ignores certain characters and thus a user might falsely conclude that they have a strong key. The impacted code is the setSigningKey() method within the DefaultJwtParser class and the signWith() method within the DefaultJwtBuilder class. NOTE: the vendor disputes this because the \"ignores\" behavior cannot occur (in any version) unless there is a user error in how JJWT is used, and because the version that was actually tested must have been more than six years out of date."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/jwtk/jjwt"},{"url":"https://www.viralpatel.net/java-create-validate-jwt-token/"},{"url":"https://github.com/2308652512/JJWT_BUG"},{"url":"https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358"}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2024-04-03T02:44:04.781Z"},"tags":["disputed"]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/jwtk/jjwt","tags":["x_transferred"]},{"url":"https://www.viralpatel.net/java-create-validate-jwt-token/","tags":["x_transferred"]},{"url":"https://github.com/2308652512/JJWT_BUG","tags":["x_transferred"]},{"url":"https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T01:46:04.353Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"jwtk","product":"jjwt","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.12.5","versionType":"custom"}],"cpes":["cpe:2.3:a:jwtk:jjwt:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":6.8,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","integrityImpact":"HIGH","userInteraction":"REQUIRED","attackComplexity":"HIGH","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-04-01T18:18:57.748023Z","id":"CVE-2024-31033","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-27T17:59:14.397Z"}}]}}}