PYSEC-2026-666

Vulnerability from pysec - Published: 2026-07-02 14:13 - Updated: 2026-07-06 07:36
VLAI
Details

Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.

Impacted products
Name purl
mercurial pkg:pypi/mercurial

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "mercurial",
        "purl": "pkg:pypi/mercurial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.0.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.8.1",
        "0.9",
        "0.9.1",
        "0.9.2",
        "0.9.3",
        "0.9.4",
        "0.9.5",
        "1.0",
        "1.0.1"
      ]
    }
  ],
  "aliases": [
    "CVE-2008-2942",
    "GHSA-v2gw-x5jf-pgwv"
  ],
  "details": "Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via \"..\" (dot dot) sequences in a patch file.",
  "id": "PYSEC-2026-666",
  "modified": "2026-07-06T07:36:51.556132Z",
  "published": "2026-07-02T14:13:21.096985Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2008-2942"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/43551"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/dscho/hg"
    },
    {
      "type": "WEB",
      "url": "https://issues.rpath.com/browse/RPL-2633"
    },
    {
      "type": "WEB",
      "url": "http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/31108"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/31110"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/31167"
    },
    {
      "type": "WEB",
      "url": "http://security.gentoo.org/glsa/glsa-200807-09.xml"
    },
    {
      "type": "WEB",
      "url": "http://wiki.rpath.com/Advisories:rPSA-2008-0211"
    },
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2008/06/30/1"
    },
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2008/07/01/1"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/archive/1/493881/100/0/threaded"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/30072"
    },
    {
      "type": "WEB",
      "url": "http://www.selenic.com/hg/rev/87c704ac92d4"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/mercurial"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-v2gw-x5jf-pgwv"
    }
  ],
  "summary": "Mercurial Directory traversal vulnerability"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…