CVE-2013-0162
Vulnerability from cvelistv5
Published
2013-03-01 02:00
Modified
2024-08-06 14:18
Severity ?
Summary
The diff_pp function in lib/gauntlet_rubyparser.rb in the ruby_parser gem 3.1.1 and earlier for Ruby allows local users to overwrite arbitrary files via a symlink attack on a temporary file with a predictable name in /tmp.
Impacted products
Vendor Product Version
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-06T14:18:09.378Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=892806"
          },
          {
            "name": "RHSA-2013:0548",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "http://rhn.redhat.com/errata/RHSA-2013-0548.html"
          },
          {
            "name": "RHSA-2013:0544",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "http://rhn.redhat.com/errata/RHSA-2013-0544.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "The diff_pp function in lib/gauntlet_rubyparser.rb in the ruby_parser gem 3.1.1 and earlier for Ruby allows local users to overwrite arbitrary files via a symlink attack on a temporary file with a predictable name in /tmp."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "n/a",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2013-03-01T02:00:00Z",
        "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "shortName": "redhat"
      },
      "references": [
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=892806"
        },
        {
          "name": "RHSA-2013:0548",
          "tags": [
            "vendor-advisory",
            "x_refsource_REDHAT"
          ],
          "url": "http://rhn.redhat.com/errata/RHSA-2013-0548.html"
        },
        {
          "name": "RHSA-2013:0544",
          "tags": [
            "vendor-advisory",
            "x_refsource_REDHAT"
          ],
          "url": "http://rhn.redhat.com/errata/RHSA-2013-0544.html"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
    "assignerShortName": "redhat",
    "cveId": "CVE-2013-0162",
    "datePublished": "2013-03-01T02:00:00Z",
    "dateReserved": "2012-12-06T00:00:00Z",
    "dateUpdated": "2024-08-06T14:18:09.378Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2013-0162\",\"sourceIdentifier\":\"secalert@redhat.com\",\"published\":\"2013-03-01T05:40:16.987\",\"lastModified\":\"2024-11-21T01:46:58.307\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"The diff_pp function in lib/gauntlet_rubyparser.rb in the ruby_parser gem 3.1.1 and earlier for Ruby allows local users to overwrite arbitrary files via a symlink attack on a temporary file with a predictable name in /tmp.\"},{\"lang\":\"es\",\"value\":\"La funci\u00f3n diff_pp en lib/gauntlet_rubyparser.rb en ruby_parser gem v3.1.1 y anteriores para Ruby, permite a usuarios locales sobrescribir archivos arbitrarios a trav\u00e9s de un ataque de enlace simb\u00f3lico sobre un archivo temporal con un nombre predecible en /tmp.\"}],\"metrics\":{\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:L/AC:L/Au:N/C:N/I:P/A:N\",\"baseScore\":2.1,\"accessVector\":\"LOCAL\",\"accessComplexity\":\"LOW\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"PARTIAL\",\"availabilityImpact\":\"NONE\"},\"baseSeverity\":\"LOW\",\"exploitabilityScore\":3.9,\"impactScore\":2.9,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-264\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:*:*:*:*:*:*:*:*\",\"versionEndIncluding\":\"3.1.1\",\"matchCriteriaId\":\"B7CA2D4A-C5D5-4351-A3E6-94F0134ACDFE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:1.0.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"1997DD86-5A86-44EF-BFAB-5762036FDB52\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.0.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"2EFFFD6C-CE5F-4CDA-9E21-C5092738E70D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.0.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"AAD69017-946E-46AE-B8E0-CE88870C8474\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.0.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6072EC22-3327-4550-98A0-63A5547B8169\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.0.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"4B31D7F1-3546-460B-8433-1F6C600EA5F0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.0.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"ED3EF2CD-F764-4174-B4E8-18AA1E25B14F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.0.5:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"B6C3FA28-CE20-4DF8-802A-135DCF2746F1\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.0.6:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"4589091B-CE69-4A11-9AF9-599A6BBE44BA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.1.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"972AF9F2-8925-42F4-BCCB-94897C01158B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.2.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A5DA9AEE-69C2-44F2-86F6-E267C0F94088\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.3.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6AA7D179-6F94-44E4-888A-2CA793811FDE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:2.3.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"33AB4A01-A64B-4084-893B-29463D5AAA08\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"037A5749-76E0-4633-8761-5AEE5BAA692A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"E318EAB3-5E68-4512-A199-C962C1EE4114\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"22611B29-93F3-4658-802D-69E58D49B918\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"59214551-A32E-428D-AB09-29F136882DFB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"51FF16A2-9376-44EF-928C-2246407D4A9C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a5:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"26ECD531-FFC6-4F85-BD37-CB9C5065203A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a6:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"71964D5D-3737-483C-8DF9-F953B2AE8668\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a7:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"1B8B2ED9-7C48-420F-A824-8518BAAB71C2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a8:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"9A74D9FE-8B0A-4141-8E4A-8E2362650272\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a9:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"373A10DA-2151-445C-A83A-C433CCABD8AB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.0.a10:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"C3FF3C93-D13C-4462-8C10-DA2A7FFB70A5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"D9FB6A1F-6E32-4C5C-BE92-CBB99F9040B4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"9267296D-5A2B-47AE-A870-4E7977BD2156\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6FDAD7BE-B981-464D-9FDF-EAAB64D5B841\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.0.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"E0DCAD18-B91F-494F-8121-F1B7198DF9E0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:ryan_davis:ruby_parser:3.1.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"823D6F3C-1FC9-4DDC-8C13-C1F9FE54CC39\"}]}]}],\"references\":[{\"url\":\"http://rhn.redhat.com/errata/RHSA-2013-0544.html\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://rhn.redhat.com/errata/RHSA-2013-0548.html\",\"source\":\"secalert@redhat.com\"},{\"url\":\"https://bugzilla.redhat.com/show_bug.cgi?id=892806\",\"source\":\"secalert@redhat.com\",\"tags\":[\"Patch\"]},{\"url\":\"http://rhn.redhat.com/errata/RHSA-2013-0544.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://rhn.redhat.com/errata/RHSA-2013-0548.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://bugzilla.redhat.com/show_bug.cgi?id=892806\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}"
  }
}