Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/35104?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35104?format=api",
    "vulnerability_id": "VCID-zn7m-yme5-zufa",
    "summary": "In Apache Spark 1.6.0 until 2.1.1, the launcher API performs unsafe deserialization of data received by its socket. This makes applications launched programmatically using the launcher API potentially vulnerable to arbitrary code execution by an attacker with access to any user account on the local machine. It does not affect apps run by spark-submit or spark-shell. The attacker would be able to execute code as the user that ran the Spark application. Users are encouraged to update to version 2.2.0 or later.",
    "aliases": [
        {
            "alias": "CVE-2017-12612"
        },
        {
            "alias": "GHSA-8rhc-48pp-52gr"
        },
        {
            "alias": "PYSEC-2017-147"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/56996?format=api",
            "purl": "pkg:maven/org.apache.spark/spark-core_2.10@2.1.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.spark/spark-core_2.10@2.1.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/56979?format=api",
            "purl": "pkg:maven/org.apache.spark/spark-core_2.11@2.1.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.spark/spark-core_2.11@2.1.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/10263?format=api",
            "purl": "pkg:pypi/pyspark@2.1.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3gwu-myk4-ufdj"
                },
                {
                    "vulnerability": "VCID-4rcx-smaw-c3an"
                },
                {
                    "vulnerability": "VCID-713x-tc78-rua3"
                },
                {
                    "vulnerability": "VCID-adsy-uby8-gkc9"
                },
                {
                    "vulnerability": "VCID-dwzq-skka-qkhj"
                },
                {
                    "vulnerability": "VCID-mmf5-ctmn-b3ep"
                },
                {
                    "vulnerability": "VCID-ntyz-qt6e-vqf3"
                },
                {
                    "vulnerability": "VCID-pue3-vp1e-xkat"
                },
                {
                    "vulnerability": "VCID-sr15-sfp8-vkfg"
                },
                {
                    "vulnerability": "VCID-xxtq-3ec6-m7hj"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pyspark@2.1.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/10262?format=api",
            "purl": "pkg:pypi/pyspark@2.1.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3gwu-myk4-ufdj"
                },
                {
                    "vulnerability": "VCID-4rcx-smaw-c3an"
                },
                {
                    "vulnerability": "VCID-713x-tc78-rua3"
                },
                {
                    "vulnerability": "VCID-adsy-uby8-gkc9"
                },
                {
                    "vulnerability": "VCID-dwzq-skka-qkhj"
                },
                {
                    "vulnerability": "VCID-mmf5-ctmn-b3ep"
                },
                {
                    "vulnerability": "VCID-ntyz-qt6e-vqf3"
                },
                {
                    "vulnerability": "VCID-pue3-vp1e-xkat"
                },
                {
                    "vulnerability": "VCID-sr15-sfp8-vkfg"
                },
                {
                    "vulnerability": "VCID-xxtq-3ec6-m7hj"
                },
                {
                    "vulnerability": "VCID-zn7m-yme5-zufa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pyspark@2.1.1"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2017-147.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2017-147.yaml"
        },
        {
            "reference_url": "https://mail-archives.apache.org/mod_mbox/spark-dev/201709.mbox/%3CCAEccTyy-1yYuhdNgkBUg0sr9NeaZSrBKkBePdTNZbxXZNTAR-g%40mail.gmail.com%3E",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
                }
            ],
            "url": "https://mail-archives.apache.org/mod_mbox/spark-dev/201709.mbox/%3CCAEccTyy-1yYuhdNgkBUg0sr9NeaZSrBKkBePdTNZbxXZNTAR-g%40mail.gmail.com%3E"
        },
        {
            "reference_url": "http://www.securityfocus.com/bid/100823",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
                }
            ],
            "url": "http://www.securityfocus.com/bid/100823"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-12612",
            "reference_id": "CVE-2017-12612",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-12612"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-8rhc-48pp-52gr",
            "reference_id": "GHSA-8rhc-48pp-52gr",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-8rhc-48pp-52gr"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 502,
            "name": "Deserialization of Untrusted Data",
            "description": "The product deserializes untrusted data without sufficiently verifying that the resulting data will be valid."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        },
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        }
    ],
    "exploits": [],
    "severity_range_score": "7.8 - 7.8",
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-zn7m-yme5-zufa"
}