{"id":"CVE-2026-14682","summary":"Possible OOM from unbounded up-front allocation on a definite-length read","details":"In Bouncy Castle for Java before 1.85, Possible OOM from unbounded up-front allocation on a definite-length read. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series), and before bctls-fips 1.0.24.","modified":"2026-08-14T18:56:19.531476884Z","published":"2026-08-03T02:44:13.256Z","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":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14682.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"1.0.0"},{"fixed":"1.0.2.7"},{"introduced":"2.0.0"},{"fixed":"2.0.2"},{"introduced":"2.1.0"},{"fixed":"2.1.3"},{"introduced":"1.0.0"},{"fixed":"1.0.24"}]}],"cna_assigner":"bcorg","cwe_ids":["CWE-789"]},"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/14xxx/CVE-2026-14682.json"},{"type":"ADVISORY","url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9014682"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14682"},{"type":"FIX","url":"https://github.com/bcgit/bc-java/commit/37094e504ef50cf9ce4e0fb9e5105d495ff5c2d2"},{"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":"37094e504ef50cf9ce4e0fb9e5105d495ff5c2d2"}],"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-14682.json","vanir_signatures_modified":"2026-08-12T15:33:39Z","vanir_signatures":[{"deprecated":false,"digest":{"length":420,"function_hash":"207162120077747174010359953396157550536"},"id":"CVE-2026-14682-3c47de1a","signature_type":"Function","signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/37094e504ef50cf9ce4e0fb9e5105d495ff5c2d2","target":{"function":"toByteArray","file":"core/src/main/java/org/bouncycastle/asn1/DefiniteLengthInputStream.java"}},{"id":"CVE-2026-14682-83f34b59","signature_type":"Function","signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/37094e504ef50cf9ce4e0fb9e5105d495ff5c2d2","target":{"file":"core/src/main/java/org/bouncycastle/util/io/Streams.java","function":"readLenBytesFully"},"deprecated":false,"digest":{"function_hash":"225423879921135001523860557637182169382","length":531}},{"digest":{"line_hashes":["128590144201702826932831183904417057470","1415693993295036646316476446055866992","41478336157129212821901475298681855768","296644880863452237023377292156675500607","144010378520879348174687414423201448615","288682196956768651370012861103077414655","32467733975004668650140381821342096928","216517034150753253612033862840772286888","318695823432219526429640405883706660753"],"threshold":0.9},"id":"CVE-2026-14682-8f221fdb","signature_type":"Line","signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/37094e504ef50cf9ce4e0fb9e5105d495ff5c2d2","target":{"file":"core/src/main/java/org/bouncycastle/asn1/DefiniteLengthInputStream.java"},"deprecated":false},{"source":"https://github.com/bcgit/bc-java/commit/37094e504ef50cf9ce4e0fb9e5105d495ff5c2d2","target":{"file":"core/src/test/java/org/bouncycastle/asn1/test/RegressionTest.java"},"deprecated":false,"digest":{"line_hashes":["246307909045913595062788678237101095375","26968003310736870453344087501917743964","215741816633743669254464663262501806177","72813023785814726025407523397464103824"],"threshold":0.9},"id":"CVE-2026-14682-94f3461c","signature_type":"Line","signature_version":"v1"},{"digest":{"line_hashes":["286641106416116627786749031613132283722","171752217634674527851206921578835741842","265671569443108136873170564154690641276","323094227719293379808727675067344854499","208090468886483824082453291273244182666","235659704849314384897820668082835104320","211285726038641885971222410460238408971","262843994765607046943331803753368355735","281143284736162286301754796496917569779","72774949067402997829815126645416157953","131761126484326969509993949037406741692","320389144561054615490703429026137336928","219219605541624851690688047295778045668","75158397679024526698378744062026680867","208353358619781668817387006811409101221","110535660421373477383732730320476616337","262026690802968613690036196817385579516","296889951528194385342586829379414171960"],"threshold":0.9},"id":"CVE-2026-14682-f9442e43","signature_type":"Line","signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/37094e504ef50cf9ce4e0fb9e5105d495ff5c2d2","target":{"file":"core/src/main/java/org/bouncycastle/util/io/Streams.java"},"deprecated":false}]}}],"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:N/VA:H/SC:N/SI:N/SA:N/U:Amber"}]}