Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/97018?format=api",
    "vulnerability_id": "VCID-wwcj-hwqc-f3g7",
    "summary": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (ssh_sftpd module) allows Path Traversal.  This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routines ssh_sftpd:is_within_root/2.  The SFTP server uses string prefix matching via lists:prefix/2 rather than proper path component validation when checking if a path is within the configured root directory. This allows authenticated users to access sibling directories that share a common name prefix with the configured root directory. For example, if root is set to /home/user1, paths like /home/user10 or /home/user1_backup would incorrectly be considered within the root.  This issue affects OTP from OTP 17.0 until OTP 28.4.1, OTP 27.3.4.9 and OTP 26.2.5.18, corresponding to ssh from 3.0.1 until 5.5.1, 5.2.11.6 and 5.1.4.14.",
    "aliases": [
        {
            "alias": "CVE-2026-23942"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/584331?format=api",
            "purl": "pkg:deb/debian/erlang@1:27.3.4.9%2Bdfsg-1?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-gcn7-ak4r-eba3"
                },
                {
                    "vulnerability": "VCID-j7t3-nrjj-pfgp"
                },
                {
                    "vulnerability": "VCID-zegc-rj1x-ryau"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:27.3.4.9%252Bdfsg-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1059948?format=api",
            "purl": "pkg:deb/debian/erlang@1:27.3.4.10%2Bdfsg-1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:27.3.4.10%252Bdfsg-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1059607?format=api",
            "purl": "pkg:deb/debian/erlang@1:27.3.4.10%2Bdfsg-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:27.3.4.10%252Bdfsg-1%3Fdistro=trixie"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/582521?format=api",
            "purl": "pkg:deb/debian/erlang@1:23.2.6%2Bdfsg-1%2Bdeb11u1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1283-nvxm-r7cw"
                },
                {
                    "vulnerability": "VCID-28fj-t5hy-x3gn"
                },
                {
                    "vulnerability": "VCID-c3vm-u9jn-83cs"
                },
                {
                    "vulnerability": "VCID-gcn7-ak4r-eba3"
                },
                {
                    "vulnerability": "VCID-h1k4-x8vr-5bch"
                },
                {
                    "vulnerability": "VCID-j7t3-nrjj-pfgp"
                },
                {
                    "vulnerability": "VCID-jg37-ud9r-d3h7"
                },
                {
                    "vulnerability": "VCID-jxzt-8wru-6yhk"
                },
                {
                    "vulnerability": "VCID-jzn6-bzzf-nugp"
                },
                {
                    "vulnerability": "VCID-nqfj-97y5-suar"
                },
                {
                    "vulnerability": "VCID-s9qn-9qdm-j7ej"
                },
                {
                    "vulnerability": "VCID-tnt7-d764-13cq"
                },
                {
                    "vulnerability": "VCID-vqnt-uyex-87fn"
                },
                {
                    "vulnerability": "VCID-w9yj-xg82-kyac"
                },
                {
                    "vulnerability": "VCID-wwcj-hwqc-f3g7"
                },
                {
                    "vulnerability": "VCID-xcks-117s-v3dd"
                },
                {
                    "vulnerability": "VCID-z6gs-aq96-gkaw"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:23.2.6%252Bdfsg-1%252Bdeb11u1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/584328?format=api",
            "purl": "pkg:deb/debian/erlang@1:23.2.6%2Bdfsg-1%2Bdeb11u1?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-28fj-t5hy-x3gn"
                },
                {
                    "vulnerability": "VCID-gcn7-ak4r-eba3"
                },
                {
                    "vulnerability": "VCID-h1k4-x8vr-5bch"
                },
                {
                    "vulnerability": "VCID-j7t3-nrjj-pfgp"
                },
                {
                    "vulnerability": "VCID-s9qn-9qdm-j7ej"
                },
                {
                    "vulnerability": "VCID-w9yj-xg82-kyac"
                },
                {
                    "vulnerability": "VCID-wwcj-hwqc-f3g7"
                },
                {
                    "vulnerability": "VCID-xcks-117s-v3dd"
                },
                {
                    "vulnerability": "VCID-z6gs-aq96-gkaw"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:23.2.6%252Bdfsg-1%252Bdeb11u1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/582522?format=api",
            "purl": "pkg:deb/debian/erlang@1:25.2.3%2Bdfsg-1%2Bdeb12u3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1283-nvxm-r7cw"
                },
                {
                    "vulnerability": "VCID-28fj-t5hy-x3gn"
                },
                {
                    "vulnerability": "VCID-c3vm-u9jn-83cs"
                },
                {
                    "vulnerability": "VCID-gcn7-ak4r-eba3"
                },
                {
                    "vulnerability": "VCID-h1k4-x8vr-5bch"
                },
                {
                    "vulnerability": "VCID-j7t3-nrjj-pfgp"
                },
                {
                    "vulnerability": "VCID-jxzt-8wru-6yhk"
                },
                {
                    "vulnerability": "VCID-s9qn-9qdm-j7ej"
                },
                {
                    "vulnerability": "VCID-w9yj-xg82-kyac"
                },
                {
                    "vulnerability": "VCID-wwcj-hwqc-f3g7"
                },
                {
                    "vulnerability": "VCID-xcks-117s-v3dd"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:25.2.3%252Bdfsg-1%252Bdeb12u3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/584329?format=api",
            "purl": "pkg:deb/debian/erlang@1:25.2.3%2Bdfsg-1%2Bdeb12u3?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1283-nvxm-r7cw"
                },
                {
                    "vulnerability": "VCID-28fj-t5hy-x3gn"
                },
                {
                    "vulnerability": "VCID-c3vm-u9jn-83cs"
                },
                {
                    "vulnerability": "VCID-gcn7-ak4r-eba3"
                },
                {
                    "vulnerability": "VCID-h1k4-x8vr-5bch"
                },
                {
                    "vulnerability": "VCID-j7t3-nrjj-pfgp"
                },
                {
                    "vulnerability": "VCID-jxzt-8wru-6yhk"
                },
                {
                    "vulnerability": "VCID-s9qn-9qdm-j7ej"
                },
                {
                    "vulnerability": "VCID-w9yj-xg82-kyac"
                },
                {
                    "vulnerability": "VCID-wwcj-hwqc-f3g7"
                },
                {
                    "vulnerability": "VCID-xcks-117s-v3dd"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:25.2.3%252Bdfsg-1%252Bdeb12u3%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/582523?format=api",
            "purl": "pkg:deb/debian/erlang@1:27.3.4.1%2Bdfsg-1%2Bdeb13u1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-gcn7-ak4r-eba3"
                },
                {
                    "vulnerability": "VCID-h1k4-x8vr-5bch"
                },
                {
                    "vulnerability": "VCID-j7t3-nrjj-pfgp"
                },
                {
                    "vulnerability": "VCID-s9qn-9qdm-j7ej"
                },
                {
                    "vulnerability": "VCID-w9yj-xg82-kyac"
                },
                {
                    "vulnerability": "VCID-wwcj-hwqc-f3g7"
                },
                {
                    "vulnerability": "VCID-zegc-rj1x-ryau"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:27.3.4.1%252Bdfsg-1%252Bdeb13u1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/584330?format=api",
            "purl": "pkg:deb/debian/erlang@1:27.3.4.1%2Bdfsg-1%2Bdeb13u1?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-gcn7-ak4r-eba3"
                },
                {
                    "vulnerability": "VCID-h1k4-x8vr-5bch"
                },
                {
                    "vulnerability": "VCID-j7t3-nrjj-pfgp"
                },
                {
                    "vulnerability": "VCID-s9qn-9qdm-j7ej"
                },
                {
                    "vulnerability": "VCID-w9yj-xg82-kyac"
                },
                {
                    "vulnerability": "VCID-wwcj-hwqc-f3g7"
                },
                {
                    "vulnerability": "VCID-zegc-rj1x-ryau"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/erlang@1:27.3.4.1%252Bdfsg-1%252Bdeb13u1%3Fdistro=trixie"
        }
    ],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-23942",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.0002",
                    "scoring_system": "epss",
                    "scoring_elements": "0.05493",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.0002",
                    "scoring_system": "epss",
                    "scoring_elements": "0.05459",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00023",
                    "scoring_system": "epss",
                    "scoring_elements": "0.0612",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.00023",
                    "scoring_system": "epss",
                    "scoring_elements": "0.06128",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.00023",
                    "scoring_system": "epss",
                    "scoring_elements": "0.06132",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.00023",
                    "scoring_system": "epss",
                    "scoring_elements": "0.06141",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00023",
                    "scoring_system": "epss",
                    "scoring_elements": "0.06101",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.00023",
                    "scoring_system": "epss",
                    "scoring_elements": "0.06061",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.00026",
                    "scoring_system": "epss",
                    "scoring_elements": "0.07214",
                    "published_at": "2026-04-16T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-23942"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-23942",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-23942"
        },
        {
            "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.4",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
                }
            ],
            "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
        },
        {
            "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1130912",
            "reference_id": "1130912",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1130912"
        },
        {
            "reference_url": "https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590b",
            "reference_id": "27688a824f753d4c16371dc70e88753fb410590b",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-13T16:02:31Z/"
                }
            ],
            "url": "https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590b"
        },
        {
            "reference_url": "https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759",
            "reference_id": "5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-13T16:02:31Z/"
                }
            ],
            "url": "https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759"
        },
        {
            "reference_url": "https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28",
            "reference_id": "9e0ac85d3485e7898e0da88a14be0ee2310a3b28",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-13T16:02:31Z/"
                }
            ],
            "url": "https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
            "reference_id": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
        },
        {
            "reference_url": "https://cna.erlef.org/cves/CVE-2026-23942.html",
            "reference_id": "CVE-2026-23942.html",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-13T16:02:31Z/"
                }
            ],
            "url": "https://cna.erlef.org/cves/CVE-2026-23942.html"
        },
        {
            "reference_url": "https://osv.dev/vulnerability/EEF-CVE-2026-23942",
            "reference_id": "EEF-CVE-2026-23942",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-13T16:02:31Z/"
                }
            ],
            "url": "https://osv.dev/vulnerability/EEF-CVE-2026-23942"
        },
        {
            "reference_url": "https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9h",
            "reference_id": "GHSA-4749-w85x-hw9h",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-13T16:02:31Z/"
                }
            ],
            "url": "https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9h"
        },
        {
            "reference_url": "https://www.erlang.org/doc/system/versions.html#order-of-versions",
            "reference_id": "versions.html#order-of-versions",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-13T16:02:31Z/"
                }
            ],
            "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 22,
            "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
            "description": "The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory."
        }
    ],
    "exploits": [],
    "severity_range_score": "5.3 - 5.4",
    "exploitability": "0.5",
    "weighted_severity": "4.8",
    "risk_score": 2.4,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-wwcj-hwqc-f3g7"
}