Bouncy Castle BC 1.54 - 1.59, BC-FJA 1.0.0, BC-FJA 1.0.1 and earlier have a flaw in the Low-level interface to RSA key pair generator, specifically RSA Key Pairs generated in low-level API with added certainty may have less M-R tests than expected. This appears to be fixed in versions BC 1.60 beta 4 and later, BC-FJA 1.0.2 and later.
[
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"257698838932714443289646009555494598341",
"289848681659626294251947604395719801481",
"156915566116362155606891889355124502872",
"26895649160699150255602757069596481226",
"220811889832895347815946836515128187770",
"47045332555838027236932019877537168760",
"22919438933150866736858579667051393581",
"143814390065555812665951859181297093884",
"237451756451439053358303576206498505327",
"277246556836375319833842980669284337346",
"130689352777683059142271724779473551753",
"336435536837793534198724193478017402442",
"17704946286379027993761977778742095203",
"260155809973710943641365639216995634088",
"7377602204838434508197526472147943878",
"187118732279990443988316599001482697228",
"214681161194493830139928104179165807571",
"250657119348606598417294254264344680167",
"144151817570865529575959812164844930523",
"90485390753289015655808852128637265999"
]
},
"id": "CVE-2018-1000180-4be11a56",
"target": {
"file": "core/src/main/java/org/bouncycastle/crypto/generators/RSAKeyPairGenerator.java"
},
"signature_type": "Line",
"source": "https://github.com/bcgit/bc-java/commit/73780ac522b7795fc165630aba8d5f5729acc839",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"length": 160.0,
"function_hash": "26046904150781172814100366087529876009"
},
"id": "CVE-2018-1000180-5e3a00a7",
"target": {
"file": "core/src/main/java/org/bouncycastle/crypto/generators/RSAKeyPairGenerator.java",
"function": "init"
},
"signature_type": "Function",
"source": "https://github.com/bcgit/bc-java/commit/73780ac522b7795fc165630aba8d5f5729acc839",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"length": 525.0,
"function_hash": "48298570206855095622110672320160068254"
},
"id": "CVE-2018-1000180-81d64e88",
"target": {
"file": "core/src/main/java/org/bouncycastle/crypto/generators/RSAKeyPairGenerator.java",
"function": "chooseRandomPrime"
},
"signature_type": "Function",
"source": "https://github.com/bcgit/bc-java/commit/73780ac522b7795fc165630aba8d5f5729acc839",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"length": 140.0,
"function_hash": "315724511571408902034389038163610651938"
},
"id": "CVE-2018-1000180-81d898a1",
"target": {
"file": "core/src/main/java/org/bouncycastle/crypto/generators/RSAKeyPairGenerator.java",
"function": "isProbablePrime"
},
"signature_type": "Function",
"source": "https://github.com/bcgit/bc-java/commit/73780ac522b7795fc165630aba8d5f5729acc839",
"deprecated": false
}
]