{"id":"CVE-2026-71888","revision":null,"records":[{"revision":"0b398e8c067343b39a8ee5b6a27366d3","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-71888","aliases":[],"title":"CMS AuthenticatedData exposes attacker-inserted authAttrs when digestAlgorithm is absent","description":"In Bouncy Castle for Java before 1.86, the streaming CMS AuthenticatedData parser accepted a message whose digestAlgorithm and authAttrs fields disagreed about whether authenticated attributes were present. RFC 5652 sec. 9.1 pairs the two, requiring that authAttrs be present whenever digestAlgorithm is, and sec. 9.2 makes the MAC cover the DER encoding of authAttrs when they are present and the eContent OCTET STRING directly when they are not. CMSAuthenticatedDataParser has to choose between those two in its constructor, before it can reach authAttrs, which comes later in the SEQUENCE, so it chose on digestAlgorithm alone: for a message with digestAlgorithm absent but authAttrs present it verified the content MAC and then returned the attributes through getAuthAttrs() as though they had been authenticated, when the MAC had never covered them. An attacker able to modify a message in transit could insert an authenticated attribute, such as an RFC 2634 ESSSecurityLabel, into an otherwise valid message while holding neither the key-encryption key nor the content-MAC key, and an application taking an authorization, routing or labelling decision from those attributes would act on attacker-chosen values. The content itself remained MAC-bound. asn1.cms.AuthenticatedData now rejects the mismatched pairing when parsing and CMSAuthenticatedDataParser cross-checks the two fields once authAttrs is read. This is a variant of CVE-2026-59642, which bound the content to the MAC for messages that legitimately carry authAttrs, and which does not address this case. This issue also affects Bouncy Castle for Java LTS before 2.73.13, and Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series), and bcutil-fips 2.0.8 (2.0.X series) and 2.1.8 (2.1.X series).","state":0,"publishedAt":"2026-10-03T08:36:12.96+00:00","modifiedAt":"2026-10-05T16:52:07.424+00:00","affected":[{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java/","name":"bcpkix","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-JAVA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java/\",\n                    \"packageName\": \"bcpkix\",\n                    \"repo\": \"https://github.com/bcgit/bc-java\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcpkix-jdk18on\",\n                    \"modules\": [\n                        \"pkix\"\n                    ],\n                    \"programFiles\": [\n                        \"CMSAuthenticatedDataParser\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.86\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java/","name":"bcutil","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-JAVA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java/\",\n                    \"packageName\": \"bcutil\",\n                    \"repo\": \"https://github.com/bcgit/bc-java\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcutil-jdk18on\",\n                    \"modules\": [\n                        \"util\"\n                    ],\n                    \"programFiles\": [\n                        \"AuthenticatedData\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"1.70\",\n                            \"lessThan\": \"1.86\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java-lts/","name":"bcpkix-lts8on","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-LTS-JAVA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java-lts/\",\n                    \"packageName\": \"bcpkix-lts8on\",\n                    \"repo\": \"https://github.com/bcgit/bc-lts-java\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcpkix-lts8on\",\n                    \"modules\": [\n                        \"pkix\"\n                    ],\n                    \"programFiles\": [\n                        \"CMSAuthenticatedDataParser\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.73.0\",\n                            \"lessThan\": \"2.73.13\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java-lts/","name":"bcutil-lts8on","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-LTS-JAVA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java-lts/\",\n                    \"packageName\": \"bcutil-lts8on\",\n                    \"repo\": \"https://github.com/bcgit/bc-lts-java\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcutil-lts8on\",\n                    \"modules\": [\n                        \"util\"\n                    ],\n                    \"programFiles\": [\n                        \"AuthenticatedData\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.73.0\",\n                            \"lessThan\": \"2.73.13\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java-fips/","name":"bcpkix-fips","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-FJA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java-fips/\",\n                    \"packageName\": \"bcpkix-fips\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcpkix-fips\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"1.0.0\",\n                            \"lessThan\": \"1.0.13\",\n                            \"versionType\": \"maven\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.0.0\",\n                            \"lessThan\": \"2.0.13\",\n                            \"versionType\": \"maven\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.1.0\",\n                            \"lessThan\": \"2.1.13\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java-fips/","name":"bcutil-fips","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-FJA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java-fips/\",\n                    \"packageName\": \"bcutil-fips\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcutil-fips\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.0.0\",\n                            \"lessThan\": \"2.0.8\",\n                            \"versionType\": \"maven\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.1.0\",\n                            \"lessThan\": \"2.1.8\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":8.7,"severity":"HIGH"}],"references":["https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071888","https://github.com/bcgit/bc-java/commit/dcb683b32b440f1beb1d2276a34930164281fb95"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-71888","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-71888","identifiers":["CVE-2026-71888"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-11T16:59:37.9488152+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-11T16:59:37.9488152+00:00","lastSuccessAt":"2026-11-11T16:59:38.1293575+00:00","error":null,"lastVerifiedAt":"2026-11-11T16:59:38.1293586+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-de3b77103708811b6494d2ff7c979037d73ae579742cd1649a5c765137ae5083-20b9291a59074a85bd9fdbd9e0ff98a8d24930e69329e59e2815bc7b300e21fc","complete":true,"records":424170,"lastAttemptAt":"2026-11-11T16:57:33.0518174+00:00","lastSuccessAt":"2026-11-11T16:57:32.8751677+00:00","error":null,"lastVerifiedAt":"2026-11-11T16:57:33.0518174+00:00","snapshotPublishedAt":"2026-11-11T16:29:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4351c3aec21c46fa943fb5060158bd33","complete":false,"records":13759,"lastAttemptAt":"2026-11-11T17:11:46.90421+00:00","lastSuccessAt":"2026-11-11T17:11:46.897+00:00","error":"8 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-11T17:11:46.897+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13534,"expectedIdentifiers":13813,"failedIdentifiers":8},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-11T16:59:37.9488152+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-11T16:59:37.9488152+00:00","lastSuccessAt":"2026-11-11T16:59:38.1301472+00:00","error":null,"lastVerifiedAt":"2026-11-11T16:59:38.1301474+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-9169816ed33d4259981dbb50309d6730","complete":true,"records":13753,"lastAttemptAt":"2026-11-11T16:59:52.0562868+00:00","lastSuccessAt":"2026-11-11T16:59:52.052+00:00","error":null,"lastVerifiedAt":"2026-11-11T16:59:52.052+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13813,"expectedIdentifiers":13813,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-11T16:59:37.8157847+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-11T16:59:37.8157847+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-11T16:57:33.208402+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-11T16:57:33.208402+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-baa8362b4daf9e5f39d5563775a55935e7b442c0735d33274a921579ce4a0d66","complete":true,"records":3093,"lastAttemptAt":"2026-11-11T16:59:37.9166712+00:00","lastSuccessAt":"2026-11-11T13:00:02.5446881+00:00","error":null,"lastVerifiedAt":"2026-11-11T16:59:37.9166712+00:00","snapshotPublishedAt":"2026-11-11T12:47:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-1443070691f712910eadc1ced449c2937aded59c9a578abda33e86dec787c46b","complete":true,"records":231689,"lastAttemptAt":"2026-11-11T16:59:37.6826554+00:00","lastSuccessAt":"2026-11-11T16:59:36.20998+00:00","error":null,"lastVerifiedAt":"2026-11-11T16:59:37.6826554+00:00","snapshotPublishedAt":"2026-11-11T16:33:19+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}