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

参考资料与权威通告