{
    "document": {
        "category": "csaf_security_advisory",
        "csaf_version": "2.0",
        "tracking": {
            "generator": {
                "date": "2024-10-02T08:44:15.962Z",
                "engine": {
                    "version": "2.5.12",
                    "name": "Secvisogram"
                }
            },
            "current_release_date": "2025-05-14T12:28:19.000Z",
            "id": "VDE-2020-025",
            "initial_release_date": "2020-07-21T09:38:00.000Z",
            "status": "final",
            "version": "3",
            "revision_history": [
                {
                    "date": "2020-07-21T09:38:00.000Z",
                    "number": "1",
                    "summary": "Initial revision."
                },
                {
                    "date": "2024-11-06T11:27:01.000Z",
                    "number": "2",
                    "summary": "Fix: correct certvde domain, added self-reference"
                },
                {
                    "number": "3",
                    "summary": "Fix: version space, removed ia, firmware category, added distribution",
                    "date": "2025-05-14T12:28:19.000Z"
                }
            ],
            "aliases": [
                "VDE-2020-025"
            ]
        },
        "lang": "en-GB",
        "title": "PHOENIX CONTACT: Improper path sanitation on import of project files in PLCnext Engineer",
        "acknowledgments": [
            {
                "summary": "discovered and reported",
                "organization": "Claroty",
                "names": [
                    "Amir Preminger"
                ]
            },
            {
                "summary": "coordination",
                "organization": "CERT@VDE"
            }
        ],
        "distribution": {
            "tlp": {
                "label": "WHITE",
                "url": "https://www.first.org/tlp/"
            }
        },
        "notes": [
            {
                "category": "summary",
                "title": "Summary",
                "text": "The build settings of a PLCnext Engineer project (.pcwex) can be manipulated in a way that can result in the execution of remote code.\nThe attacker needs to get access to a PLCnext Engineer project to be able to manipulate files inside. Additionally, the files of the remote code need to be transferred to a location which can be accessed by the PC that runs PLCnext Engineer. When PLCnext Engineer runs a build process of the manipulated project the remote code can be executed."
            },
            {
                "category": "description",
                "title": "Impact",
                "text": "Availability, integrity, or confidentiality of an engineering workstation might be compromised by attacks using these vulnerabilities."
            },
            {
                "title": "Remediation",
                "text": "Phoenix Contact strongly recommends updating to the latest version PLCnext Enineer 2020.6, which fixes this vulnerability.",
                "category": "description"
            },
            {
                "category": "description",
                "title": "Mitigation",
                "text": "We strongly recommend customers to exchange project files only using secure file exchange\nservices. Project files should not be exchanged via unencrypted email. Users should avoid\nimporting project files from unknown source and exchange or store project files together with a\nchecksum to ensure their integrity."
            }
        ],
        "publisher": {
            "category": "vendor",
            "contact_details": "psirt@phoenixcontact.com",
            "name": "Phoenix Contact GmbH & Co. KG",
            "namespace": "https://phoenixcontact.com/psirt"
        },
        "references": [
            {
                "summary": "Phoenix Contact PSIRT ",
                "url": "https://www.phoenixcontact.com/de-de/service-und-support/psirt",
                "category": "external"
            },
            {
                "summary": "CERT@VDE Security Advisories for Phoenix Contact GmbH & Co. KG",
                "url": "https://certvde.com/en/advisories/vendor/phoenixcontact",
                "category": "external"
            },
            {
                "summary": "VDE-2020-025: PHOENIX CONTACT: Improper path sanitation on import of project files in PLCnext Engineer - HTML",
                "category": "self",
                "url": "https://certvde.com/de/advisories/VDE-2020-025/"
            },
            {
                "summary": "VDE-2020-025: PHOENIX CONTACT: Improper path sanitation on import of project files in PLCnext Engineer - CSAF",
                "url": "https://phoenixcontact.csaf-tp.certvde.com/.well-known/csaf/white/2020/vde-2020-025.json",
                "category": "self"
            }
        ]
    },
    "product_tree": {
        "branches": [
            {
                "category": "vendor",
                "name": "PHOENIX CONTACT",
                "branches": [
                    {
                        "category": "product_family",
                        "name": "Software",
                        "branches": [
                            {
                                "name": "PLCnext Engineer",
                                "category": "product_name",
                                "branches": [
                                    {
                                        "name": "<=2020.3.1",
                                        "category": "product_version_range",
                                        "product": {
                                            "product_identification_helper": {
                                                "model_numbers": [
                                                    "1046008"
                                                ]
                                            },
                                            "name": "Software PLCnext Engineer <=2020.3.1",
                                            "product_id": "CSAFPID-51001"
                                        }
                                    },
                                    {
                                        "name": "2020.6",
                                        "category": "product_version",
                                        "product": {
                                            "name": "Software PLCnext Engineer 2020.6",
                                            "product_id": "CSAFPID-52002"
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2020-12499",
            "title": "CVE-2020-12499",
            "cwe": {
                "id": "CWE-22",
                "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
            },
            "notes": [
                {
                    "title": "Vulnerability Description",
                    "category": "description",
                    "audience": "all",
                    "text": "In PHOENIX CONTACT PLCnext Engineer version 2020.3.1 and earlier an improper path sanitation vulnerability exists on import of project files."
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-51001"
                ],
                "fixed": [
                    "CSAFPID-52002"
                ]
            },
            "remediations": [
                {
                    "category": "mitigation",
                    "details": "We strongly recommend customers to exchange project files only using secure file exchange\nservices. Project files should not be exchanged via unencrypted email. Users should avoid\nimporting project files from unknown source and exchange or store project files together with a\nchecksum to ensure their integrity.",
                    "product_ids": [
                        "CSAFPID-51001"
                    ]
                },
                {
                    "category": "vendor_fix",
                    "details": "Phoenix Contact strongly recommends updating to the latest version PLCnext Enineer 2020.6, which fixes this vulnerability.",
                    "product_ids": [
                        "CSAFPID-51001"
                    ]
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H",
                        "baseScore": 8.2,
                        "baseSeverity": "HIGH",
                        "temporalScore": 8.2,
                        "temporalSeverity": "HIGH",
                        "environmentalScore": 8.3,
                        "environmentalSeverity": "HIGH",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "LOW",
                        "userInteraction": "REQUIRED",
                        "scope": "CHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "HIGH"
                    },
                    "products": [
                        "CSAFPID-51001"
                    ]
                }
            ]
        }
    ]
}