CVE-2024-45965: Duplicate Advisory Contao Allows Admin An Account Vulnerability
LOWCVE-2024-45965 is a LOW (CVSS 4.8) contao allows admin an account vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Duplicate Advisory libraries in the Packagist ecosystem. The issue involves contao allows admin an account to upload svg file containing malicious javascript. Remediation is available in the latest vendor maintenance releases.
CVE-2024-45965 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-45965
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade contao/contao to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for contao/contao
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-45965, inspect your project dependencies for Duplicate Advisory:
inspect dependencies for contao/contao
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-45965 Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
contao/contao
|
Packagist |
≤ 5.4.1
|
|
References
Frequently Asked Questions
What is CVE-2024-45965?
Which Duplicate Advisory versions are affected?
What version fixes CVE-2024-45965?
Is contao/contao affected?
What is the CVSS score of CVE-2024-45965?
What CWE is associated with CVE-2024-45965?
How can I check Packagist dependencies for CVE-2024-45965?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mrw8-5368-phm3",
"modified" : "2025-04-22T15:17:19Z",
"published" : "2024-10-02T21:30:36Z",
"withdrawn" : "2025-04-22T15:17:19Z",
"aliases" : [ "CVE-2024-45965" ],
"summary" : "Duplicate Advisory: Contao allows admin an account to upload SVG file containing malicious JavaScript",
"details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-vqqr-fgmh-f626. This link is maintained to preserve external references.\n\n## Original Description\n\nContao 5.4.1 allows an authenticated admin account to upload a SVG file containing malicious javascript code into the target system. If the file is accessed through the website, it could lead to a Cross-Site Scripting (XSS) attack or execute arbitrary code via a crafted javascript to the target.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/contao"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "5.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45965"
}, {
"type" : "WEB",
"url" : "https://contao.org/en/security-advisories/cross-site-scripting-through-svg-uploads"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/contao/contao"
}, {
"type" : "WEB",
"url" : "https://grimthereaperteam.medium.com/contao-5-4-1-malicious-file-upload-xss-in-svg-30edb8820ecb"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434", "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-02T22:35:33Z",
"nvd_published_at" : "2024-10-02T20:15:11Z"
}
}