Vulnerabilities / CVE-2018-18311

critical

CVE-2018-18311

perl: Integer overflow leading to buffer overflow in Perl_my_setenv()

Published Modified CWE 190, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (high), Amazon (high), Oracle (high), Ubuntu (medium).

Description

Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 1.0perl5.24.1-3.ph1
Photon OS 2.0perl5.24.1-7.ph2
Photon OS 3.0perl5.28.0-3.ph3
alpine 3.10perl5.26.3-r0
alpine 3.11perl5.26.3-r0
alpine 3.12perl5.26.3-r0
alpine 3.13perl5.26.3-r0
alpine 3.14perl5.26.3-r0
alpine 3.15perl5.26.3-r0
alpine 3.16perl5.26.3-r0
alpine 3.17perl5.26.3-r0
alpine 3.18perl5.26.3-r0
Show all 143 entries from 43 sources
SourcePackageFixed in
Photon OS 1.0perl5.24.1-3.ph1
Photon OS 2.0perl5.24.1-7.ph2
Photon OS 3.0perl5.28.0-3.ph3
alpine 3.10perl5.26.3-r0
alpine 3.11perl5.26.3-r0
alpine 3.12perl5.26.3-r0
alpine 3.13perl5.26.3-r0
alpine 3.14perl5.26.3-r0
alpine 3.15perl5.26.3-r0
alpine 3.16perl5.26.3-r0
alpine 3.17perl5.26.3-r0
alpine 3.18perl5.26.3-r0
alpine 3.19perl5.26.3-r0
alpine 3.20perl5.26.3-r0
alpine 3.21perl5.26.3-r0
alpine 3.22perl5.26.3-r0
alpine 3.23perl5.26.3-r0
alpine 3.24perl5.26.3-r0
alpine 3.6perl5.24.4-r2
alpine 3.7perl5.26.3-r0
alpine 3.8perl5.26.3-r0
alpine 3.9perl5.26.3-r0
alpine edgeperl5.26.3-r0
amazon linux 1perl4:5.16.3-294.43.amzn1
amazon linux 1perl-CPAN1.9800-294.43.amzn1
amazon linux 1perl-ExtUtils-CBuilder1:0.28.2.6-294.43.amzn1
amazon linux 1perl-ExtUtils-Embed1.30-294.43.amzn1
amazon linux 1perl-ExtUtils-Install1.58-294.43.amzn1
amazon linux 1perl-IO-Zlib1:1.10-294.43.amzn1
amazon linux 1perl-Locale-Maketext-Simple1:0.21-294.43.amzn1
amazon linux 1perl-Module-CoreList1:2.76.02-294.43.amzn1
amazon linux 1perl-Module-Loaded1:0.08-294.43.amzn1
amazon linux 1perl-Object-Accessor1:0.42-294.43.amzn1
amazon linux 1perl-Package-Constants1:0.02-294.43.amzn1
amazon linux 1perl-Pod-Escapes1:1.04-294.43.amzn1
amazon linux 1perl-Time-Piece1.20.1-294.43.amzn1
amazon linux 1perl-core5.16.3-294.43.amzn1
amazon linux 1perl-debuginfo4:5.16.3-294.43.amzn1
amazon linux 1perl-devel4:5.16.3-294.43.amzn1
amazon linux 1perl-libs4:5.16.3-294.43.amzn1
amazon linux 1perl-macros4:5.16.3-294.43.amzn1
amazon linux 1perl-tests4:5.16.3-294.43.amzn1
amazon linux 2perl4:5.16.3-294.amzn2
amazon linux 2perl-CPAN1.9800-294.amzn2
amazon linux 2perl-ExtUtils-CBuilder1:0.28.2.6-294.amzn2
amazon linux 2perl-ExtUtils-Embed1.30-294.amzn2
amazon linux 2perl-ExtUtils-Install1.58-294.amzn2
amazon linux 2perl-IO-Zlib1:1.10-294.amzn2
amazon linux 2perl-Locale-Maketext-Simple1:0.21-294.amzn2
amazon linux 2perl-Module-CoreList1:2.76.02-294.amzn2
amazon linux 2perl-Module-Loaded1:0.08-294.amzn2
amazon linux 2perl-Object-Accessor1:0.42-294.amzn2
amazon linux 2perl-Package-Constants1:0.02-294.amzn2
amazon linux 2perl-Pod-Escapes1:1.04-294.amzn2
amazon linux 2perl-Time-Piece1.20.1-294.amzn2
amazon linux 2perl-core5.16.3-294.amzn2
amazon linux 2perl-debuginfo4:5.16.3-294.amzn2
amazon linux 2perl-devel4:5.16.3-294.amzn2
amazon linux 2perl-libs4:5.16.3-294.amzn2
amazon linux 2perl-macros4:5.16.3-294.amzn2
amazon linux 2perl-tests4:5.16.3-294.amzn2
debian 11perl5.28.1-1
debian 12perl5.28.1-1
debian 13perl5.28.1-1
debian 14perl5.28.1-1
debian 8perl5.20.2-3+deb8u12
debian 9perl5.24.1-3+deb9u5
echoperl5.28.1-1
Oracle Linux 7perl4:5.16.3-294.el7_6
Oracle Linux 7perl-CPAN1.9800-294.el7_6
Oracle Linux 7perl-ExtUtils-CBuilder1:0.28.2.6-294.el7_6
Oracle Linux 7perl-ExtUtils-Embed1.30-294.el7_6
Oracle Linux 7perl-ExtUtils-Install1.58-294.el7_6
Oracle Linux 7perl-IO-Zlib1:1.10-294.el7_6
Oracle Linux 7perl-Locale-Maketext-Simple1:0.21-294.el7_6
Oracle Linux 7perl-Module-CoreList1:2.76.02-294.el7_6
Oracle Linux 7perl-Module-Loaded1:0.08-294.el7_6
Oracle Linux 7perl-Object-Accessor1:0.42-294.el7_6
Oracle Linux 7perl-Package-Constants1:0.02-294.el7_6
Oracle Linux 7perl-Pod-Escapes1:1.04-294.el7_6
Oracle Linux 7perl-Time-Piece1.20.1-294.el7_6
Oracle Linux 7perl-core5.16.3-294.el7_6
Oracle Linux 7perl-devel4:5.16.3-294.el7_6
Oracle Linux 7perl-libs4:5.16.3-294.el7_6
Oracle Linux 7perl-macros4:5.16.3-294.el7_6
Oracle Linux 7perl-tests4:5.16.3-294.el7_6
Red Hatperlno fix listed
Red Hatperl-Archive-Extractno fix listed
Red Hatperl-Archive-Tarno fix listed
Red Hatperl-CGIno fix listed
Red Hatperl-CPANno fix listed
Red Hatperl-CPANPLUSno fix listed
Red Hatperl-Compress-Raw-Bzip2no fix listed
Red Hatperl-Compress-Raw-Zlibno fix listed
Red Hatperl-Compress-Zlibno fix listed
Red Hatperl-Digest-SHAno fix listed
Red Hatperl-ExtUtils-CBuilderno fix listed
Red Hatperl-ExtUtils-Embedno fix listed
Red Hatperl-ExtUtils-MakeMakerno fix listed
Red Hatperl-ExtUtils-ParseXSno fix listed
Red Hatperl-File-Fetchno fix listed
Red Hatperl-IO-Compress-Baseno fix listed
Red Hatperl-IO-Compress-Bzip2no fix listed
Red Hatperl-IO-Compress-Zlibno fix listed
Red Hatperl-IO-Zlibno fix listed
Red Hatperl-IPC-Cmdno fix listed
Red Hatperl-Locale-Maketext-Simpleno fix listed
Red Hatperl-Log-Messageno fix listed
Red Hatperl-Log-Message-Simpleno fix listed
Red Hatperl-Module-Buildno fix listed
Red Hatperl-Module-CoreListno fix listed
Red Hatperl-Module-Loadno fix listed
Red Hatperl-Module-Load-Conditionalno fix listed
Red Hatperl-Module-Loadedno fix listed
Red Hatperl-Module-Pluggableno fix listed
Red Hatperl-Object-Accessorno fix listed
Red Hatperl-Package-Constantsno fix listed
Red Hatperl-Params-Checkno fix listed
Red Hatperl-Parse-CPAN-Metano fix listed
Red Hatperl-Pod-Escapesno fix listed
Red Hatperl-Pod-Simpleno fix listed
Red Hatperl-Term-UIno fix listed
Red Hatperl-Test-Harnessno fix listed
Red Hatperl-Test-Simpleno fix listed
Red Hatperl-Time-HiResno fix listed
Red Hatperl-Time-Pieceno fix listed
Red Hatperl-coreno fix listed
Red Hatperl-develno fix listed
Red Hatperl-libsno fix listed
Red Hatperl-parentno fix listed
Red Hatperl-suidperlno fix listed
Red Hatperl-versionno fix listed
Red Hatredhat-virtualization-host-image-updateno fix listed
Red Hatrhvm-applianceno fix listed
root.io debian 11rootio-perl5.28.1-1
root.io debian 12rootio-perl5.28.1-1
ubuntu 14.04perl5.18.2-2ubuntu1.7
ubuntu 14.04-ESMperl5.18.2-2ubuntu1.7
ubuntu 16.04perl5.22.1-9ubuntu0.6
ubuntu 16.04-ESMperl5.22.1-9ubuntu0.6
ubuntu 18.04perl5.26.1-6ubuntu0.3
ubuntu 18.04-ESMperl5.26.1-6ubuntu0.3
ubuntu 18.10perl5.26.2-7ubuntu0.1

References

All 35 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.