- 🔐 Restricted reading files from outside the theme directory - Fabien "egg" O'Carroll
View the changelog for full details: v5.74.4...v5.74.5
💻 We're looking for DevOps engineers to join Ghost: https://careers.ghost.org/devops-engineer
Tag Name: v5.74.5
Release Date: 11/28/2023
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
This release addresses a critical security vulnerability that could allow themes to read arbitrary files from your system and expose them to the internet. The fix restricts file reading to only the theme directory, preventing potential exposure of sensitive configuration files and secrets. This update is particularly important for Ghost hosting providers who store sensitive configuration data on their servers.
No migration steps are required for this update. Simply update to v5.74.5 to apply the security fix.
If you are a theme developer and have created themes that intentionally reference files outside the theme directory (which would be unusual and not recommended), you will need to modify your theme to work within the new security constraints.
This is a critical security update that all Ghost installations should apply immediately, especially those in production environments.
The vulnerability could potentially expose sensitive configuration data including database credentials, API keys, and other secrets. Hosting providers are particularly at risk and should prioritize this update.
To upgrade:
No configuration changes are required after updating.
No general bug fixes were included in this release. The changes were specifically focused on addressing the security vulnerability.
No new features were added in this release. This is a security-focused update that addresses a specific vulnerability in the theme system.
This release fixes a critical security vulnerability that allowed themes to read arbitrary files from the server's file system and potentially expose them to the internet via the layout feature of express-hbs.
Previously, a theme could include template syntax like {{!< ../../../../config.production.json}} which would read and output configuration files that might contain sensitive information such as:
The fix restricts file reading operations to only the theme directory, preventing access to files outside this boundary.
While theme upload is restricted to users with the Admin role, this vulnerability was particularly concerning for hosting providers who store sensitive configuration data on their servers.
No specific performance improvements were included in this release.
This security update addresses a significant vulnerability in Ghost's theme system that could allow malicious themes to access and expose sensitive configuration files from anywhere on the server. The fix restricts file reading to only the theme directory, protecting against potential data breaches.
The impact is most significant for Ghost hosting providers who typically store sensitive configuration data on their servers. Since theme upload is restricted to Admin users, the risk for self-hosted single-site installations is lower but still present if an Admin account is compromised or if a malicious theme is installed.
This update demonstrates Ghost's commitment to security and protecting user data. The quick response to this vulnerability helps maintain trust in the platform for content creators, businesses, and hosting providers alike.
View the changelog for full details: v5.74.4...v5.74.5
💻 We're looking for DevOps engineers to join Ghost: https://careers.ghost.org/devops-engineer