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

CVE-2023-38545 This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake. When curl is asked…

설명

This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake. When curl is asked to pass along the host name to the SOCKS5 proxy to allow that to resolve the address instead of it getting done by curl itself, the maximum length that host name can be is 255 bytes. If the host name is detected to be longer, curl switches to local name resolving and instead passes on the resolved address only. Due to this bug, the local variable that means "let the host resolve the name" could get the wrong value during a slow SOCKS5 handshake, and contrary to the intention, copy the too long host name to the target buffer instead of copying just the resolved address there. The target buffer being a heap based buffer, and the host name coming from the URL that curl has been told to operate with.

이 결함은 컬 오버플로를 SOCKS5 프록시 핸드셰이크의 힙 기반 버퍼로 만듭니다. curl이 호스트 이름을 따라 SOCKS5 프록시로 전달하여 curl 자체에 의해 수행되는 대신 주소를 해결할 수 있도록 요청하면 호스트 이름이 될 수있는 최대 길이는 255 바이트입니다. 호스트 이름이 더 긴 것으로 감지되면 컬은 로컬 이름 해결로 전환하고 대신 해결된 주소만 전달합니다. 이 버그로 인해 "호스트가 이름을 해결하도록 하자"를 의미하는 로컬 변수는 느린 SOCKS5 핸드셰이크 중에 잘못된 값을 얻을 수 있으며 의도와는 달리 너무 긴 호스트 이름을 대상 버퍼에 복사하는 대신 해결된 주소만 복사합니다. 대상 버퍼는 힙 기반 버퍼이며 호스트 이름은 다음에서 온다. 컬이 동작하도록 지시된 URL.

영향 받는 제품 제품 1개

  • curl

    curl

    해결 버전 있음

    영향 받는 버전

    • 버전 정보 확인 필요

    해결 버전

    • 7.69.0 이상 7.69.0 미만

참고 자료 13건

‹ 목록

점검 지원 범위 문의

도입 문의