{"id":"UBUNTU-CVE-2023-33202","details":"Bouncy Castle for Java before 1.73 contains a potential Denial of Service (DoS) issue within the Bouncy Castle org.bouncycastle.openssl.PEMParser class. This class parses OpenSSL PEM encoded streams containing X.509 certificates, PKCS8 encoded keys, and PKCS7 objects. Parsing a file that has crafted ASN.1 data through the PEMParser causes an OutOfMemoryError, which can enable a denial of service attack. (For users of the FIPS Java API: BC-FJA 1.0.2.3 and earlier are affected; BC-FJA 1.0.2.4 is fixed.)","modified":"2026-03-19T07:34:26.415366Z","published":"2023-11-23T16:15:00Z","upstream":["CVE-2023-33202"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-33202"},{"type":"REPORT","url":"https://github.com/bcgit/bc-java/wiki/CVE-2023-33202"},{"type":"REPORT","url":"https://bouncycastle.org"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-33202"}],"affected":[{"package":{"name":"bouncycastle","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/bouncycastle@1.51-4ubuntu1+esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.49+dfsg-3ubuntu1","1.51-4ubuntu1","1.51-4ubuntu1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libbcmail-java","binary_version":"1.51-4ubuntu1+esm1"},{"binary_name":"libbcpg-java","binary_version":"1.51-4ubuntu1+esm1"},{"binary_name":"libbcpkix-java","binary_version":"1.51-4ubuntu1+esm1"},{"binary_name":"libbcprov-java","binary_version":"1.51-4ubuntu1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-33202.json"}},{"package":{"name":"bouncycastle","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/bouncycastle@1.59-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.57-1","1.58-1","1.59-1","1.59-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libbcmail-java","binary_version":"1.59-1ubuntu0.1~esm1"},{"binary_name":"libbcpg-java","binary_version":"1.59-1ubuntu0.1~esm1"},{"binary_name":"libbcpkix-java","binary_version":"1.59-1ubuntu0.1~esm1"},{"binary_name":"libbcprov-java","binary_version":"1.59-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-33202.json"}},{"package":{"name":"bouncycastle","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/bouncycastle@1.61-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.61-1","1.61-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libbcmail-java","binary_version":"1.61-1ubuntu0.1~esm1"},{"binary_name":"libbcpg-java","binary_version":"1.61-1ubuntu0.1~esm1"},{"binary_name":"libbcpkix-java","binary_version":"1.61-1ubuntu0.1~esm1"},{"binary_name":"libbcprov-java","binary_version":"1.61-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-33202.json"}},{"package":{"name":"bouncycastle","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/bouncycastle@1.68-5ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.68-2","1.68-4","1.68-5","1.68-5ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libbcmail-java","binary_version":"1.68-5ubuntu0.1~esm1"},{"binary_name":"libbcpg-java","binary_version":"1.68-5ubuntu0.1~esm1"},{"binary_name":"libbcpkix-java","binary_version":"1.68-5ubuntu0.1~esm1"},{"binary_name":"libbcprov-java","binary_version":"1.68-5ubuntu0.1~esm1"},{"binary_name":"libbctls-java","binary_version":"1.68-5ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-33202.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}