Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/59520?format=api",
    "vulnerability_id": "VCID-ab8v-3vdh-a7gy",
    "summary": "A flaw was found in avahi 0.8-5. A reachable assertion is present in avahi_s_host_name_resolver_start function allowing a local attacker to crash the avahi service by requesting hostname resolutions through the avahi socket or dbus methods for invalid hostnames. The highest threat from this vulnerability is to the service availability.",
    "aliases": [
        {
            "alias": "CVE-2021-3502"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/189064?format=api",
            "purl": "pkg:alpm/archlinux/avahi@0.8%2B22%2Bgfd482a7-1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/avahi@0.8%252B22%252Bgfd482a7-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/88725?format=api",
            "purl": "pkg:deb/debian/avahi@0.8-5%2Bdeb11u1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/avahi@0.8-5%252Bdeb11u1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/88711?format=api",
            "purl": "pkg:deb/debian/avahi@0.8-5%2Bdeb11u2?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-be9g-jekm-hqe7"
                },
                {
                    "vulnerability": "VCID-ehnk-9bpb-a3bn"
                },
                {
                    "vulnerability": "VCID-v97n-z9h3-xyfs"
                },
                {
                    "vulnerability": "VCID-wztc-a3ye-cbfe"
                },
                {
                    "vulnerability": "VCID-xc4g-yv34-8fbv"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/avahi@0.8-5%252Bdeb11u2%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/88724?format=api",
            "purl": "pkg:deb/debian/avahi@0.8-6?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/avahi@0.8-6%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/88709?format=api",
            "purl": "pkg:deb/debian/avahi@0.8-10%2Bdeb12u1?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-be9g-jekm-hqe7"
                },
                {
                    "vulnerability": "VCID-ehnk-9bpb-a3bn"
                },
                {
                    "vulnerability": "VCID-v97n-z9h3-xyfs"
                },
                {
                    "vulnerability": "VCID-wztc-a3ye-cbfe"
                },
                {
                    "vulnerability": "VCID-xc4g-yv34-8fbv"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/avahi@0.8-10%252Bdeb12u1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/88713?format=api",
            "purl": "pkg:deb/debian/avahi@0.8-16?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-be9g-jekm-hqe7"
                },
                {
                    "vulnerability": "VCID-ehnk-9bpb-a3bn"
                },
                {
                    "vulnerability": "VCID-v97n-z9h3-xyfs"
                },
                {
                    "vulnerability": "VCID-wztc-a3ye-cbfe"
                },
                {
                    "vulnerability": "VCID-xc4g-yv34-8fbv"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/avahi@0.8-16%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/88712?format=api",
            "purl": "pkg:deb/debian/avahi@0.8-18?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/avahi@0.8-18%3Fdistro=trixie"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/189063?format=api",
            "purl": "pkg:alpm/archlinux/avahi@0.8%2B20%2Bgd1e71b3-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ab8v-3vdh-a7gy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/avahi@0.8%252B20%252Bgd1e71b3-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/132654?format=api",
            "purl": "pkg:rpm/redhat/avahi@0.8-15?arch=el9",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ab8v-3vdh-a7gy"
                },
                {
                    "vulnerability": "VCID-nac4-671z-pygr"
                },
                {
                    "vulnerability": "VCID-w3pq-ah78-3qec"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/avahi@0.8-15%3Farch=el9"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-3502.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-3502.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-3502",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00032",
                    "scoring_system": "epss",
                    "scoring_elements": "0.09631",
                    "published_at": "2026-06-04T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-3502"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1946914",
            "reference_id": "1946914",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1946914"
        },
        {
            "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986018",
            "reference_id": "986018",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986018"
        },
        {
            "reference_url": "https://security.archlinux.org/AVG-2341",
            "reference_id": "AVG-2341",
            "reference_type": "",
            "scores": [
                {
                    "value": "Low",
                    "scoring_system": "archlinux",
                    "scoring_elements": ""
                }
            ],
            "url": "https://security.archlinux.org/AVG-2341"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2023:6707",
            "reference_id": "RHSA-2023:6707",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2023:6707"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 617,
            "name": "Reachable Assertion",
            "description": "The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary."
        },
        {
            "cwe_id": 476,
            "name": "NULL Pointer Dereference",
            "description": "A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit."
        }
    ],
    "exploits": [],
    "severity_range_score": "0.1 - 5.5",
    "exploitability": "0.5",
    "weighted_severity": "5.0",
    "risk_score": 2.5,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ab8v-3vdh-a7gy"
}