Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/201645?format=api",
    "vulnerability_id": "VCID-azg6-1ya3-5ue4",
    "summary": "Smarty before 3.0.0 beta 4 does not consider the umask value when setting the permissions of files, which might allow attackers to bypass intended access restrictions via standard filesystem operations.",
    "aliases": [
        {
            "alias": "CVE-2009-5054"
        },
        {
            "alias": "GHSA-6m9f-8vwq-97pm"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/402832?format=api",
            "purl": "pkg:composer/smarty/smarty@3.1.11",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-85qb-yjs9-4kc8"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-j99h-vc6w-hyd5"
                },
                {
                    "vulnerability": "VCID-jjju-kned-ufhr"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yvk2-k49u-1bat"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@3.1.11"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/103994?format=api",
            "purl": "pkg:deb/debian/smarty3@3.0~rc1-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/smarty3@3.0~rc1-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/103995?format=api",
            "purl": "pkg:deb/debian/smarty3@3.1.39-2%2Bdeb11u1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/smarty3@3.1.39-2%252Bdeb11u1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/103993?format=api",
            "purl": "pkg:deb/debian/smarty3@3.1.47-2%2Bdeb12u1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/smarty3@3.1.47-2%252Bdeb12u1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/103996?format=api",
            "purl": "pkg:deb/debian/smarty3@3.1.48-2?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/smarty3@3.1.48-2%3Fdistro=trixie"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/402827?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.24",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-jjju-kned-ufhr"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.24"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/402828?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.25",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-jjju-kned-ufhr"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.25"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/402829?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.26",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-jjju-kned-ufhr"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.26"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/402830?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.27",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-jjju-kned-ufhr"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.27"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/402831?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.28",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-jjju-kned-ufhr"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.28"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/430457?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.29",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.29"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/430458?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.30",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.30"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/430459?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.31",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-bcsf-ygsf-gkf8"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-q28h-yy5c-6qgk"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-vtgu-facr-b7a2"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.31"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/532300?format=api",
            "purl": "pkg:composer/smarty/smarty@2.6.33",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1vrk-mr94-huar"
                },
                {
                    "vulnerability": "VCID-3mxe-phrs-j7d1"
                },
                {
                    "vulnerability": "VCID-azg6-1ya3-5ue4"
                },
                {
                    "vulnerability": "VCID-g4mk-4raf-a3bj"
                },
                {
                    "vulnerability": "VCID-hx89-epmr-qqd6"
                },
                {
                    "vulnerability": "VCID-ke5v-yxmm-fydq"
                },
                {
                    "vulnerability": "VCID-u5f6-hy8m-5qd6"
                },
                {
                    "vulnerability": "VCID-ukne-sz3k-xkhf"
                },
                {
                    "vulnerability": "VCID-yrs9-nmbk-27hy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/smarty/smarty@2.6.33"
        }
    ],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2009-5054",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00105",
                    "scoring_system": "epss",
                    "scoring_elements": "0.28251",
                    "published_at": "2026-06-12T12:55:00Z"
                },
                {
                    "value": "0.00105",
                    "scoring_system": "epss",
                    "scoring_elements": "0.28052",
                    "published_at": "2026-06-11T12:55:00Z"
                },
                {
                    "value": "0.00105",
                    "scoring_system": "epss",
                    "scoring_elements": "0.28265",
                    "published_at": "2026-06-14T12:55:00Z"
                },
                {
                    "value": "0.00105",
                    "scoring_system": "epss",
                    "scoring_elements": "0.28274",
                    "published_at": "2026-06-13T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2009-5054"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-5054",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-5054"
        },
        {
            "reference_url": "https://github.com/smarty-php/smarty",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/smarty-php/smarty"
        },
        {
            "reference_url": "https://web.archive.org/web/20101116174040/http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://web.archive.org/web/20101116174040/http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2009-5054",
            "reference_id": "CVE-2009-5054",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2009-5054"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-6m9f-8vwq-97pm",
            "reference_id": "GHSA-6m9f-8vwq-97pm",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-6m9f-8vwq-97pm"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 281,
            "name": "Improper Preservation of Permissions",
            "description": "The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended."
        },
        {
            "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": 264,
            "name": "Permissions, Privileges, and Access Controls",
            "description": "Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control."
        },
        {
            "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": "4.0 - 6.9",
    "exploitability": "0.5",
    "weighted_severity": "6.2",
    "risk_score": 3.1,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-azg6-1ya3-5ue4"
}