{
  "threat_severity" : "Important",
  "public_date" : "2024-12-25T10:06:23Z",
  "bugzilla" : {
    "description" : "mina-core: Apache MINA: applications using unbounded deserialization may allow RCE",
    "id" : "2334067",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2334067"
  },
  "cvss3" : {
    "cvss3_base_score" : "8.1",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-94",
  "details" : [ "The ObjectSerializationDecoder in Apache MINA uses Java’s native deserialization protocol to process\nincoming serialized data but lacks the necessary security checks and defenses. This vulnerability allows\nattackers to exploit the deserialization process by sending specially crafted malicious serialized data,\npotentially leading to remote code execution (RCE) attacks.\nThis issue affects MINA core versions 2.0.X, 2.1.X and 2.2.X, and will be fixed by the releases 2.0.27, 2.1.10 and 2.2.4.\nIt's also important to note that an application using MINA core library will only be affected if the IoBuffer#getObject() method is called, and this specific method is potentially called when adding a ProtocolCodecFilter instance using the ObjectSerializationCodecFactory class in the filter chain. If your application is specifically using those classes, you have to upgrade to the latest version of MINA core library.\nUpgrading will  not be enough: you also need to explicitly allow the classes the decoder will accept in the ObjectSerializationDecoder instance, using one of the three new methods:\n/**\n     * Accept class names where the supplied ClassNameMatcher matches for\n* deserialization, unless they are otherwise rejected.\n*\n* @param classNameMatcher the matcher to use\n*/\npublic void accept(ClassNameMatcher classNameMatcher)\n/**\n* Accept class names that match the supplied pattern for\n* deserialization, unless they are otherwise rejected.\n*\n* @param pattern standard Java regexp\n*/\npublic void accept(Pattern pattern) \n/**\n* Accept the wildcard specified classes for deserialization,\n* unless they are otherwise rejected.\n*\n* @param patterns Wildcard file name patterns as defined by\n*                  {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch}\n*/\npublic void accept(String... patterns)\nBy default, the decoder will reject *all* classes that will be present in the incoming data.\nNote: The FtpServer, SSHd and Vysper sub-project are not affected by this issue.", "A flaw was found in Apache MINA. The ObjectSerializationDecoder in Apache MINA uses Java’s native deserialization protocol to process incoming serialized data but lacks the necessary security checks and defenses. This vulnerability allows attackers to exploit the deserialization process by sending specially crafted malicious serialized data, potentially leading to remote code execution (RCE) attacks." ],
  "statement" : "This vulnerability is rated as Important due to the risk of remote code execution via insecure Java deserialization in Apache MINA, where attackers can exploit the lack of security checks in the deserialization process, potentially compromising systems that use specific MINA classes.\nApache Mina is a transitive dependency of Apache Directory that is used only in Apache Kafka tests. Therefore, streams for Apache Kafka is not vulnerable to this issue.",
  "affected_release" : [ {
    "product_name" : "Red Hat build of Apache Camel 4.8.3 for Spring Boot",
    "release_date" : "2025-02-05T00:00:00Z",
    "advisory" : "RHSA-2025:1078",
    "cpe" : "cpe:/a:redhat:apache_camel_spring_boot:4.8.3",
    "package" : "org.apache.mina/mina-core"
  } ],
  "package_state" : [ {
    "product_name" : "A-MQ Clients 2",
    "fix_state" : "Affected",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:a_mq_clients:2"
  }, {
    "product_name" : "Red Hat AMQ Broker 7",
    "fix_state" : "Will not fix",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:amq_broker:7"
  }, {
    "product_name" : "Red Hat build of Apache Camel - HawtIO 4",
    "fix_state" : "Not affected",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:apache_camel_hawtio:4"
  }, {
    "product_name" : "Red Hat Build of Keycloak",
    "fix_state" : "Will not fix",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:build_keycloak:"
  }, {
    "product_name" : "Red Hat Data Grid 8",
    "fix_state" : "Will not fix",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:jboss_data_grid:8"
  }, {
    "product_name" : "Red Hat Fuse 7",
    "fix_state" : "Out of support scope",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:jboss_fuse:7"
  }, {
    "product_name" : "Red Hat Integration Camel K 1",
    "fix_state" : "Will not fix",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:integration:1"
  }, {
    "product_name" : "Red Hat JBoss Data Grid 7",
    "fix_state" : "Affected",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:jboss_data_grid:7"
  }, {
    "product_name" : "Red Hat JBoss Enterprise Application Platform 7",
    "fix_state" : "Not affected",
    "package_name" : "mina-core",
    "cpe" : "cpe:/a:redhat:jboss_enterprise_application_platform:7"
  }, {
    "product_name" : "Red Hat JBoss Enterprise Application Platform 8",
    "fix_state" : "Not affected",
    "package_name" : "mina-core",
    "cpe" : "cpe:/a:redhat:jboss_enterprise_application_platform:8"
  }, {
    "product_name" : "Red Hat JBoss Enterprise Application Platform Expansion Pack",
    "fix_state" : "Not affected",
    "package_name" : "mina-core",
    "cpe" : "cpe:/a:redhat:jbosseapxp"
  }, {
    "product_name" : "Red Hat Process Automation 7",
    "fix_state" : "Not affected",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:jboss_enterprise_bpms_platform:7"
  }, {
    "product_name" : "Red Hat Single Sign-On 7",
    "fix_state" : "Not affected",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:red_hat_single_sign_on:7"
  }, {
    "product_name" : "streams for Apache Kafka",
    "fix_state" : "Will not fix",
    "package_name" : "org.apache.mina/mina-core",
    "cpe" : "cpe:/a:redhat:amq_streams:1"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-52046\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-52046\nhttps://lists.apache.org/thread/4wxktgjpggdbto15d515wdctohb0qmv8" ],
  "name" : "CVE-2024-52046",
  "csaw" : false
}