Improper Input Validation Affecting patch package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
5.52% (92nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PATCH-2368547
  • published26 Jan 2022
  • disclosed6 Apr 2018
  • creditUnknown

Introduced: 6 Apr 2018

CVE-2018-1000156  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

There is no fixed version for patch.

Overview

Affected versions of this package are vulnerable to Improper Input Validation. 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.

References

CVSS Base Scores

version 3.1