CVE-2011-2765: Pyro Pyro Mishandles Pid Files Vulnerability

HIGH
Advisory Identifier: GHSA-xrr4-74mc-rpjc
CVSS 7.5
CWE-59
Published
Advisory Summary

CVE-2011-2765 is a HIGH (CVSS 7.5) pyro mishandles pid files vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Pyro libraries in the PyPI ecosystem. The issue involves pyro mishandles pid files in temporary directory locations and opening the pid file as root. Remediation is available by upgrading affected packages to version 3.15.

CVE-2011-2765 at a Glance

CVE Identifier CVE-2011-2765
GHSA Identifier GHSA-xrr4-74mc-rpjc
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Pyro
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2011-2765

To remediate this vulnerability, upgrade all affected Pyro dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pyro fixed: 3.15
pip install pyro>=3.15
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pyro

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2011-2765, inspect your installed packages using pip:

pip show pyro

Analyze the terminal output to locate any version of Pyro in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.15), your application is affected.

Note: The pip show pyro command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Pyro, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

pyro before 3.15 unsafely handles pid files in temporary directory locations and opening the pid file as root. An attacker can use this flaw to overwrite arbitrary files via symlinks.

CVE-2011-2765 Affected Pyro Versions

1 component(s)
Fixed Versions:
3.15
Product / Package Ecosystem Affected Versions Fixed Version
pyro
PyPI
< 3.15
3.15

References

Frequently Asked Questions

What is CVE-2011-2765?
CVE-2011-2765 is a security vulnerability in Pyro involving Pyro mishandles pid files in temporary directory locations and opening the pid file as root under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Pyro versions are affected?
Affected versions include releases prior to 3.15 across affected packages: pyro.
What version fixes CVE-2011-2765?
Upgrading to 3.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pyro affected?
Yes, pyro is affected in releases prior to 3.15. Upgrade your dependency to 3.15 or later.
What is the CVSS score of CVE-2011-2765?
CVE-2011-2765 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2011-2765?
CVE-2011-2765 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.).
How can I check PyPI dependencies for CVE-2011-2765?
Run the dependency tree command: 'pip show pyro'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xrr4-74mc-rpjc",
  "modified" : "2024-10-15T16:14:43Z",
  "published" : "2018-08-21T17:01:29Z",
  "aliases" : [ "CVE-2011-2765" ],
  "summary" : "Pyro mishandles pid files in temporary directory locations and opening the pid file as root",
  "details" : "pyro before 3.15 unsafely handles pid files in temporary directory locations and opening the pid file as root. An attacker can use this flaw to overwrite arbitrary files via symlinks.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyro"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-2765"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/irmen/Pyro3/commit/554e095a62c4412c91f981e72fd34a936ac2bf1e"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.debian.org/631912"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/irmen/Pyro3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyro/PYSEC-2018-99.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pythonhosted.org/Pyro/12-changes.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-59" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:04:21Z",
    "nvd_published_at" : null
  }
}