Automatic Protection
All official Log4j mitigations released by Mojang are automatically applied by the container startup process.Please ensure you have pulled the latest image to receive the most recent security patches and mitigations.
How It Works
The container includes built-in Log4jPatcher functionality that:- Detects vulnerable Log4j versions in your Minecraft server JAR files
- Automatically applies the appropriate patches during startup
- Protects against known CVE vulnerabilities including CVE-2021-44228 (Log4Shell)
- Works with all server types (Vanilla, Paper, Spigot, Forge, Fabric, etc.)
Updating Your Image
To ensure you have the latest security patches:Verification
When your container starts, you should see log messages indicating that Log4j patching has been applied (if needed). The patcher will:- Report which JAR files were scanned
- Indicate if vulnerabilities were found
- Confirm successful patching
Additional Security Best Practices
Beyond Log4j patching, consider these security measures:- Keep images updated: Regularly pull the latest image to receive security updates
- Use specific version tags: Consider using version-specific tags (e.g.,
java21) for production - Monitor security advisories: Watch the official repository for security announcements
- Limit network exposure: Use firewalls and network policies to restrict access
- Review server logs: Regularly check logs for suspicious activity
Related Resources
- Minecraft Official Security Announcement
- Docker Minecraft Server GitHub Repository
- mc-image-helper - The tool that provides Log4j patching functionality