{"id":"UBUNTU-CVE-2018-6797","details":"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.","modified":"2026-04-22T13:18:55.701110Z","published":"2018-04-14T00:00:00Z","related":["USN-3625-1"],"upstream":["CVE-2018-6797"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-6797"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3625-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-6797"}],"affected":[{"package":{"name":"perl","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/perl@5.18.2-2ubuntu1.7+esm5?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.14.2-21build1","5.18.1-4","5.18.1-4build1","5.18.1-5","5.18.2-2","5.18.2-2ubuntu1","5.18.2-2ubuntu1.1","5.18.2-2ubuntu1.3","5.18.2-2ubuntu1.4","5.18.2-2ubuntu1.6","5.18.2-2ubuntu1.7","5.18.2-2ubuntu1.7+esm3","5.18.2-2ubuntu1.7+esm4","5.18.2-2ubuntu1.7+esm5"],"ecosystem_specific":{"binaries":[{"binary_version":"5.18.2-2ubuntu1.7+esm5","binary_name":"libcgi-fast-perl"},{"binary_version":"5.18.2-2ubuntu1.7+esm5","binary_name":"libperl5.18"},{"binary_version":"5.18.2-2ubuntu1.7+esm5","binary_name":"perl"},{"binary_version":"5.18.2-2ubuntu1.7+esm5","binary_name":"perl-base"},{"binary_version":"5.18.2-2ubuntu1.7+esm5","binary_name":"perl-debug"},{"binary_version":"5.18.2-2ubuntu1.7+esm5","binary_name":"perl-modules"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6797.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/perl@5.22.1-9ubuntu0.3?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.22.1-9ubuntu0.3"}]}],"versions":["5.20.2-6","5.22.1-3","5.22.1-4","5.22.1-5","5.22.1-7","5.22.1-8","5.22.1-9","5.22.1-9ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"libperl5.22"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"perl"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"perl-base"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"perl-debug"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"perl-modules-5.22"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6797.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}