CVE-2018-1000156 (GCVE-0-2018-1000156)

Vulnerability from cvelistv5 – Published: 2018-04-06 13:00 – Updated: 2025-04-14 19:36
VLAI
Summary
GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.
Severity
No CVSS data available.
CWE
  • n/a
Assigner
mitre CNA
Date Public
2018-04-05 00:00
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-05T12:33:49.376Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "https://savannah.gnu.org/bugs/index.php?53566"
          },
          {
            "name": "[debian-lts-announce] 20180416 [SECURITY] [DLA 1348-1] patch security update",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html"
          },
          {
            "name": "USN-3624-2",
            "tags": [
              "vendor-advisory",
              "x_refsource_UBUNTU",
              "x_transferred"
            ],
            "url": "https://usn.ubuntu.com/3624-2/"
          },
          {
            "name": "USN-3624-1",
            "tags": [
              "vendor-advisory",
              "x_refsource_UBUNTU",
              "x_transferred"
            ],
            "url": "https://usn.ubuntu.com/3624-1/"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://twitter.com/kurtseifried/status/982028968877436928"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "http://rachelbythebay.com/w/2018/04/05/bangpatch/"
          },
          {
            "name": "RHSA-2018:2091",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2091"
          },
          {
            "name": "RHSA-2018:2094",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2094"
          },
          {
            "name": "RHSA-2018:2093",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2093"
          },
          {
            "name": "RHSA-2018:1200",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:1200"
          },
          {
            "name": "RHSA-2018:2095",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2095"
          },
          {
            "name": "RHSA-2018:1199",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:1199"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19"
          },
          {
            "name": "RHSA-2018:2092",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2092"
          },
          {
            "name": "RHSA-2018:2097",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2097"
          },
          {
            "name": "RHSA-2018:2096",
            "tags": [
              "vendor-advisory",
              "x_refsource_REDHAT",
              "x_transferred"
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2096"
          },
          {
            "name": "GLSA-201904-17",
            "tags": [
              "vendor-advisory",
              "x_refsource_GENTOO",
              "x_transferred"
            ],
            "url": "https://security.gentoo.org/glsa/201904-17"
          },
          {
            "name": "20190730 [SECURITY] [DSA 4489-1] patch security update",
            "tags": [
              "mailing-list",
              "x_refsource_BUGTRAQ",
              "x_transferred"
            ],
            "url": "https://seclists.org/bugtraq/2019/Jul/54"
          },
          {
            "name": "20190816 Details about recent GNU patch vulnerabilities",
            "tags": [
              "mailing-list",
              "x_refsource_BUGTRAQ",
              "x_transferred"
            ],
            "url": "https://seclists.org/bugtraq/2019/Aug/29"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "dateAssigned": "2018-04-05T00:00:00.000Z",
      "datePublic": "2018-04-05T00:00:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD\u0027s CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "n/a",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-04-14T19:36:21.263Z",
        "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "shortName": "mitre"
      },
      "references": [
        {
          "url": "https://savannah.gnu.org/bugs/index.php?53566"
        },
        {
          "name": "[debian-lts-announce] 20180416 [SECURITY] [DLA 1348-1] patch security update",
          "tags": [
            "mailing-list"
          ],
          "url": "https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html"
        },
        {
          "name": "USN-3624-2",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://usn.ubuntu.com/3624-2/"
        },
        {
          "name": "USN-3624-1",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://usn.ubuntu.com/3624-1/"
        },
        {
          "url": "http://rachelbythebay.com/w/2018/04/05/bangpatch/"
        },
        {
          "name": "RHSA-2018:2091",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:2091"
        },
        {
          "name": "RHSA-2018:2094",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:2094"
        },
        {
          "name": "RHSA-2018:2093",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:2093"
        },
        {
          "name": "RHSA-2018:1200",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:1200"
        },
        {
          "name": "RHSA-2018:2095",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:2095"
        },
        {
          "name": "RHSA-2018:1199",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:1199"
        },
        {
          "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19"
        },
        {
          "name": "RHSA-2018:2092",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:2092"
        },
        {
          "name": "RHSA-2018:2097",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:2097"
        },
        {
          "name": "RHSA-2018:2096",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2018:2096"
        },
        {
          "name": "GLSA-201904-17",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://security.gentoo.org/glsa/201904-17"
        },
        {
          "name": "20190730 [SECURITY] [DSA 4489-1] patch security update",
          "tags": [
            "mailing-list"
          ],
          "url": "https://seclists.org/bugtraq/2019/Jul/54"
        },
        {
          "name": "20190816 Details about recent GNU patch vulnerabilities",
          "tags": [
            "mailing-list"
          ],
          "url": "https://seclists.org/bugtraq/2019/Aug/29"
        },
        {
          "url": "http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"
        },
        {
          "url": "https://web.archive.org/web/20180405231329/https://twitter.com/kurtseifried/status/982028968877436928"
        }
      ],
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "DATE_ASSIGNED": "4/5/2018 18:20:32",
          "ID": "CVE-2018-1000156",
          "REQUESTER": "kurt@seifried.org",
          "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": "GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD\u0027s CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "n/a"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://savannah.gnu.org/bugs/index.php?53566",
              "refsource": "CONFIRM",
              "url": "https://savannah.gnu.org/bugs/index.php?53566"
            },
            {
              "name": "[debian-lts-announce] 20180416 [SECURITY] [DLA 1348-1] patch security update",
              "refsource": "MLIST",
              "url": "https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html"
            },
            {
              "name": "USN-3624-2",
              "refsource": "UBUNTU",
              "url": "https://usn.ubuntu.com/3624-2/"
            },
            {
              "name": "USN-3624-1",
              "refsource": "UBUNTU",
              "url": "https://usn.ubuntu.com/3624-1/"
            },
            {
              "name": "https://twitter.com/kurtseifried/status/982028968877436928",
              "refsource": "MISC",
              "url": "https://twitter.com/kurtseifried/status/982028968877436928"
            },
            {
              "name": "http://rachelbythebay.com/w/2018/04/05/bangpatch/",
              "refsource": "MISC",
              "url": "http://rachelbythebay.com/w/2018/04/05/bangpatch/"
            },
            {
              "name": "RHSA-2018:2091",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:2091"
            },
            {
              "name": "RHSA-2018:2094",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:2094"
            },
            {
              "name": "RHSA-2018:2093",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:2093"
            },
            {
              "name": "RHSA-2018:1200",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:1200"
            },
            {
              "name": "RHSA-2018:2095",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:2095"
            },
            {
              "name": "RHSA-2018:1199",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:1199"
            },
            {
              "name": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19",
              "refsource": "MISC",
              "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19"
            },
            {
              "name": "RHSA-2018:2092",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:2092"
            },
            {
              "name": "RHSA-2018:2097",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:2097"
            },
            {
              "name": "RHSA-2018:2096",
              "refsource": "REDHAT",
              "url": "https://access.redhat.com/errata/RHSA-2018:2096"
            },
            {
              "name": "GLSA-201904-17",
              "refsource": "GENTOO",
              "url": "https://security.gentoo.org/glsa/201904-17"
            },
            {
              "name": "20190730 [SECURITY] [DSA 4489-1] patch security update",
              "refsource": "BUGTRAQ",
              "url": "https://seclists.org/bugtraq/2019/Jul/54"
            },
            {
              "name": "20190816 Details about recent GNU patch vulnerabilities",
              "refsource": "BUGTRAQ",
              "url": "https://seclists.org/bugtraq/2019/Aug/29"
            },
            {
              "name": "http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html",
              "refsource": "MISC",
              "url": "http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"
            }
          ]
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
    "assignerShortName": "mitre",
    "cveId": "CVE-2018-1000156",
    "datePublished": "2018-04-06T13:00:00.000Z",
    "dateReserved": "2018-04-06T00:00:00.000Z",
    "dateUpdated": "2025-04-14T19:36:21.263Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2018-1000156",
      "date": "2026-11-19",
      "epss": "0.05329",
      "percentile": "0.92782"
    },
    "microsoft_vex": {
      "current_release_date": "2024-06-30T07:00:00.000Z",
      "cve": "CVE-2018-1000156",
      "id": "msrc_CVE-2018-1000156",
      "initial_release_date": "2020-08-18T00:00:00.000Z",
      "product_status:fixed": "4",
      "product_status:known_affected": "4",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD\u0027s CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.",
      "url": "https://msrc.microsoft.com/csaf/vex/2020/msrc_cve-2018-1000156.json",
      "version": "3"
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-11-04T20:27:29+00:00",
      "cve": "CVE-2018-1000156",
      "id": "CVE-2018-1000156",
      "initial_release_date": "2018-04-05T00:00:00+00:00",
      "product_status:fixed": "104",
      "product_status:known_affected": "1",
      "product_status:known_not_affected": "2",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "patch: Malicious patch files cause ed to execute arbitrary commands",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-1000156.json",
      "version": "3"
    }
  }
}



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
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

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.