flawopen.com/보안 사고/Log4Shell

Log4Shell: 로그 파일에 문자열을 남기던 기능이 원격 코드 실행이 된 이유

Critical — CVSS 10.0 CWE-917: Expression Language Injection Disclosed December 2021
쉬운 설명 (ELI5)

사무실 방문객의 말을 공책에 받아 적는 서기가 있습니다. 그런데 방문객이 특정 주소가 담긴 문장을 말하면, 서기가 필기를 멈추고 그 주소로 달려가 낯선 이에게 밀봉된 편지를 받아 그 안의 지시를 그대로 수행한다는 사실이 드러났습니다. 서기는 오직 기록만 해야 했으며 실행을 해서는 안 되었습니다.

The lessons that actually transfer

FAQ

Was Log4j 1.x affected?

Log4j 1.x did not contain the message-lookup feature that caused CVE-2021-44228. However, 1.x reached end of life in 2015 and carries its own unpatched issues, so it is not a safe destination — the correct move is forward to a current 2.x release.

Were the mitigation flags a real fix?

Early guidance circulated several stopgaps, including setting formatMsgNoLookups. These reduced exposure but were incomplete in some configurations and versions. Upgrading was, and remains, the reliable answer.

Related reading

출처 및 공식 보안 권고