{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-9340","assignerOrgId":"91579145-5d7b-4cc5-b925-a0262ff19630","state":"PUBLISHED","assignerShortName":"bcorg","dateReserved":"2025-08-22T08:45:05.505Z","datePublished":"2025-08-22T09:39:47.303Z","dateUpdated":"2025-08-22T10:37:18.585Z"},"containers":{"cna":{"affected":[{"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","defaultStatus":"unaffected","modules":["API"],"packageName":"bc-fips","platforms":["All"],"product":"Bouncy Castle for Java","programFiles":["org/bouncycastle/jcajce/provider/BaseCipher"],"repo":"ssh://bcgit@git.bouncycastle.org:bc-fips-2.1.X-java.git","vendor":"Legion of the Bouncy Castle Inc.","versions":[{"lessThanOrEqual":"2.1.0","status":"affected","version":"BC-FJA 2.1.0","versionType":"maven"}]}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Out-of-bounds Write vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java bc-fips on All (API modules).<p> This vulnerability is associated with program files <tt>org/bouncycastle/jcajce/provider/BaseCipher</tt>.</p><p>This issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.</p>"}],"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."}],"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":{"orgId":"91579145-5d7b-4cc5-b925-a0262ff19630","shortName":"bcorg","dateUpdated":"2025-08-22T09:39:47.303Z"},"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909340"}],"source":{"discovery":"EXTERNAL"},"title":"native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.","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":[{"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"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2025-08-22T10:37:18.585Z"}}]}}