kcve.ai취약점 정보 · 내 자산 확인

CVE-2024-52046 Apache MINA: MINA applications using unbounded deserialization may allow RCE

Apache MINA: 무제한 역직렬화(deserialization)을 사용하는 MINA 응용 프로그램이 RCE를 허용할 수 있음

설명

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. This 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. It'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. Upgrading 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: /**      * Accept class names where the supplied ClassNameMatcher matches for * deserialization, unless they are otherwise rejected. * * @param classNameMatcher the matcher to use */ public void accept(ClassNameMatcher classNameMatcher) /** * Accept class names that match the supplied pattern for * deserialization, unless they are otherwise rejected. * * @param pattern standard Java regexp */ public void accept(Pattern pattern) /** * Accept the wildcard specified classes for deserialization, * unless they are otherwise rejected. * * @param patterns Wildcard file name patterns as defined by * {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch} */ public void accept(String... patterns) By default, the decoder will reject *all* classes that will be present in the incoming data. Note: The FtpServer, SSHd and Vysper sub-project are not affected by this issue.

Apache MINA의 ObjectSerializationDecoder는 Java의 기본 역직렬화(deserialization) 프로토콜을 사용하여 수신 직렬화 된 데이터를 처리하지만 필요한 보안 검사 및 방어가 부족합니다. 이 취약점은 공격자가 특별히 제작된 악성 직렬화 데이터를 전송하여 원격 코드 실행(RCE) 공격을 유도함으로써 역직렬화(deserialization) 프로세스를 악용할 수 있도록 합니다. 이 문제는 MINA 핵심 버전 2.0.X, 2.1.X 및 2.2.X에 영향을 미치며 릴리스 2.0.27, 2.1.10 및 2.2.4에서 해결됩니다. 또한 MINA 코어 라이브러리를 사용하는 애플리케이션은 IoBuffer#getObject() 메서드가 호출된 경우에만 영향을 받으며, 이 특정 메서드는 필터 체인에서 ObjectSerializationCodecFactory 클래스를 사용하여 ProtocolCodecFilter 인스턴스를 추가할 때 잠재적으로 호출된다는 점에 유의해야 합니다. 응용 프로그램이 해당 클래스를 사용하는 경우 최신 버전의 MINA 코어 라이브러리로 업그레이드해야 합니다. 업그레이드만으로는 충분하지 않습니다. 또한, 다음 세 가지 새로운 방법 중 하나를 사용하여 디코더가 ObjectSerializationDecoder 인스턴스에서 수락할 클래스를 명시적으로 허용해야 합니다. /** * 제공된 ClassNameMatcher가 일치하는 클래스 이름을 수락합니다. * 역직렬화(deserialization), 그렇지 않으면 거부되지 않는 한. * * @param className사용할 매치러 */ public void accept(클래스이름매쳐 클래스이름매쳐) /** * 제공된 패턴과 일치하는 클래스 이름 수락 * 역직렬화(deserialization), 그렇지 않으면 거부되지 않는 한. * * @param 패턴 표준 자바 정규 표현식 */ public void accept(패턴이 있는 객체) /** * 역직렬화(deserialization)에 대한 와일드 카드 지정된 클래스를 수락, * 다른 방법으로 거절당하지 않는 한 * * @param patterns 와일드카드 파일 이름 패턴은 다음과 같이 정의됩니다. * {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch} */ public void accept(문자열... 패턴) 기본적으로 디코더는 들어오는 데이터에 존재할 * 모든 * 클래스를 거부합니다. 참고: FtpServer, SSHD 및 Vysper 하위 프로젝트는 이 문제의 영향을 받지 않습니다.

영향 받는 제품 제품 2개

  • Apache Software Foundation

    Apache MINA

    영향 받는 버전

    • 2.1 이상 2.1.9 이하
    • 2.2 이상 2.2.3 이하

    해결 버전

    해결된 버전 정보가 없습니다.

  • apache

    mina

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 2.0.0 이상 2.0.27 미만
    • 2.1.0 이상 2.1.10 미만
    • 2.2.0 이상 2.2.4 미만

    해결 버전

    • 2.0.27 이상
    • 2.1.10 이상
    • 2.2.4 이상

참고 자료 1건

‹ 목록

점검 지원 범위 문의

도입 문의