HighCVE-2016-1238

    Perl: Privilege Escalation (CVE-2016-1238)

    Published Sources: CVE.org

    What is affected, what to do

    (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.

    Update Apache Software Foundation SpamAssassin to version 3.4.2.

    Affected
    • Debian Linux eq 8.0..8.0
    • Fedora eq 23..23
    • Fedora eq 24..24
    • Perl eq 1.0.15..1.0.15
    • Perl eq 1.0.16..1.0.16
    • Perl eq 5.000..5.000
    • Perl eq 5.000o..5.000o
    • Perl eq 5.001..5.001
    • Perl eq 5.001n..5.001n
    • Perl eq 5.002..5.002
    • Perl eq 5.002_01..5.002_01
    • Perl eq 5.003..5.003
    • Perl eq 5.003_01..5.003_01
    • Perl eq 5.003_02..5.003_02
    • Perl eq 5.003_03..5.003_03
    • Perl eq 5.003_04..5.003_04
    • Perl eq 5.003_05..5.003_05
    • Perl eq 5.003_07..5.003_07
    • Perl eq 5.003_08..5.003_08
    • Perl eq 5.003_09..5.003_09
    • Perl eq 5.003_10..5.003_10
    • Perl eq 5.003_11..5.003_11
    • Perl eq 5.003_12..5.003_12
    • Perl eq 5.003_13..5.003_13
    • Perl eq 5.003_14..5.003_14
    • Perl eq 5.003_15..5.003_15
    • Perl eq 5.003_16..5.003_16
    • Perl eq 5.003_17..5.003_17
    • Perl eq 5.003_18..5.003_18
    • Perl eq 5.003_19..5.003_19
    • Perl eq 5.003_20..5.003_20
    • Perl eq 5.003_21..5.003_21
    • Perl eq 5.003_22..5.003_22
    • Perl eq 5.003_23..5.003_23
    • Perl eq 5.003_24..5.003_24
    • Perl eq 5.003_25..5.003_25
    • Perl eq 5.003_26..5.003_26
    • Perl eq 5.003_27..5.003_27
    • Perl eq 5.003_28..5.003_28
    • Perl eq 5.003_90..5.003_90
    • Perl eq 5.003_91..5.003_91
    • Perl eq 5.003_92..5.003_92
    • Perl eq 5.003_93..5.003_93
    • Perl eq 5.003_94..5.003_94
    • Perl eq 5.003_95..5.003_95
    • Perl eq 5.003_96..5.003_96
    • Perl eq 5.003_97..5.003_97
    • Perl eq 5.003_97a..5.003_97a
    • Perl eq 5.003_97b..5.003_97b
    • Perl eq 5.003_97c..5.003_97c
    • Perl eq 5.003_97d..5.003_97d
    • Perl eq 5.003_97e..5.003_97e
    • Perl eq 5.003_97f..5.003_97f
    • Perl eq 5.003_97g..5.003_97g
    • Perl eq 5.003_97h..5.003_97h
    • Perl eq 5.003_97i..5.003_97i
    • Perl eq 5.003_97j..5.003_97j
    • Perl eq 5.003_98..5.003_98
    • Perl eq 5.003_99..5.003_99
    • Perl eq 5.003_99a..5.003_99a
    • Perl eq 5.004..5.004
    • Perl eq 5.004_01..5.004_01
    • Perl eq 5.004_02..5.004_02
    • Perl eq 5.004_03..5.004_03
    • Perl eq 5.004_04..5.004_04
    • Perl eq 5.004_05..5.004_05
    • Perl eq 5.005..5.005
    • Perl eq 5.005_01..5.005_01
    • Perl eq 5.005_02..5.005_02
    • Perl eq 5.005_03..5.005_03
    • Perl eq 5.005_04..5.005_04
    • Perl eq 5.6..5.6
    • Perl eq 5.6.0..5.6.0
    • Perl eq 5.6.1..5.6.1
    • Perl eq 5.6.2..5.6.2
    • Perl eq 5.7.3..5.7.3
    • Perl eq 5.8..5.8
    • Perl eq 5.8.0..5.8.0
    • Perl eq 5.8.1..5.8.1
    • Perl eq 5.8.2..5.8.2
    • Perl eq 5.8.3..5.8.3
    • Perl eq 5.8.4..5.8.4
    • Perl eq 5.8.5..5.8.5
    • Perl eq 5.8.6..5.8.6
    • Perl eq 5.8.7..5.8.7
    • Perl eq 5.8.8..5.8.8
    • Perl eq 5.8.9..5.8.9
    • Perl eq 5.9.0..5.9.0
    • Perl eq 5.9.1..5.9.1
    • Perl eq 5.9.2..5.9.2
    • Perl eq 5.9.3..5.9.3
    • Perl eq 5.9.4..5.9.4
    • Perl eq 5.9.5..5.9.5
    • Perl eq 5.10..5.10
    • Perl eq 5.10.0..5.10.0
    • Perl eq 5.10.1..5.10.1
    • Perl eq 5.11.0..5.11.0
    • Perl eq 5.11.1..5.11.1
    • Perl eq 5.11.2..5.11.2
    • Perl eq 5.11.3..5.11.3
    • Perl eq 5.11.4..5.11.4
    • Perl eq 5.11.5..5.11.5
    • Perl eq 5.12.0..5.12.0
    • Perl eq 5.12.1..5.12.1
    • Perl eq 5.12.2..5.12.2
    • Perl eq 5.12.3..5.12.3
    • Perl eq 5.12.4..5.12.4
    • Perl eq 5.12.5..5.12.5
    • Perl eq 5.13.0..5.13.0
    • Perl eq 5.13.1..5.13.1
    • Perl eq 5.13.2..5.13.2
    • Perl eq 5.13.3..5.13.3
    • Perl eq 5.13.4..5.13.4
    • Perl eq 5.13.5..5.13.5
    • Perl eq 5.13.6..5.13.6
    • Perl eq 5.13.7..5.13.7
    • Perl eq 5.13.8..5.13.8
    • Perl eq 5.13.9..5.13.9
    • Perl eq 5.13.10..5.13.10
    • Perl eq 5.13.11..5.13.11
    • Perl eq 5.14.0..5.14.0
    • Perl eq 5.14.1..5.14.1
    • Perl eq 5.14.2..5.14.2
    • Perl eq 5.14.3..5.14.3
    • Perl eq 5.14.4..5.14.4
    • Perl eq 5.15.0..5.15.0
    • Perl eq 5.15.1..5.15.1
    • Perl eq 5.15.2..5.15.2
    • Perl eq 5.15.3..5.15.3
    • Perl eq 5.15.4..5.15.4
    • Perl eq 5.15.5..5.15.5
    • Perl eq 5.15.6..5.15.6
    • Perl eq 5.15.7..5.15.7
    • Perl eq 5.15.8..5.15.8
    • Perl eq 5.15.9..5.15.9
    • Perl eq 5.16.0..5.16.0
    • Perl eq 5.16.1..5.16.1
    • Perl eq 5.16.2..5.16.2
    • Perl eq 5.16.3..5.16.3
    • Perl eq 5.17.0..5.17.0
    • Perl eq 5.17.1..5.17.1
    • Perl eq 5.17.2..5.17.2
    • Perl eq 5.17.3..5.17.3
    • Perl eq 5.17.4..5.17.4
    • Perl eq 5.17.5..5.17.5
    • Perl eq 5.17.6..5.17.6
    • Perl eq 5.17.7..5.17.7
    • Perl eq 5.17.7.0..5.17.7.0
    • Perl eq 5.17.8..5.17.8
    • Perl eq 5.17.9..5.17.9
    • Perl eq 5.17.10..5.17.10
    • Perl eq 5.17.11..5.17.11
    • Perl eq 5.18.0..5.18.0
    • Perl eq 5.18.1..5.18.1
    • Perl eq 5.18.2..5.18.2
    • Perl eq 5.18.3..5.18.3
    • Perl eq 5.18.4..5.18.4
    • Perl eq 5.19.0..5.19.0
    • Perl eq 5.19.1..5.19.1
    • Perl eq 5.19.2..5.19.2
    • Perl eq 5.19.3..5.19.3
    • Perl eq 5.19.4..5.19.4
    • Perl eq 5.19.5..5.19.5
    • Perl eq 5.19.6..5.19.6
    • Perl eq 5.19.7..5.19.7
    • Perl eq 5.19.8..5.19.8
    • Perl eq 5.19.9..5.19.9
    • Perl eq 5.19.10..5.19.10
    • Perl eq 5.19.11..5.19.11
    • Perl eq 5.20.0..5.20.0
    • Perl eq 5.20.1..5.20.1
    • Perl eq 5.20.2..5.20.2
    • Perl eq 5.20.3..5.20.3
    • Perl eq 5.21.0..5.21.0
    • Perl eq 5.21.1..5.21.1
    • Perl eq 5.21.2..5.21.2
    • Perl eq 5.21.3..5.21.3
    • Perl eq 5.21.4..5.21.4
    • Perl eq 5.21.5..5.21.5
    • Perl eq 5.21.6..5.21.6
    • Perl eq 5.21.7..5.21.7
    • Perl eq 5.21.8..5.21.8
    • Perl eq 5.21.9..5.21.9
    • Perl eq 5.21.10..5.21.10
    • Perl eq 5.21.11..5.21.11
    • Perl eq 5.22.0..5.22.0
    • Perl eq 5.22.1..5.22.1
    • Perl eq 5.22.2..5.22.2
    • Perl eq 5.22.3..5.22.3
    • Perl eq 5.24.0..5.24.0
    • Perl eq 5.24.1..5.24.1
    • openSUSE Leap eq 15.0..15.0
    • Apache Software Foundation SpamAssassin lt *..3.4.2
    Fixed in
    • Apache Software Foundation SpamAssassin 3.4.2

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    7.8

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: NVD, CVSS v3

    7.8

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: CVE.org

    0.8 %

    EPSS score

    Low — model estimates < 1% exploitation likelihood.

    Source: FIRST EPSS, percentile 55.7

    Show all metrics
    Severity
    High
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    63.82 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    7.8 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    7.8
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    0.8 %
    Low — model estimates < 1% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    55.7
    High — this CVE ranks above the median of all CVEs scored today (rank ≥ 36%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    (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.

    Source: cvelistv5, NVD (NIST)

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    apachespamassassin
    • < 3.4.2
    • 3.4.2
    perlperl
    • 5.20.1
    • 5.21.7
    • 5.14.4
    • 5.13.11
    • 5.004_04
    • 5.004_01
    • 5.13.8
    • 5.19.3
    • 5.18.4
    • 5.003_14
    • 5.16.3
    • 5.8.5
    • 5.24.0
    • 5.18.3
    • 5.003_97d
    • 5.22.1
    • 5.13.0
    • 5.8.9
    • 5.003_04
    • 5.9.2
    • 5.001n
    • 5.003_07
    • 5.12.0
    • 5.004
    • 5.003_91
    • 5.003_93
    • 5.17.3
    • 5.12.4
    • 5.8.3
    • 5.003_92
    • 5.19.6
    • 5.005
    • 5.13.9
    • 5.003_27
    • 5.12.5
    • 5.8.4
    • 5.19.0
    • 5.20.3
    • 5.17.0
    • 5.003_94
    • 5.20.2
    • 5.003_97f
    • 5.003_28
    • 5.14.0
    • 5.16.0
    • 5.003_26
    • 5.14.2
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxdebiandebian_linux8.0
    Linuxopensuseleap15.0
    Otherfedoraprojectfedora23
    Otherfedoraprojectfedora24

    References & sources

    • security.gentoo.orgGLSA-201701-75Vendor advisory, x_refsource_GENTOO, Third-party advisory
    • security.gentoo.orgGLSA-201812-07Vendor advisory, x_refsource_GENTOO, Third-party advisory
    • perl5.git.perl.orgperl.git/commit/cee96d52c39b1e7b36e1c62d38bcd8d86e9a41abx_refsource_CONFIRM, Issue tracking
    • securitytracker.com1036440Vulnerability database, x_refsource_SECTRACK, Third-party advisory, Vulnerability database
    • debian.orgDSA-3628Vendor advisory, x_refsource_DEBIAN, Third-party advisory
    • lists.apache.org[announce] 20180916 [SECURITY] Apache SpamAssassin 3.4.2 resolves CVE-2017-15705, CVE-2016-1238, CVE-2018-11780 & CVE-2018-11781Mailing list, x_refsource_MLIST
    • lists.fedoraproject.orgFEDORA-2016-6ec2009080Vendor advisory, x_refsource_FEDORA
    • nntp.perl.org[perl.perl5.porters] 20160725 CVE-2016-1238: Important unsafe module load path flawMailing list, x_refsource_MLIST, Third-party advisory
    • lists.fedoraproject.orgFEDORA-2016-e9e5c081d4Vendor advisory, x_refsource_FEDORA
    • h20566.www2.hpe.comportal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731x_refsource_CONFIRM, Third-party advisory
    • lists.fedoraproject.orgFEDORA-2016-dd20a4631aVendor advisory, x_refsource_FEDORA
    • securityfocus.com92136Vulnerability database, x_refsource_BID, Third-party advisory, Vulnerability database
    • lists.debian.org[debian-lts-announce] 20181113 [SECURITY] [DLA 1578-1] spamassassin security updateMailing list, x_refsource_MLIST, Mailing list, Third-party advisory
    • rt.perl.orgPublic/Bug/Display.html?id=127834x_refsource_CONFIRM, Permissions required
    • lists.opensuse.orgopenSUSE-SU-2019:1831Vendor advisory, x_refsource_SUSE, Third-party advisory
    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2016-1238
    <a href="https://intel.neosec.eu/en/cve/CVE-2016-1238"><img src="https://intel.neosec.eu/badge/cve/CVE-2016-1238.svg?lang=en" alt="CVE-2016-1238 – NEOSEC Intel" height="20"></a>