{
    "CVE_data_meta": {
        "ASSIGNER": "cna@cloudflare.com",
        "DATE_PUBLIC": "2021-11-01T22:16:00.000Z",
        "ID": "CVE-2021-3907",
        "STATE": "PUBLIC",
        "TITLE": "Arbitrary filepath traversal via URI injection"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "octorpki",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_value": "1.4.3"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "Cloudflare"
                }
            ]
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "Koen van Hove"
        }
    ],
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "OctoRPKI does not escape a URI with a filename containing \"..\", this allows a repository to create a file, (ex. rsync://example.org/repo/../../etc/cron.daily/evil.roa), which would then be written to disk outside the base cache folder. This could allow for remote code execution on the host machine OctoRPKI is running on."
            }
        ]
    },
    "generator": {
        "engine": "Vulnogram 0.0.9"
    },
    "impact": {
        "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 7.4,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "NONE",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-20 Improper Input Validation"
                    }
                ]
            },
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh",
                "refsource": "MISC",
                "url": "https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh"
            },
            {
                "name": "DSA-5033",
                "refsource": "DEBIAN",
                "url": "https://www.debian.org/security/2021/dsa-5033"
            },
            {
                "name": "DSA-5041",
                "refsource": "DEBIAN",
                "url": "https://www.debian.org/security/2022/dsa-5041"
            },
            {
                "name": "https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959",
                "refsource": "MISC",
                "url": "https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959"
            }
        ]
    },
    "solution": [
        {
            "lang": "eng",
            "value": "Upgrade to 1.4.3"
        }
    ],
    "source": {
        "advisory": "GHSA-3jhm-87m6-x959",
        "discovery": "EXTERNAL"
    }
}