Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36035?format=api",
    "vulnerability_id": "VCID-nrb3-t9dq-x7hw",
    "summary": "An issue was discovered in Cobbler before 3.3.1. In the templar.py file, the function check_for_invalid_imports can allow Cheetah code to import Python modules via the \"#from MODULE import\" substring. (Only lines beginning with #import are blocked.)",
    "aliases": [
        {
            "alias": "CVE-2021-45082"
        },
        {
            "alias": "GHSA-6cm4-gm85-972c"
        },
        {
            "alias": "PYSEC-2022-37"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/26620?format=api",
            "purl": "pkg:pypi/cobbler@3.3.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-n8d7-2mjk-wbc8"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/cobbler@3.3.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/23872?format=api",
            "purl": "pkg:pypi/cobbler@0.6.3.post2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3uqv-f4em-4qag"
                },
                {
                    "vulnerability": "VCID-gxpd-rmnn-67cm"
                },
                {
                    "vulnerability": "VCID-hpkx-7ure-6qbf"
                },
                {
                    "vulnerability": "VCID-n8d7-2mjk-wbc8"
                },
                {
                    "vulnerability": "VCID-nrb3-t9dq-x7hw"
                },
                {
                    "vulnerability": "VCID-y965-s4eq-vfee"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/cobbler@0.6.3.post2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/23873?format=api",
            "purl": "pkg:pypi/cobbler@3.1.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3uqv-f4em-4qag"
                },
                {
                    "vulnerability": "VCID-gxpd-rmnn-67cm"
                },
                {
                    "vulnerability": "VCID-hpkx-7ure-6qbf"
                },
                {
                    "vulnerability": "VCID-n8d7-2mjk-wbc8"
                },
                {
                    "vulnerability": "VCID-nrb3-t9dq-x7hw"
                },
                {
                    "vulnerability": "VCID-y965-s4eq-vfee"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/cobbler@3.1.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/23874?format=api",
            "purl": "pkg:pypi/cobbler@3.2.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3uqv-f4em-4qag"
                },
                {
                    "vulnerability": "VCID-gxpd-rmnn-67cm"
                },
                {
                    "vulnerability": "VCID-hpkx-7ure-6qbf"
                },
                {
                    "vulnerability": "VCID-n8d7-2mjk-wbc8"
                },
                {
                    "vulnerability": "VCID-nrb3-t9dq-x7hw"
                },
                {
                    "vulnerability": "VCID-y965-s4eq-vfee"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/cobbler@3.2.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/23875?format=api",
            "purl": "pkg:pypi/cobbler@3.2.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3uqv-f4em-4qag"
                },
                {
                    "vulnerability": "VCID-gxpd-rmnn-67cm"
                },
                {
                    "vulnerability": "VCID-hpkx-7ure-6qbf"
                },
                {
                    "vulnerability": "VCID-n8d7-2mjk-wbc8"
                },
                {
                    "vulnerability": "VCID-nrb3-t9dq-x7hw"
                },
                {
                    "vulnerability": "VCID-y965-s4eq-vfee"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/cobbler@3.2.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/23876?format=api",
            "purl": "pkg:pypi/cobbler@3.3.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-gxpd-rmnn-67cm"
                },
                {
                    "vulnerability": "VCID-n8d7-2mjk-wbc8"
                },
                {
                    "vulnerability": "VCID-nrb3-t9dq-x7hw"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/cobbler@3.3.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://bugzilla.suse.com/show_bug.cgi?id=1193678",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.suse.com/show_bug.cgi?id=1193678"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-6cm4-gm85-972c",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-6cm4-gm85-972c"
        },
        {
            "reference_url": "https://github.com/cobbler/cobbler/pull/2945",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/cobbler/cobbler/pull/2945"
        },
        {
            "reference_url": "https://github.com/cobbler/cobbler/releases",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/cobbler/cobbler/releases"
        },
        {
            "reference_url": "https://github.com/cobbler/cobbler/releases/tag/v3.3.1",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/cobbler/cobbler/releases/tag/v3.3.1"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-45082",
            "reference_id": "CVE-2021-45082",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-45082"
        }
    ],
    "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": 77,
            "name": "Improper Neutralization of Special Elements used in a Command ('Command Injection')",
            "description": "The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended 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."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-nrb3-t9dq-x7hw"
}