🇰🇷 한글 설명
OpenPrinting CUPS의 backend/ipp.c 내 quote_string() 함수가 원격 프린터 제어 마커 메시지 내의 줄바꿈 문자를 적절히 처리하지 못하는 취약점입니다. 공격자는 이를 통해 스케줄러 상태 스트림에 임의의 PPD 제어 라인을 주입할 수 있으며, 결과적으로 Foomatic 기반 큐에서 임의의 명령어를 실행할 수 있습니다.
💡 쉬운 설명
프린터가 보내는 메시지에 몰래 줄바꿈 문자를 섞어 넣어 시스템 설정을 조작하는 공격입니다. 이를 통해 해커가 프린터 관련 명령어를 실행하여 컴퓨터를 제어할 위험이 있습니다.
🇺🇸 원문 (English)
OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. Prior to 2.4.20, the backend/ipp.c quote_string() function preserves carriage-return and line-feed characters in a remote printer-controlled marker-message before report_attr() writes the value to the scheduler status stream. The scheduler can parse an injected newline as a separate PPD: control line and persist an attacker-selected PPD keyword. The reporter demonstrated that a later print job on a Foomatic-backed queue could consume an injected FoomaticRIPCommandLine value and execute in the filter context as lp. This issue is fixed in version 2.4.20.
📍 영향받는 시스템
OpenPrinting CUPS 2.4.20 미만 버전
⚔️ 공격 벡터
원격 프린터가 제어하는 마커 메시지에 줄바꿈 문자를 주입하여 PPD 제어 라인을 조작함
🛡️ 대응 방법
CUPS를 최신 버전인 2.4.20 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 CUPS 패키지의 버전이 2.4.20 미만인지 확인하십시오.
dpkg -l | grep cups-client 2>/dev/null || rpm -q cups