CVE-2024-45398
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedContao is an Open Source CMS. In affected versions a back end user with access to the file manager can upload malicious files and execute them on the server. Users are advised to update to Contao 4.13.49, 5.3.15 or 5.4.3. Users unable to update are advised to configure their web server so it does not execute PHP files and other scripts in the Contao file upload directory.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceContao CMS contains a file upload vulnerability where authenticated back end users with file manager access can upload malicious files (including PHP scripts) to the server and execute them, achieving remote code execution. The vulnerability requires user authentication but allows complete server compromise.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 4.0.0, < 4.13.49>= 5.0.0, < 5.3.15>= 5.4.0, < 5.4.3CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine installed Contao versionCheck the composer.json file in the web root for the contao/contao package version, or log into the Contao backend and navigate to System > Settings to view the installed version information.Affected if The installed version falls within < 4.13.49 for 4.x versions, < 5.3.15 for 5.0-5.3 versions, or < 5.4.3 for 5.4+ versions.
-
Verify backend user file manager accessIn the Contao backend, go to Users > Groups (or Users > Users) and check if any user or group has the File manager permission (file operation permissions) enabled under their access rights.Affected if Any backend user account has file manager or file operation permissions granted.
-
Inspect upload directories for suspicious filesExamine the files/ directory (or custom upload directories) using the file system: find /path/to/webroot/files -type f -name '*.php' (or similar script extensions). Check for unexpected PHP, CGI, or executable files.Affected if Any PHP, CGI, or script files exist in the upload directories, especially if they were not intentionally placed there by an administrator.
-
Check web server script execution configurationInspect the Apache .htaccess file or nginx server configuration for the files/ directory (or upload directories). Look for directives like 'php_flag engine off', 'RemoveHandler .php', or location blocks that deny script execution.Affected if The web server allows PHP or script execution (no DisableFunctions or equivalent restrictions) in the files/ upload directory.
You are affected if your Contao version is below the fixed releases AND any backend user has file manager access AND the web server does not block script execution in upload directories.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped4.13.495.3.155.4.3
Update Contao to version 4.13.49, 5.3.15, or 5.4.3. If updating is not possible, configure the web server to disable script execution (PHP and other handlers) in the file upload directory.
Contao 4.13.49 (for 4.x) or Contao 5.3.15 (for 5.0-5.3.x) or Contao 5.4.3 (for 5.4.x)
- Identify your current Contao major version (4.x, 5.0-5.3.x, or 5.4.x)
- Upgrade to Contao 4.13.49 if running version 4.x (>=4.0.0 and <4.13.49)
- Upgrade to Contao 5.3.15 if running version 5.0-5.3.x (>=5.0.0 and <5.3.15)
- Upgrade to Contao 5.4.3 if running version 5.4.x (>=5.4.0 and <5.4.3)
- After upgrade, verify the file manager upload functionality works correctly
- For environments where upgrade is not possible: Configure the web server (Apache/Nginx) to disable script execution in the files/ upload directory (e.g., using FilesMatch or location directives to deny execution of .php, .phtml, .php7, .php8, .cgi, .pl, .exe, .sh, .bat files)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,560.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-45398 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-45398 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data