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

CVE-2022-23305 SQL injection in JDBC Appender in Apache Log4j V1

아파치 Log4j V1의 JDBC Appender에서 SQL 주입

설명

By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the values to be inserted are converters from PatternLayout. The message converter, %m, is likely to always be included. This allows attackers to manipulate the SQL by entering crafted strings into input fields or headers of an application that are logged allowing unintended SQL queries to be executed. Note this issue only affects Log4j 1.x when specifically configured to use the JDBCAppender, which is not the default. Beginning in version 2.0-beta8, the JDBCAppender was re-introduced with proper support for parameterized SQL queries and further customization over the columns written to in logs. Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions.

Log4j 1.2.x의 JDBCAppender는 SQL 문을 삽입할 값이 PatternLayout의 변환기인 구성 매개 변수로 받아들입니다. 메시지 변환기 %m은 항상 포함될 수 있습니다. 이렇게 하면 공격자가 의도하지 않은 SQL 쿼리를 실행할 수 있도록 로그에 기록되는 애플리케이션의 입력 필드 또는 헤더에 조작된 문자열을 입력하여 SQL을 조작할 수 있습니다. 이 문제는 기본값이 아닌 JDBCAppender를 사용하도록 특별히 구성된 경우 Log4j 1.x에만 영향을 줍니다. 2.0-beta8 버전부터 JDBCAppender는 매개 변수화된 SQL 쿼리를 적절히 지원하고 로그에 쓰여진 열에 대한 추가 사용자 지정을 통해 다시 도입되었습니다. Apache Log4j 1.2는 2015년 8월에 종료되었습니다. 이전 버전의 다른 많은 문제를 해결하므로 사용자는 Log4j 2로 업그레이드해야 합니다.

영향 받는 제품 제품 1개

  • Apache Software Foundation

    Apache Log4j 1.x

    해결 버전 있음

    영향 받는 버전

    • 1.2.1
    • 2.0-alpha1 미만

    해결 버전

    • 2.0-alpha1 이상

참고 자료 6건

‹ 목록

점검 지원 범위 문의

도입 문의