Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/341089?format=api",
    "vulnerability_id": "VCID-vr9q-w6wd-b7a9",
    "summary": "zerovec-derive incorrectly uses `#[repr(packed)]`",
    "aliases": [
        {
            "alias": "GHSA-74r5-g7vc-j2v2"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/81990?format=api",
            "purl": "pkg:cargo/zerovec-derive@0.9.7",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/zerovec-derive@0.9.7"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/81989?format=api",
            "purl": "pkg:cargo/zerovec-derive@0.10.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/zerovec-derive@0.10.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/81988?format=api",
            "purl": "pkg:cargo/zerovec-derive@0.10.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-vr9q-w6wd-b7a9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/zerovec-derive@0.10.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/rustsec/advisory-db/pull/2007",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.2",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "6.9",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/rustsec/advisory-db/pull/2007"
        },
        {
            "reference_url": "https://github.com/unicode-org/icu4x/issues/5196#issuecomment-2214711069",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.2",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "6.9",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/unicode-org/icu4x/issues/5196#issuecomment-2214711069"
        },
        {
            "reference_url": "https://rustsec.org/advisories/RUSTSEC-2024-0346.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.2",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "6.9",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://rustsec.org/advisories/RUSTSEC-2024-0346.html"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-74r5-g7vc-j2v2",
            "reference_id": "GHSA-74r5-g7vc-j2v2",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-74r5-g7vc-j2v2"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 120,
            "name": "Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')",
            "description": "The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow."
        }
    ],
    "exploits": [],
    "severity_range_score": "4.0 - 6.9",
    "exploitability": "0.5",
    "weighted_severity": "6.2",
    "risk_score": 3.1,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-vr9q-w6wd-b7a9"
}