GSD-2014-0177

Vulnerability from gsd - Updated: 2023-12-13 01:22
Details
The am function in lib/hub/commands.rb in hub before 1.12.1 allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file.
Aliases
Aliases

{
  "GSD": {
    "alias": "CVE-2014-0177",
    "description": "The am function in lib/hub/commands.rb in hub before 1.12.1 allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file.",
    "id": "GSD-2014-0177",
    "references": [
      "https://www.suse.com/security/cve/CVE-2014-0177.html"
    ]
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2014-0177"
      ],
      "details": "The am function in lib/hub/commands.rb in hub before 1.12.1 allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file.",
      "id": "GSD-2014-0177",
      "modified": "2023-12-13T01:22:44.441383Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "secalert@redhat.com",
        "ID": "CVE-2014-0177",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "n/a",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "n/a"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "The am function in lib/hub/commands.rb in hub before 1.12.1 allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "58273",
            "refsource": "SECUNIA",
            "url": "http://secunia.com/advisories/58273"
          },
          {
            "name": "https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600",
            "refsource": "CONFIRM",
            "url": "https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600"
          }
        ]
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c1.12.1",
          "affected_versions": "All versions before 1.12.1",
          "credit": "@mscherer",
          "cvss_v2": "AV:L/AC:L/Au:N/C:N/I:P/A:P",
          "cwe_ids": [
            "CWE-1035",
            "CWE-310",
            "CWE-937"
          ],
          "date": "2014-05-28",
          "description": "Since the `/tmp` directory is readable by everybody on Unix, and since the patch name could be public or easy to guess, an attacker could create a symlink to a file writable by the user running hub, which would be replaced by the patch.",
          "fixed_versions": [
            "1.12.1"
          ],
          "identifier": "CVE-2014-0177",
          "identifiers": [
            "CVE-2014-0177"
          ],
          "not_impacted": "none",
          "package_slug": "gem/hub",
          "pubdate": "2014-05-27",
          "solution": "Upgrade to 1.12.1 (when available) or fetch 1.12.1 version from github.com.",
          "title": "Temporary Directory Insecure Permissions Local Symlink File Overwrite",
          "urls": [
            "http://osvdb.org/show/osvdb/107252",
            "https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600"
          ],
          "uuid": "a1a381f8-4d19-4db8-b551-54a62303930f"
        },
        {
          "affected_range": "\u003cv1.12.1",
          "affected_versions": "All versions before 1.12.1",
          "cvss_v2": "AV:L/AC:L/Au:N/C:N/I:P/A:P",
          "cwe_ids": [
            "CWE-1035",
            "CWE-310",
            "CWE-937"
          ],
          "date": "2022-02-15",
          "description": "The am function in `lib/hub/commands.rb` in hub allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file.",
          "fixed_versions": [
            "v1.12.1"
          ],
          "identifier": "CVE-2014-0177",
          "identifiers": [
            "GHSA-x5m6-jh4r-34mv",
            "CVE-2014-0177"
          ],
          "not_impacted": "All versions starting from 1.12.1",
          "package_slug": "go/github.com/github/hub",
          "pubdate": "2022-02-15",
          "solution": "Upgrade to version 1.12.1 or above.",
          "title": "Arbitrary File Overwrite in hub",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2014-0177",
            "https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600",
            "https://secunia.com/advisories/58273",
            "https://github.com/advisories/GHSA-x5m6-jh4r-34mv"
          ],
          "uuid": "1d751efb-2085-413b-b9dd-3a79a27ff46d",
          "versions": [
            {
              "commit": {
                "sha": "e807a3891b13a45d52447b63ca4e54c25a78dc13",
                "tags": [
                  "v1.12.1"
                ],
                "timestamp": "20140523100526"
              },
              "number": "v1.12.1"
            }
          ]
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:github:hub:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndIncluding": "1.12.0",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "secalert@redhat.com",
          "ID": "CVE-2014-0177"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "The am function in lib/hub/commands.rb in hub before 1.12.1 allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-310"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "58273",
              "refsource": "SECUNIA",
              "tags": [
                "URL Repurposed"
              ],
              "url": "http://secunia.com/advisories/58273"
            },
            {
              "name": "https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600",
              "refsource": "CONFIRM",
              "tags": [
                "Exploit",
                "Patch"
              ],
              "url": "https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "cvssV2": {
            "accessComplexity": "LOW",
            "accessVector": "LOCAL",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 3.6,
            "confidentialityImpact": "NONE",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:L/AC:L/Au:N/C:N/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 4.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "LOW",
          "userInteractionRequired": false
        }
      },
      "lastModifiedDate": "2023-06-06T14:02Z",
      "publishedDate": "2014-05-27T14:55Z"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.