cve.bz

CVE-2016-1238

7.8 highEPSS 0.8%

High (7.8). EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
(1) cpan/Archive-Tar/bin/ptar, (2) cpan/Archive-Tar/bin/ptardiff, (3) cpan/Archive-Tar/bin/ptargrep, (4) cpan/CPAN/scripts/cpan, (5) cpan/Digest-SHA/shasum, (6) cpan/Encode/bin/enc2xs, (7) cpan/Encode/bin/encguess, (8) cpan/Encode/bin/piconv, (9) cpan/Encode/bin/ucmlint, (10) cpan/Encode/bin/unidump, (11) cpan/ExtUtils-MakeMaker/bin/instmodsh, (12) cpan/IO-Compress/bin/zipdetails, (13) cpan/JSON-PP/bin/json_pp, (14) cpan/Test-Harness/bin/prove, (15) dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp, (16) dist/Module-CoreList/corelist, (17) ext/Pod-Html/bin/pod2html, (18) utils/c2ph.PL, (19) utils/h2ph.PL, (20) utils/h2xs.PL, (21) utils/libnetcfg.PL, (22) utils/perlbug.PL, (23) utils/perldoc.PL, (24) utils/perlivp.PL, and (25) utils/splain.PL in Perl 5.x before 5.22.3-RC2 and 5.24 before 5.24.1-RC2 do not properly remove . (period) characters from the end of the includes directory array, which might allow local users to gain privileges via a Trojan horse module under the current working directory.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-264 Permissions, Privileges, and Access Controls
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-1238 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-1238?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-1238?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-1238 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
debian:debian_linux8.0
fedoraproject:fedora23
fedoraproject:fedora24
perl:perl1.0.15
perl:perl1.0.16
perl:perl5.000
perl:perl5.000o
perl:perl5.001
perl:perl5.001n
perl:perl5.002
perl:perl5.002_01
perl:perl5.003
perl:perl5.003_01
perl:perl5.003_02
perl:perl5.003_03
perl:perl5.003_04
perl:perl5.003_05
perl:perl5.003_07
perl:perl5.003_08
perl:perl5.003_09
perl:perl5.003_10
perl:perl5.003_11
perl:perl5.003_12
perl:perl5.003_13
perl:perl5.003_14
perl:perl5.003_15
perl:perl5.003_16
perl:perl5.003_17
perl:perl5.003_18
perl:perl5.003_19
perl:perl5.003_20
perl:perl5.003_21
perl:perl5.003_22
perl:perl5.003_23
perl:perl5.003_24
perl:perl5.003_25
perl:perl5.003_26
perl:perl5.003_27
perl:perl5.003_28
perl:perl5.003_90
perl:perl5.003_91
perl:perl5.003_92
perl:perl5.003_93
perl:perl5.003_94
perl:perl5.003_95
perl:perl5.003_96
perl:perl5.003_97
perl:perl5.003_97a
perl:perl5.003_97b
perl:perl5.003_97c
perl:perl5.003_97d
perl:perl5.003_97e
perl:perl5.003_97f
perl:perl5.003_97g
perl:perl5.003_97h
perl:perl5.003_97i
perl:perl5.003_97j
perl:perl5.003_98
perl:perl5.003_99
perl:perl5.003_99a
perl:perl5.004
perl:perl5.004_01
perl:perl5.004_02
perl:perl5.004_03
perl:perl5.004_04
perl:perl5.004_05
perl:perl5.005
perl:perl5.005_01
perl:perl5.005_02
perl:perl5.005_03
perl:perl5.005_04
perl:perl5.6
perl:perl5.6.0
perl:perl5.6.1
perl:perl5.6.2
perl:perl5.7.3
perl:perl5.8
perl:perl5.8.0
perl:perl5.8.1
perl:perl5.8.2
perl:perl5.8.3
perl:perl5.8.4
perl:perl5.8.5
perl:perl5.8.6
perl:perl5.8.7
perl:perl5.8.8
perl:perl5.8.9
perl:perl5.8.9:rc1
perl:perl5.9.0
perl:perl5.9.1
perl:perl5.9.2
perl:perl5.9.3
perl:perl5.9.4
perl:perl5.9.5
perl:perl5.10
perl:perl5.10.0
perl:perl5.10.1
perl:perl5.10.1:rc1
perl:perl5.10.1:rc2
perl:perl5.11.0
perl:perl5.11.1
perl:perl5.11.2
perl:perl5.11.3
perl:perl5.11.4
perl:perl5.11.5
perl:perl5.12.0
perl:perl5.12.0:rc0
perl:perl5.12.0:rc1
perl:perl5.12.0:rc2
perl:perl5.12.0:rc3
perl:perl5.12.0:rc4
perl:perl5.12.0:rc5
perl:perl5.12.1
perl:perl5.12.1:rc0
perl:perl5.12.1:rc1
perl:perl5.12.1:rc2
perl:perl5.12.2
perl:perl5.12.2:rc1
perl:perl5.12.3
perl:perl5.12.3:rc1
perl:perl5.12.3:rc2
perl:perl5.12.3:rc3
perl:perl5.12.4
perl:perl5.12.4:rc1
perl:perl5.12.4:rc2
perl:perl5.12.5
perl:perl5.12.5:rc1
perl:perl5.12.5:rc2
perl:perl5.13.0
perl:perl5.13.1
perl:perl5.13.2
perl:perl5.13.3
perl:perl5.13.4
perl:perl5.13.5
perl:perl5.13.6
perl:perl5.13.7
perl:perl5.13.8
perl:perl5.13.9
perl:perl5.13.10
perl:perl5.13.11
perl:perl5.14.0
perl:perl5.14.0:rc1
perl:perl5.14.0:rc2
perl:perl5.14.0:rc3
perl:perl5.14.1
perl:perl5.14.1:rc1
perl:perl5.14.2
perl:perl5.14.2:rc1
perl:perl5.14.3
perl:perl5.14.3:rc1
perl:perl5.14.3:rc2
perl:perl5.14.4
perl:perl5.14.4:rc1
perl:perl5.14.4:rc2
perl:perl5.15.0
perl:perl5.15.1
perl:perl5.15.2
perl:perl5.15.3
perl:perl5.15.4
perl:perl5.15.5
perl:perl5.15.6
perl:perl5.15.7
perl:perl5.15.8
perl:perl5.15.9
perl:perl5.16.0
perl:perl5.16.0:rc1
perl:perl5.16.0:rc2
perl:perl5.16.1
perl:perl5.16.2
perl:perl5.16.3
perl:perl5.16.3:rc1
perl:perl5.17.0
perl:perl5.17.1
perl:perl5.17.2
perl:perl5.17.3
perl:perl5.17.4
perl:perl5.17.5
perl:perl5.17.6
perl:perl5.17.7
perl:perl5.17.7.0
perl:perl5.17.8
perl:perl5.17.9
perl:perl5.17.10
perl:perl5.17.11
perl:perl5.18.0
perl:perl5.18.0:rc1
perl:perl5.18.0:rc2
perl:perl5.18.0:rc3
perl:perl5.18.0:rc4
perl:perl5.18.1
perl:perl5.18.2
perl:perl5.18.2:rc1
perl:perl5.18.2:rc2
perl:perl5.18.2:rc3
perl:perl5.18.2:rc4
perl:perl5.18.3
perl:perl5.18.3:rc1
perl:perl5.18.3:rc2
perl:perl5.18.4
perl:perl5.19.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7libsys-syslog-perl0.29-1+deb7u1DLA-584-1
Debian7perl5.14.2-21+deb7u4DLA-565-1
Debian8perl5.20.2-3+deb8u6DSA-3628-1
Debian8spamassassin3.4.2-0+deb8u1DLA-1578-1
Debian12, 13, 14perl5.22.2-3DEBIAN-CVE-2016-1238
Ubuntu14.04:LTSlibsys-syslog-perl0.33-1+deb8u1build0.14.04.1UBUNTU-CVE-2016-1238
UbuntuPro:14.04:LTS, Pro:16.04:LTSperlno fix listedUBUNTU-CVE-2016-1238
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 SP1, Linux Enterprise Server for SAP Applications 12 SP1perl5.18.2-11.1SUSE-SU-2016:2263-1
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4spamassassin3.4.2-44.3.1SUSE-SU-2019:1961-1
SUSELinux Enterprise Module for Basesystem 15amavisd-new2.11.1-6.3.1SUSE-SU-2019:0505-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Development Tools 15spamassassin3.4.2-7.4.1SUSE-SU-2019:2011-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4perl5.10.0-64.80.1SUSE-SU-2016:2246-1
openSUSELeap 15.0spamassassin3.4.2-lp150.6.3.1openSUSE-SU-2019:1831-1
openSUSETumbleweedikiwiki3.20200202.3-2.7openSUSE-SU-2024:10860-1
openSUSETumbleweedperl-ExtUtils-MakeMaker7.64-1.1openSUSE-SU-2024:11706-1
openSUSETumbleweedperl-IO-Compress2.213.0-1.1openSUSE-SU-2025:14657-1
openSUSETumbleweedperl-MIME-Charset1.012.2-1.16openSUSE-SU-2024:11162-1
openSUSETumbleweedperl-Test-File1.448-1.5openSUSE-SU-2024:11163-1
Alpinev3.3, v3.4perl5.22.3-r0ALPINE-CVE-2016-1238
Alpinev3.8spamassassin3.4.3-r0ALPINE-CVE-2016-1238
Alpinev3.9, v3.10, v3.11 and 13 morespamassassin3.4.2-r0ALPINE-CVE-2016-1238

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

The following examples will remove '.' from the module path :

RHEL6 and above :

Create a file /usr/local/share/perl5/sitecustomize.pl containing the line "pop @INC if $INC[-1] eq '.';"

RHEL5:

Create a perl module with the same code in a BEGIN block, and use the 'PERL5OPT=-m<module-name>' environment variable to load it before execution of a perl program.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5perlWill not fix
Red Hat Enterprise Linux 6perlWill not fix
Red Hat Enterprise Linux 7perlWill not fix
Red Hat Software Collectionsperl516-perlWill not fix
Red Hat Software Collectionsrh-perl520-perlWill not fix
Red Hat Software Collectionsrh-perl524-perlWill not fix
Red Hat Software Collectionsrh-perl524-perl-CPANWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-1238.

References

Check your stackJSON