🇰🇷 한글 설명
Bouncy Castle Java 라이브러리 1.86 미만 버전에서 비밀번호 기반 키 유도(KDF) 과정 중 비용 매개변수를 적절히 제한하지 않는 취약점이 발견되었습니다. 공격자가 신뢰할 수 없는 입력값을 통해 임의의 작업량을 설정함으로써 시스템 자원을 과도하게 소모하게 만드는 서비스 거부(DoS) 공격이 가능합니다.
💡 쉬운 설명
해커가 조작된 데이터를 보내 컴퓨터가 계산을 수행하는 데 엄청나게 많은 시간과 메모리를 쓰도록 강제할 수 있습니다. 이로 인해 컴퓨터가 느려지거나 멈추는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In Bouncy Castle for Java before 1.86, several password-based key derivation entry points ran the KDF with cost parameters taken from the untrusted input being processed, without bounding them, so a small input could dictate an arbitrary amount of work before any password or integrity check could reject it. The affected paths are the RFC 9579 PBMAC1 MAC calculator builders, which took the PBKDF2 iteration count and derived-key length straight out of PBMAC1Params (JcePBMac1CalculatorBuilder, and PKCS12PBEUtils.createPBMac1Calculator reached from PKCS12PfxPdu.isMacValid); the scrypt parallelization parameter p in the PKCS#8 and PKCS#12 cost guards, which bounded only the cost parameter N and the block size r even though the scratch buffer scales with r times p, so the configured memory ceiling could be evaded entirely; the raw JCA PBKDF2 provider (org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2); and the bcrypt round count read from an encrypted OpenSSH v1 private key's own kdfoptions. Each now bounds the parameter before deriving, in line with the caps already applied elsewhere in the tree, with the OpenSSH round count configurable through the new org.bouncycastle.openssh.max_rounds property. This completes the bounding begun in 1.85 for the PKCS#8 / PBES2 decryptors (CVE-2026-15055). 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).
📍 영향받는 시스템
Bouncy Castle for Java < 1.86, Bouncy Castle Java LTS < 2.73.13, BC-FJA < bcpkix-fips 1.0.13, 2.0.13, 2.1.13
⚔️ 공격 벡터
신뢰할 수 없는 입력값(PBMAC1Params, PKCS#8/PKCS#12, OpenSSH v1 키 등)을 통해 KDF 비용 매개변수를 조작하여 전달
🛡️ 대응 방법
Bouncy Castle 라이브러리를 최신 버전(Java 1.86 이상, LTS 2.73.13 이상, FIPS 1.0.13/2.0.13/2.1.13 이상)으로 업데이트하십시오.
🔧 검증 코드
출력된 jar 파일의 버전 번호가 취약한 버전 범위에 포함되는지 확인하십시오.
find / -name "bcprov*.jar" 2>/dev/null | xargs grep -oE 'bcprov-[0-9.]+\.jar'