🔍 CVE-2021-22925

5.3
CVSS Score
MEDIUM
2021-08-05
2026-10-14 11:16
✅ 완료

🇰🇷 한글 설명

curl의 -t 옵션(CURLOPT_TELNETOPTIONS) 사용 시 NEW_ENV 변수를 처리하는 과정에서 옵션 파서의 결함이 발견되었습니다. 이로 인해 스택 기반 버퍼의 초기화되지 않은 데이터가 TELNET 서버로 전송될 수 있으며, 이는 민감한 내부 정보가 평문 프로토콜을 통해 유출될 위험을 초래합니다.

💡 쉬운 설명

curl을 통해 TELNET 서버에 접속할 때, 컴퓨터 메모리에 남아있던 중요한 정보가 실수로 서버에 전송될 수 있는 보안 약점입니다. 공격자가 이 정보를 가로채면 시스템의 민감한 데이터를 알 수 있게 됩니다.

🇺🇸 원문 (English)

curl supports the `-t` command line option, known as `CURLOPT_TELNETOPTIONS`in libcurl. This rarely used option is used to send variable=content pairs toTELNET servers.Due to flaw in the option parser for sending `NEW_ENV` variables, libcurlcould be made to pass on uninitialized data from a stack based buffer to theserver. Therefore potentially revealing sensitive internal information to theserver using a clear-text network protocol.This could happen because curl did not call and use sscanf() correctly whenparsing the string provided by the application.

📍 영향받는 시스템

libcurl 버전 7.75.0 미만 버전

⚔️ 공격 벡터

TELNET 서버로 환경 변수를 전송하는 -t 옵션을 사용하여 초기화되지 않은 스택 메모리 데이터를 유도함

🛡️ 대응 방법

libcurl을 최신 보안 패치가 적용된 버전(7.76.0 이상)으로 업데이트

🔧 검증 코드

출력된 libcurl 버전을 확인하여 7.76.0 미만인지 확인

Shell / Script
curl --version | grep libcurl

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

💻 영향받는 소프트웨어

IBM WebSphere Application Server