CVE-2024-45965: Duplicate Advisory Contao Allows Admin An Account Vulnerability

LOW
Advisory Identifier: GHSA-mrw8-5368-phm3
CVSS 4.8
CWE-434 CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-45965
GHSA Identifier GHSA-mrw8-5368-phm3
Severity LOW
CVSS v3.1 Base Score 4.8
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Duplicate Advisory
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

contao/contao fixed: Latest secure release
Upgrade contao/contao to Latest secure release
Verify Direct and Transitive Dependencies

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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-vqqr-fgmh-f626. This link is maintained to preserve external references. ## Original Description Contao 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.

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?
CVE-2024-45965 is a security vulnerability in Duplicate Advisory involving Contao allows admin an account to upload SVG file containing malicious JavaScript under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: contao/contao.
What version fixes CVE-2024-45965?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is contao/contao affected?
Yes, contao/contao is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-45965?
CVE-2024-45965 has a CVSS v3.1 base score of 4.8 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2024-45965?
CVE-2024-45965 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Packagist dependencies for CVE-2024-45965?
Run the dependency tree command: 'inspect dependencies for contao/contao'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}