{"id":"CVE-2025-9340","state":"PUBLISHED","title":"native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.","description":"Out-of-bounds Write vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java bc-fips on All (API modules). This vulnerability is associated with program files org/bouncycastle/jcajce/provider/BaseCipher.\n\nThis issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.","publishedAt":"2025-08-22T09:39:47.303Z","updatedAt":"2025-08-22T10:37:18.585Z","severity":{"score":0,"label":"None","version":"4.0","vector":"CVSS:4.0/AV:P/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N/S:N/R:U/RE:M/U:Green","source":"bcorg"},"assigner":"bcorg","products":["Legion of the Bouncy Castle Inc. Bouncy Castle for Java"],"affected":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"Bouncy Castle for Java","packageName":"bc-fips","defaultStatus":"unaffected","versions":[{"version":"BC-FJA 2.1.0","status":"affected","lessThanOrEqual":"2.1.0","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["org/bouncycastle/jcajce/provider/BaseCipher"],"repo":"ssh://bcgit@git.bouncycastle.org:bc-fips-2.1.X-java.git"}],"references":["https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909340"],"weaknesses":["CWE-787"],"ingestedAt":"2026-10-29T20:10:13.529Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/9xxx/CVE-2025-9340.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-9340","state":"PUBLISHED","datePublished":"2025-08-22T09:39:47.303Z","dateUpdated":"2025-08-22T10:37:18.585Z","assignerShortName":"bcorg","assignerOrgId":"91579145-5d7b-4cc5-b925-a0262ff19630","dateReserved":"2025-08-22T08:45:05.505Z"},"containers":{"cna":{"title":"native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.","descriptions":[{"lang":"en","value":"Out-of-bounds Write vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java bc-fips on All (API modules). This vulnerability is associated with program files org/bouncycastle/jcajce/provider/BaseCipher.\n\nThis issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0."}],"affected":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"Bouncy Castle for Java","packageName":"bc-fips","defaultStatus":"unaffected","versions":[{"version":"BC-FJA 2.1.0","status":"affected","lessThanOrEqual":"2.1.0","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["org/bouncycastle/jcajce/provider/BaseCipher"],"repo":"ssh://bcgit@git.bouncycastle.org:bc-fips-2.1.X-java.git"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909340"}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"USER","Safety":"NEGLIGIBLE","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"PHYSICAL","baseScore":0,"baseSeverity":"NONE","privilegesRequired":"LOW","providerUrgency":"GREEN","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:P/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N/S:N/R:U/RE:M/U:Green","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"MODERATE"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","description":"CWE-787 Out-of-bounds Write","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"bcorg","orgId":"91579145-5d7b-4cc5-b925-a0262ff19630","dateUpdated":"2025-08-22T09:39:47.303Z"},"source":{"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"This can be coded around by avoiding operations in place when dealing with aes-native encryption/decryption."}],"value":"This can be coded around by avoiding operations in place when dealing with aes-native encryption/decryption."}],"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-08-22T10:37:04.005071Z","id":"CVE-2025-9340","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-08-22T10:37:18.585Z"}}]}}}