Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44631?format=api",
    "vulnerability_id": "VCID-creg-bte6-effz",
    "summary": "Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')\nXWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions any user with view rights can execute arbitrary Groovy, Python or Velocity code in XWiki leading to full access to the XWiki installation. The root cause is improper escaping of UIX parameters. A proof of concept exploit is to log in, add an `XWiki.UIExtensionClass` xobject to the user profile page, with an Extension Parameters content containing `label={{/html}} {{async async=\"true\" cached=\"false\" context=\"doc.reference\"}}{{groovy}}println(\"Hello \" + \"from groovy!\"){{/groovy}}{{/async}}`. Then, navigating to `PanelsCode.ApplicationsPanelConfigurationSheet` (i.e., `<xwiki-host>/xwiki/bin/view/PanelsCode/ApplicationsPanelConfigurationSheet` where `<xwiki-host>` is the URL of your XWiki installation) should not execute the Groovy script. If it does, you will see `Hello from groovy!` displayed on the screen. This vulnerability has been patched in XWiki 13.10.11, 14.4.7 and 14.10-rc-1. Users are advised to upgrade. For users unable to upgrade the issue can be fixed by editing the `PanelsCode.ApplicationsPanelConfigurationSheet` wiki page and making the same modifications as shown in commit `6de5442f3c`.",
    "aliases": [
        {
            "alias": "CVE-2023-27479"
        },
        {
            "alias": "GHSA-qxjg-jhgw-qhrv"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64260?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@13.10.11",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@13.10.11"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64261?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@14.4.7",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@14.4.7"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64262?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@14.10-rc-1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@14.10-rc-1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64257?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@6.3-milestone-2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-creg-bte6-effz"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@6.3-milestone-2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64258?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@14.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-creg-bte6-effz"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@14.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64259?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@14.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-creg-bte6-effz"
                },
                {
                    "vulnerability": "VCID-gwde-vgye-53f1"
                },
                {
                    "vulnerability": "VCID-wk11-e7vg-y7h4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-panels-ui@14.5"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.9",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/xwiki/xwiki-platform"
        },
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform/commit/6de5442f3c91c3634a66c7b458d5b142e1c2a2dc",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.9",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/xwiki/xwiki-platform/commit/6de5442f3c91c3634a66c7b458d5b142e1c2a2dc"
        },
        {
            "reference_url": "https://jira.xwiki.org/browse/XWIKI-20294",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.9",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://jira.xwiki.org/browse/XWIKI-20294"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-27479",
            "reference_id": "CVE-2023-27479",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.9",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-27479"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-qxjg-jhgw-qhrv",
            "reference_id": "GHSA-qxjg-jhgw-qhrv",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-qxjg-jhgw-qhrv"
        },
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-qxjg-jhgw-qhrv",
            "reference_id": "GHSA-qxjg-jhgw-qhrv",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.9",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-qxjg-jhgw-qhrv"
        }
    ],
    "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": 74,
            "name": "Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')",
            "description": "The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component."
        },
        {
            "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."
        },
        {
            "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": "9.0 - 10.0",
    "exploitability": "0.5",
    "weighted_severity": "9.0",
    "risk_score": 4.5,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-creg-bte6-effz"
}