{"id":"CVE-2026-59642","summary":"CMS AuthenticatedData content not bound to MAC when authAttrs present","details":"In Bouncy Castle for Java before 1.85, CMS AuthenticatedData content not bound to MAC when authAttrs present. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 1.0.12 (1.0.X series), 2.0.12 (2.0.X series) and 2.1.12 (2.1.X series).","modified":"2026-08-14T18:56:22.200295521Z","published":"2026-08-03T00:53:28.335Z","related":["SUSE-SU-2026:23127-1","SUSE-SU-2026:23150-1","SUSE-SU-2026:3559-1","openSUSE-SU-2026:11445-1","openSUSE-SU-2026:21538-1"],"database_specific":{"cwe_ids":["CWE-354"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59642.json","unresolved_ranges":[{"extracted_events":[{"introduced":"1.0.0"},{"fixed":"1.0.12"},{"introduced":"2.0.0"},{"fixed":"2.0.12"},{"introduced":"2.1.0"},{"fixed":"2.1.12"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"bcorg"},"references":[{"type":"WEB","url":"https://www.bouncycastle.org/download/bouncy-castle-java-fips/"},{"type":"WEB","url":"https://www.bouncycastle.org/download/bouncy-castle-java-lts/"},{"type":"WEB","url":"https://www.bouncycastle.org/download/bouncy-castle-java/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59642.json"},{"type":"ADVISORY","url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9059642"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59642"},{"type":"FIX","url":"https://github.com/bcgit/bc-java/commit/2117f316a5a47308f3e569695a6592b16aac0dd7"},{"type":"PACKAGE","url":"https://github.com/bcgit/bc-java"},{"type":"PACKAGE","url":"https://github.com/bcgit/bc-lts-java"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bcgit/bc-java","events":[{"introduced":"0"},{"fixed":"57fbd3c501f7a369f64eda311d6a709fc0bcae84"},{"fixed":"2117f316a5a47308f3e569695a6592b16aac0dd7"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.85"}],"source":["DESCRIPTION","REFERENCES"]}},{"type":"GIT","repo":"https://github.com/bcgit/bc-lts-java","events":[{"introduced":"468b5082f3f0971e80bf9edb7029c17b39b9ba0c"},{"fixed":"f101b232c5d3e07ecdd504210a57e43831d6cd65"}],"database_specific":{"extracted_events":[{"introduced":"2.73.0"},{"fixed":"2.73.12"}],"source":"AFFECTED_FIELD"}}],"versions":["r1rv84","r1rv81","r1rv83","r1rv82","r1rv80","r1rv78","r1rv77","r1rv76","r1rv75","r1rv74","r1rv73","r2rv73dot11","r2rv73dot10","r2rv73dot9","r2rv73dot8","r2rv73dot6","r2rv73dot4","r2rv73dot3","r2rv73dot1","r2rv73dot0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59642.json","vanir_signatures_modified":"2026-08-12T15:20:49Z","vanir_signatures":[{"target":{"file":"pkix/src/main/java/org/bouncycastle/cms/RecipientInformation.java","function":"getContentDigest"},"deprecated":false,"digest":{"function_hash":"158098705894453175611627068209439252856","length":132},"id":"CVE-2026-59642-4af0222a","signature_type":"Function","signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/2117f316a5a47308f3e569695a6592b16aac0dd7"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/2117f316a5a47308f3e569695a6592b16aac0dd7","target":{"file":"pkix/src/test/java/org/bouncycastle/cms/test/NewAuthenticatedDataTest.java"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["150217748446945654414047803362711950934","1998123424796623913195565977078044746","207441397873051006056980075182668530100","203396658360276607175417645139980351604","113712877113581979010122924401452900987","13711302224811139093065775823879479406","56554506495746184650441532241253947666"]},"id":"CVE-2026-59642-6b09abcb"},{"signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/2117f316a5a47308f3e569695a6592b16aac0dd7","target":{"file":"pkix/src/main/java/org/bouncycastle/cms/RecipientInformation.java"},"deprecated":false,"digest":{"line_hashes":["61699490159765602539153070249759677197","56560191882192937615218115731037239263","24036779943014696142836835206958396516","33232504576858798088661092056725251803","327868872123641563172476653506726869357","200306090724297130737187927307177303609","249104143113737347786098795121604856891","55391454397317711969786491273130876631","170557251947484495234519101514996299858","112480898048311352422068928879973531591","289738783927282737255034759486543674197","337373655030248289854707050470073004410","268291835428421863060575012389967153192","43519609951270477486745825511230203846","212672181796388980001766427326571141286","49742308220545660429250441296731924397","339057762577795336572375973345520552834","63906742431382576774228129428346309006","303969752525948689698502435476128370615","37558898415141351238041908027039281359","79072122845672055724788783194961531788","48481253750998680472344962314752678478","127622876659552018766340612939383498150","227406516074827410903372648830531917029"],"threshold":0.9},"id":"CVE-2026-59642-c3221fa8","signature_type":"Line"},{"target":{"file":"pkix/src/main/java/org/bouncycastle/cms/RecipientInformation.java","function":"getMac"},"deprecated":false,"digest":{"function_hash":"40463559588436642954628715187378232437","length":404},"id":"CVE-2026-59642-f992e9be","signature_type":"Function","signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/2117f316a5a47308f3e569695a6592b16aac0dd7"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/U:Amber"}]}