An issue was discovered in MediaWiki before 1.35.9, 1.36.x through 1.38.x before 1.38.5, and 1.39.x before 1.39.1. When installing with a pre-existing data directory that has weak permissions, the SQLite files are created with file mode 0644, i.e., world readable to local users. These files include credentials data.
https://security.gentoo.org/glsa/202305-24
https://phabricator.wikimedia.org/T322637
https://lists.debian.org/debian-lts-announce/2023/07/msg00011.html