Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37551?format=api",
    "vulnerability_id": "VCID-447s-4ag7-gyes",
    "summary": "Remote command execution\nThis package allows remote attackers to execute arbitrary OGNL code via a crafted parameter name that is not properly handled when invoking a redirect.",
    "aliases": [
        {
            "alias": "CVE-2013-1965"
        },
        {
            "alias": "GHSA-whmq-v94q-34p9"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51514?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.14.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-dvxu-9sh6-qbef"
                },
                {
                    "vulnerability": "VCID-hrky-nmnv-g3eu"
                },
                {
                    "vulnerability": "VCID-mmth-7rgf-aqfa"
                },
                {
                    "vulnerability": "VCID-z1jy-4da2-tyhk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.14.3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51508?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-showcase@2.3.14.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-showcase@2.3.14.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51504?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.14.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1kjb-use6-23eu"
                },
                {
                    "vulnerability": "VCID-447s-4ag7-gyes"
                },
                {
                    "vulnerability": "VCID-89az-256b-mubw"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.14.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51506?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-showcase@2-alpha0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-447s-4ag7-gyes"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-showcase@2-alpha0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51507?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-showcase@2.3.13",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-447s-4ag7-gyes"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-showcase@2.3.13"
        }
    ],
    "references": [
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=967655",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=967655"
        },
        {
            "reference_url": "http://struts.apache.org/development/2.x/docs/s2-012.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://struts.apache.org/development/2.x/docs/s2-012.html"
        },
        {
            "reference_url": "http://struts.apache.org/docs/s2-012.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://struts.apache.org/docs/s2-012.html"
        },
        {
            "reference_url": "http://www.securityfocus.com/bid/60082",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securityfocus.com/bid/60082"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2013-1965",
            "reference_id": "CVE-2013-1965",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2013-1965"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-whmq-v94q-34p9",
            "reference_id": "GHSA-whmq-v94q-34p9",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-whmq-v94q-34p9"
        }
    ],
    "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": 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": 94,
            "name": "Improper Control of Generation of Code ('Code Injection')",
            "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment."
        },
        {
            "cwe_id": 78,
            "name": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')",
            "description": "The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-447s-4ag7-gyes"
}