CVE-2018-6797 Memory corruption in n/a
A crafted regular expression in Perl causes a heap-based buffer overflow, potentially allowing attackers to execute arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-6797?
CVE-2018-6797 is a critical memory corruption vulnerability in Canonical Ubuntu Linux, published on 17 Apr 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.
Weakness: CWE-787
Which versions are affected by CVE-2018-6797?
It affects 5 products.
Products include Canonical Ubuntu Linux, Debian Debian Linux, Perl Perl, Redhat Enterprise Linux Server, Redhat Enterprise Linux Workstation.
How do I fix CVE-2018-6797?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2018-6797 being exploited?
There is no known exploitation of CVE-2018-6797 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as ALPINE-CVE-2018-6797, CLEANSTART-2026-BR63033, DEBIAN-CVE-2018-6797, GHSA-8qqx-9gj6-xx9p, UBUNTU-CVE-2018-6797.