🇰🇷 한글 설명
Imager 0.45_02 버전부터 1.035 미만 버전에서 tiff_load_ifd 함수가 EXIF 블록 외부의 데이터를 읽을 수 있는 취약점이 발견되었습니다. 시작 오프셋에 대한 검증이 누락되어 공격자가 조작된 TIFF 파일을 통해 메모리 외부의 데이터를 읽거나 프로세스를 충돌시킬 수 있습니다.
💡 쉬운 설명
이미지 파일의 특정 정보를 읽을 때, 정해진 범위를 벗어난 엉뚱한 메모리 영역을 읽게 만드는 오류입니다. 이를 통해 해커가 시스템 정보를 훔쳐보거나 프로그램을 강제로 종료시킬 수 있습니다.
🇺🇸 원문 (English)
Imager versions from 0.45_02 before 1.035 for Perl read outside the EXIF block via unchecked start offsets in tiff_load_ifd.
tiff_load_ifd() validates an IFD entry's data by checking that `entry->offset + entry->size` stays within the EXIF block, and never checks the start offset itself. Where that sum is not the real end of the data, the check passes with the entry starting outside the block.
Through 1.032 `entry->offset` is a plain int, so on the usual two's-complement implementations an offset with the high bit set converts to negative and the sum can land back inside the block. From 1.033 the field is a size_t and the addition wraps only where size_t is 32 bits. The IFD's own start offset is checked the same way and wraps where unsigned long is 32 bits, which includes 64-bit Windows.
Any caller of Imager->read() on an attacker-supplied image may receive EXIF tags holding bytes from outside the block, or crash the process.
📍 영향받는 시스템
Imager versions 0.45_02 to < 1.035
⚔️ 공격 벡터
공격자가 조작된 EXIF 오프셋 값을 포함한 TIFF 이미지를 제공하여 Imager->read() 호출 유도
🛡️ 대응 방법
Imager 라이브러리를 최신 버전(1.035 이상)으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 1.035 미만인지 확인하여 취약 여부를 판단합니다.
perl -MImager -e 'print $Imager::VERSION . "\n"' 2>/dev/null
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
💻 영향받는 소프트웨어
Storage Protect Snapshot for Windows