Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40178?format=api",
    "vulnerability_id": "VCID-bys5-jwcb-nkak",
    "summary": "Loop with Unreachable Exit Condition (Infinite Loop)\nWhen reading a specially crafted ZIP archive, the `read` method of Apache Commons `ZipArchiveInputStream` can fail to return the correct `EOF` indication after the end of the stream has been reached. This can lead to an infinite stream, which can be used to mount a denial of service attack against services that use compressed zip package.",
    "aliases": [
        {
            "alias": "CVE-2018-11771"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/56363?format=api",
            "purl": "pkg:maven/org.apache.commons/commons-compress@1.18",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.commons/commons-compress@1.18"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/56361?format=api",
            "purl": "pkg:maven/org.apache.commons/commons-compress@1.7.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-bys5-jwcb-nkak"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.commons/commons-compress@1.7.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/56362?format=api",
            "purl": "pkg:maven/org.apache.commons/commons-compress@1.17.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-bys5-jwcb-nkak"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.commons/commons-compress@1.17.0"
        }
    ],
    "references": [
        {
            "reference_url": "http://www.securityfocus.com/bid/105139",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securityfocus.com/bid/105139"
        },
        {
            "reference_url": "http://www.securitytracker.com/id/1041503",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securitytracker.com/id/1041503"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11771",
            "reference_id": "CVE-2018-11771",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11771"
        }
    ],
    "weaknesses": [
        {
            "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."
        },
        {
            "cwe_id": 835,
            "name": "Loop with Unreachable Exit Condition ('Infinite Loop')",
            "description": "The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop."
        },
        {
            "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."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-bys5-jwcb-nkak"
}