Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/55312?format=api",
    "vulnerability_id": "VCID-ps73-776n-zffn",
    "summary": "Zendframework1 potential SQL injection vector using null byte for PDO (MsSql, SQLite)\nThe PDO adapters of Zend Framework 1 do not filter null bytes values in SQL statements. A PDO adapter can treat null bytes in a query as a string terminator, allowing an attacker to add arbitrary SQL following a null byte, and thus create a SQL injection.\n\nWe tested and verified the null byte injection using pdo_dblib (FreeTDS) on a Linux environment to access a remote Microsoft SQL Server, and also tested against and noted the vector against pdo_sqlite.",
    "aliases": [
        {
            "alias": "GHSA-v42g-7q2x-cw32"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52374?format=api",
            "purl": "pkg:composer/zendframework/zendframework1@1.12.16",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2xx4-77e9-pfbb"
                },
                {
                    "vulnerability": "VCID-8atm-865q-mkf3"
                },
                {
                    "vulnerability": "VCID-bjvu-jg9w-mqdd"
                },
                {
                    "vulnerability": "VCID-n2gy-93nd-gber"
                },
                {
                    "vulnerability": "VCID-q73m-16a9-rkgx"
                },
                {
                    "vulnerability": "VCID-rc3w-5r97-k3b3"
                },
                {
                    "vulnerability": "VCID-sjw9-2fwe-5ybg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/zendframework/zendframework1@1.12.16"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51134?format=api",
            "purl": "pkg:composer/zendframework/zendframework1@1.12.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2ncq-wptr-k3ha"
                },
                {
                    "vulnerability": "VCID-2xx4-77e9-pfbb"
                },
                {
                    "vulnerability": "VCID-5bm4-grk6-w7hk"
                },
                {
                    "vulnerability": "VCID-649h-2f2f-nbam"
                },
                {
                    "vulnerability": "VCID-6fzg-den8-rqc8"
                },
                {
                    "vulnerability": "VCID-6xpr-93ef-27cu"
                },
                {
                    "vulnerability": "VCID-8atm-865q-mkf3"
                },
                {
                    "vulnerability": "VCID-9bm9-b48z-zqcm"
                },
                {
                    "vulnerability": "VCID-a72a-7k6u-rqgr"
                },
                {
                    "vulnerability": "VCID-afnn-53q5-wqft"
                },
                {
                    "vulnerability": "VCID-b1da-n1u7-43hj"
                },
                {
                    "vulnerability": "VCID-bjvu-jg9w-mqdd"
                },
                {
                    "vulnerability": "VCID-cp1a-fprd-9fhk"
                },
                {
                    "vulnerability": "VCID-e9ut-smfp-7yb4"
                },
                {
                    "vulnerability": "VCID-grk8-aj34-hqb4"
                },
                {
                    "vulnerability": "VCID-h5yf-ahec-gbgx"
                },
                {
                    "vulnerability": "VCID-j5kg-jzxz-ruam"
                },
                {
                    "vulnerability": "VCID-n2gy-93nd-gber"
                },
                {
                    "vulnerability": "VCID-njsg-e1w1-9qcy"
                },
                {
                    "vulnerability": "VCID-nsuf-xar5-f3hj"
                },
                {
                    "vulnerability": "VCID-ps73-776n-zffn"
                },
                {
                    "vulnerability": "VCID-q73m-16a9-rkgx"
                },
                {
                    "vulnerability": "VCID-q74z-645k-c7dk"
                },
                {
                    "vulnerability": "VCID-r5y8-nc2w-kqde"
                },
                {
                    "vulnerability": "VCID-rc3w-5r97-k3b3"
                },
                {
                    "vulnerability": "VCID-sjw9-2fwe-5ybg"
                },
                {
                    "vulnerability": "VCID-tpdc-c3mz-zyd2"
                },
                {
                    "vulnerability": "VCID-uvgx-4m6v-2bg7"
                },
                {
                    "vulnerability": "VCID-wkkp-82dc-huhr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/zendframework/zendframework1@1.12.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://framework.zend.com/security/advisory/ZF2015-08",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://framework.zend.com/security/advisory/ZF2015-08"
        },
        {
            "reference_url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2015-08.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2015-08.yaml"
        },
        {
            "reference_url": "https://github.com/zendframework/zf1",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/zendframework/zf1"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-v42g-7q2x-cw32",
            "reference_id": "GHSA-v42g-7q2x-cw32",
            "reference_type": "",
            "scores": [
                {
                    "value": "CRITICAL",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-v42g-7q2x-cw32"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 89,
            "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
            "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component."
        },
        {
            "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": "9.0 - 10.0",
    "exploitability": "0.5",
    "weighted_severity": "9.0",
    "risk_score": 4.5,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ps73-776n-zffn"
}