Security advisory
In the Bouncy Castle JCE Provider version 1.55 and earlier the DSA key pair generator generates a weak private key if used with default values. If the JCA key pair generator is not explicitly initialised with DSA parameters, 1.55 and earlier generates a private value assuming a 1024 bit key size. In earlier releases this can be dealt with by explicitly passing parameters to the key pair generator.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-1000343
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:09 UTC · Revision 1
Source evidence
In the Bouncy Castle JCE Provider version 1.55 and earlier the DSA key pair generator generates a weak private key if used with default values. If the JCA key pair generator is not explicitly initialised with DSA parameters, 1.55 and earlier generates a private value assuming a 1024 bit key size. In earlier releases this can be dealt with by explicitly passing parameters to the key pair generator.
osv:CVE-2016-1000343
Complete source record
{
"id": "3232b0b7e98d93b726e3edca9f5f601bed03a3d68f62ea9cb1a464bd3adbcfc5",
"url": "https://osv.dev/vulnerability/CVE-2016-1000343",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-1000343",
"summary": "In the Bouncy Castle JCE Provider version 1.55 and earlier the DSA key pair generator generates a weak private key if used with default values. If the JCA key pair generator is not explicitly initialised with DSA parameters, 1.55 and earlier generates a private value assuming a 1024 bit key size. In earlier releases this can be dealt with by explicitly passing parameters to the key pair generator.",
"evidence": "osv:CVE-2016-1000343",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2016-1000343",
"aliases": [
"CVE-2016-1000343",
"GHSA-rrvx-pwf8-p59p"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/bcgit/bc-java",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "70b39c9a84327f522bcbe89d5a5fda65ebf630ac"
},
{
"fixed": "50a53068c094d6cff37659da33c9b4505becd389"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.55"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "50a53068c094d6cff37659da33c9b4505becd389"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"r1rv55",
"r1rv54",
"r1rv53",
"r1rv52",
"r1rv51",
"r1rv50",
"r1rv49"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-1000343.json",
"vanir_signatures": [
{
"id": "CVE-2016-1000343-205ba2dd",
"digest": {
"threshold": 0.9,
"line_hashes": [
"272960272851457067213669225105609542617",
"40437591993253917580729287954800812592",
"244117597628187691213480854404577928477",
"256388720511189596835617265611611441182",
"144834174902876871041848359847103006795",
"109391545642665904104121926837062339161",
"329942142184009405323326196099659975311",
"44638415618053903489688011888839369597",
"279435678809771383110381504409095219915",
"149260297816348481157597294695995565899",
"135202963780410441307750029108679602867"
]
},
"source": "https://github.com/bcgit/bc-java/commit/50a53068c094d6cff37659da33c9b4505becd389",
"target": {
"file": "prov/src/test/java/org/bouncycastle/jce/provider/test/DSATest.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2016-1000343-394025c5",
"digest": {
"threshold": 0.9,
"line_hashes": [
"13355290723725349368745329989347618543",
"132012456049536062486610142113253442680",
"266566135274626677248422357772359090099",
"67951718911132861200676972530867716392",
"123227893897903794997018758524343559168",
"125072645518652505202624749001375164121",
"107204242373676434483157988757460451279",
"234440885163403474179705305683870469747",
"227689743794388119601251283389931386220",
"46437445457244463402399530235552491256",
"233676737684436282642951948705719036399",
"262957240772312990909155497255796045702",
"161559031118209141837246876192847496487",
"124081888484579726664893620713637938254",
"258117312511801216931746282811598433286",
"155765287899303234545320164174264001128",
"177791379852089713076714863354421810584",
"71385015115912219243897975170110225611",
"216952351133835419405455233238767730185",
"318764821106349202931912140848248088135",
"89337051256361544191950482851091403204",
"117424738161216075649616111895930893878",
"293054463246076210814968644804689224777",
"145743308941858415062268333078653912371"
]
},
"source": "https://github.com/bcgit/bc-java/commit/50a53068c094d6cff37659da33c9b4505becd389",
"target": {
"file": "prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/KeyPairGeneratorSpi.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2016-1000343-9d31b4a6",
"digest": {
"length": 2337,
"function_hash": "73808229874167972886948173315043521400"
},
"source": "https://github.com/bcgit/bc-java/commit/50a53068c094d6cff37659da33c9b4505becd389",
"target": {
"file": "prov/src/test/java/org/bouncycastle/jce/provider/test/DSATest.java",
"function": "performTest"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2016-1000343-ccf1950b",
"digest": {
"length": 421,
"function_hash": "13749231353833127326132574748037856164"
},
"source": "https://github.com/bcgit/bc-java/commit/50a53068c094d6cff37659da33c9b4505becd389",
"target": {
"file": "prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/KeyPairGeneratorSpi.java",
"function": "generateKeyPair"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2016-1000343-e28e69a3",
"digest": {
"length": 312,
"function_hash": "73127320062142693310826675929981259371"
},
"source": "https://github.com/bcgit/bc-java/commit/50a53068c094d6cff37659da33c9b4505becd389",
"target": {
"file": "prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/KeyPairGeneratorSpi.java",
"function": "initialize"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:13:23Z"
}
}
],
"modified": "2026-10-20T13:13:23.862847316Z",
"provider": "osv",
"references": [
"https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451%40%3Csolr-user.lucene.apache.org%3E",
"https://usn.ubuntu.com/3727-1/",
"https://www.oracle.com/security-alerts/cpuoct2020.html",
"https://access.redhat.com/errata/RHSA-2018:2669",
"https://access.redhat.com/errata/RHSA-2018:2927",
"https://lists.debian.org/debian-lts-announce/2018/07/msg00009.html",
"https://security.netapp.com/advisory/ntap-20181127-0004/",
"https://github.com/bcgit/bc-java/commit/50a53068c094d6cff37659da33c9b4505becd389#diff-5578e61500abb2b87b300d3114bdfd7d"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2016-1000343",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387326,
"published_at": "2018-06-04T13:29:00.437+00:00"
}