In Bouncy Castle for Java before 1.85, OpenPGP AEAD decryption skips final tag on chunk-aligned data. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bcpg-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series).
{
"cna_assigner": "bcorg",
"cwe_ids": [
"CWE-354"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12817.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "1.0.7"
},
{
"fixed": "1.0.13"
},
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.13"
},
{
"introduced": "2.1.0"
},
{
"fixed": "2.1.13"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
]
}{
"extracted_events": [
{
"range": [
{
"introduced": "1.74"
},
{
"fixed": "1.85"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "4b712819846ec944379f4909101abac20f0ad4b0"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
{
"extracted_events": [
{
"range": [
{
"introduced": "2.73.0"
},
{
"fixed": "2.73.12"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.73.11"
}
],
"source": "CPE_RANGE"
}
]
}
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12817.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "16083184918046524259832498717319292839",
"length": 1522
},
"id": "CVE-2026-12817-8835a78c",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/4b712819846ec944379f4909101abac20f0ad4b0",
"target": {
"file": "pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JceAEADUtil.java",
"function": "readBlock"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "156424183833880622931663594447408166542",
"length": 1293
},
"id": "CVE-2026-12817-bf38bae0",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/4b712819846ec944379f4909101abac20f0ad4b0",
"target": {
"file": "pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcAEADUtil.java",
"function": "readBlock"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"23409770334678352525744829040216707647",
"60407602609116237066470850339965921888",
"133218309895992399925992003428061339983",
"35249125813584904882881814962928506251",
"121906986628058013311409130484452967859",
"305706954486167274336417578286986984339",
"238309882958147862669029911058538564160",
"137197919732040466659166642570582373611",
"95217606141935041231547386614963573515",
"223364304285699327041013416814457506521",
"204447726537376946533702522411243146272",
"23548177608954438727592319977415513377",
"17124063929837695553625067504462698457",
"247595136991316893756020492224270378432",
"80388849288704793875175804673656827038",
"188686785466766958713612829967335824068",
"340249818245801259809168314441790176957",
"162787026349802863129858172436756391163",
"112719712714028687141035541051460954428",
"154716980870010059793607857890439440919",
"5285720951433613963795373812659097643",
"23751919968105767578888304747031918254",
"231875247177426609607684091836109314866",
"34452144887908150219199365195243340477",
"87899662189280824431404963715352089163",
"315404155893764959686058396258332560897",
"138299659296792568595602673841824810408",
"333074141710635353878506192750459148821",
"210725009364154454332731467996692005180",
"259642482114939965979293065292366786878",
"252832954442105133934933966018921906870",
"13951468585376060320208661053699626716"
],
"threshold": 0.9
},
"id": "CVE-2026-12817-cfece60d",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/4b712819846ec944379f4909101abac20f0ad4b0",
"target": {
"file": "pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JceAEADUtil.java"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"275019368594245736914854647794622230610",
"61302347608695940798780889440109221090",
"38286605154181458274038744228082990515",
"76680160295335290251664471681619082311",
"250703071120492576547838969578884953355",
"301619156539220241862244235716249111831"
],
"threshold": 0.9
},
"id": "CVE-2026-12817-d2895c80",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/4b712819846ec944379f4909101abac20f0ad4b0",
"target": {
"file": "pg/src/test/java/org/bouncycastle/openpgp/test/PGPAeadTest.java"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"23409770334678352525744829040216707647",
"149993882992683389688168405975403939336",
"8173035150427969103056162793179880882",
"121442771103606181199253528340949359503",
"219265088040273446654039685321518641238",
"17473303923054566738335145167128510683",
"238309882958147862669029911058538564160",
"132435483978606640996367807424871582416",
"270862710398340104233038775786626808993",
"219054031375837328507432636010670483234",
"185427789123329953784429620555993881259",
"278381369956234533219140800746883492019",
"218686486528278175074254312553211339736",
"315477712444163757587690878674302061494",
"223238899261523105762370292257358171007",
"279879628809766113043379339745926955047",
"266004287522667266767400996654872503229",
"38598758357870008277433383197359100214",
"282451736130761167035411763614196248236",
"127652780093128108177668657245088550933",
"30725424810954320995147007028187639209",
"127319507348368465215894271571395504719",
"86462049007469755159785094936595248817",
"315404155893764959686058396258332560897",
"138299659296792568595602673841824810408",
"333074141710635353878506192750459148821",
"253298648774945782342122309059523229431",
"222683153430813134343719401643243358375",
"318671400151748795567815648254547792122",
"127888650621437705049535439678512667613",
"99473210598448393163984098780704055229",
"202174728865164453205095729957062277030"
],
"threshold": 0.9
},
"id": "CVE-2026-12817-f0060b57",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/4b712819846ec944379f4909101abac20f0ad4b0",
"target": {
"file": "pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcAEADUtil.java"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "29954275655684992565967407666109330429",
"length": 114
},
"id": "CVE-2026-12817-f9147b41",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/4b712819846ec944379f4909101abac20f0ad4b0",
"target": {
"file": "pg/src/test/java/org/bouncycastle/openpgp/test/PGPAeadTest.java",
"function": "performTest"
}
}
]
"2026-10-16T09:47:54Z"