CVE-2015-1418 Command injection in n/a

High 7.8 Published Updated

Remote attackers can execute arbitrary commands via crafted patch files due to improper handling of exclamation marks in the ed script function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2015-1418?

CVE-2015-1418 is a high-severity command injection vulnerability in Freebsd Freebsd, published on 5 Feb 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

The do_ed_script function in pch.c in GNU patch through 2.7.6, and patch in FreeBSD 10.1 before 10.1-RELEASE-p17, 10.2 before 10.2-BETA2-p3, 10.2-RC1 before 10.2-RC1-p2, and 0.2-RC2 before 10.2-RC2-p1, allows remote attackers to execute arbitrary commands via a crafted patch file, because a '!' character can be passed to the ed program.

Weakness: CWE-200

Which versions are affected by CVE-2015-1418?

It affects 1 product.

Products include Freebsd Freebsd.

How do I fix CVE-2015-1418?

No fix has been published for CVE-2015-1418 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2015-1418 being exploited?

There is no known exploitation of CVE-2015-1418 in the wild and no public exploit code.

All Freebsd Freebsd vulnerabilities

Sources

Also known as GHSA-f7qg-x7m8-x3jw.

Is CVE-2015-1418 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free