steps
- Launch sbt (irrespective of any project and sbt version number)
- sbt pulls log4j 2.17.1 into
~/.sbt/boot/scala-2.12.21/org.scala-sbt/sbt/1.12.5/log4j-core-2.17.1.jar
problem
log4j v 2.17.1 is 4 years old and affected by CVE-2025-68161. The presence of the jar triggers vulnerability scanners, and because every the dependency is pulled into local caches on every launch these alerts can't be fixed by users.
The issue has been fixed in 2.25.3.
expectation
Launching sbt should pull the latest version of log4j.
notes
There's a recent commit completely removing log4j, but this seems to planned only for the 2.x releases whose release dates are not yet known and not imminent.