CVE-2016-6185
published 2016-08-02CVE-2016-6185: The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which might allow local users to execute…
PriorityP337high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.79%
52.1th percentile
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which might allow local users to execute arbitrary code via a Trojan horse library under the current working directory.
Affected
19 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | perl | < perl 5.22.2-2 (bookworm) | perl 5.22.2-2 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| oracle | solaris | — | — |
| oracle | solaris | — | — |
| perl | perl | >= 0 < 5.22.2-2 | 5.22.2-2 |
| perl | perl | >= 0 < 5.22.2-2 | 5.22.2-2 |
| perl | perl | >= 0 < 5.22.2-2 | 5.22.2-2 |
| perl | perl | >= 0 < 5.22.2-2 | 5.22.2-2 |
| perl | perl | >= 0 < 5.18.2-2ubuntu1.4 | 5.18.2-2ubuntu1.4 |
| perl | perl | >= 0 < 5.22.1-9ubuntu0.3 | 5.22.1-9ubuntu0.3 |
| perl | perl | >= 5.23.0 < 5.24.1 | 5.24.1 |
| perl | perl | >= 5.25.0 < 5.25.3 | 5.25.3 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Perl vulnerabilities
vendor_ubuntu·2018-04-17·CVSS 7.5
CVE-2015-8853 [HIGH] Perl vulnerabilities
Title: Perl vulnerabilities
Summary: Several security issues were fixed in Perl.
USN-3625-1 fixed a vulnerability in Perl. This update provides
the corresponding update for Ubuntu 12.04 ESM.
Original advisory details:
It was discovered that Perl incorrectly handled certain regular
expressions. An attacker could possibly use this issue to cause Perl to
hang, resulting in a denial of service. (CVE-2015-8853)
It was discovered that Perl incorrectly loaded libraries from the current
working directory. A local attacker could possibly use this issue to
execute arbitrary code. (CVE-2016-6185)
It was discovered that Perl incorrectly handled the rmtree and remove_tree
functions. A local attacker could possibly use this issue to set the mode
on arbitrary files. (CVE-2017-6512)
GwanYeong Kim d
Ubuntu
Perl vulnerabilities
vendor_ubuntu·2018-04-16·CVSS 7.5
CVE-2015-8853 [HIGH] Perl vulnerabilities
Title: Perl vulnerabilities
Summary: Several security issues were fixed in Perl.
It was discovered that Perl incorrectly handled certain regular
expressions. An attacker could possibly use this issue to cause Perl to
hang, resulting in a denial of service. This issue only affected Ubuntu
14.04 LTS. (CVE-2015-8853)
It was discovered that Perl incorrectly loaded libraries from the current
working directory. A local attacker could possibly use this issue to
execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and
Ubuntu 16.04 LTS. (CVE-2016-6185)
It was discovered that Perl incorrectly handled the rmtree and remove_tree
functions. A local attacker could possibly use this issue to set the mode
on arbitrary files. This issue only affected Ubuntu 14.04 LTS and Ubuntu
16.04 LTS.
Red Hat
perl: XSLoader loads relative paths not included in @INC
vendor_redhat·2016-06-30·CVSS 7.8
CVE-2016-6185 [HIGH] perl: XSLoader loads relative paths not included in @INC
perl: XSLoader loads relative paths not included in @INC
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which might allow local users to execute arbitrary code via a Trojan horse library under the current working directory.
Package: perl (Red Hat Enterprise Linux 5) - Will not fix
Package: perl (Red Hat Enterprise Linux 6) - Will not fix
Package: perl (Red Hat Enterprise Linux 7) - Will not fix
Package: rh-perl520-perl (Red Hat Software Collections) - Will not fix
Package: rh-perl524-perl (Red Hat Software Collections) - Will not fix
Debian
CVE-2016-6185: perl - The XSLoader::load method in XSLoader in Perl does not properly locate .so files...
vendor_debian·2016·CVSS 7.8
CVE-2016-6185 [HIGH] CVE-2016-6185: perl - The XSLoader::load method in XSLoader in Perl does not properly locate .so files...
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which might allow local users to execute arbitrary code via a Trojan horse library under the current working directory.
Scope: local
bookworm: resolved (fixed in 5.22.2-2)
bullseye: resolved (fixed in 5.22.2-2)
forky: resolved (fixed in 5.22.2-2)
sid: resolved (fixed in 5.22.2-2)
trixie: resolved (fixed in 5.22.2-2)
GHSA
GHSA-6f2m-6xw2-h922: The XSLoader::load method in XSLoader in Perl does not properly locate
ghsa_unreviewed·2022-05-13
CVE-2016-6185 [HIGH] GHSA-6f2m-6xw2-h922: The XSLoader::load method in XSLoader in Perl does not properly locate
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which might allow local users to execute arbitrary code via a Trojan horse library under the current working directory.
OSV
perl vulnerabilities
osv·2018-04-16·CVSS 7.5
CVE-2015-8853 [HIGH] perl vulnerabilities
perl vulnerabilities
It was discovered that Perl incorrectly handled certain regular
expressions. An attacker could possibly use this issue to cause Perl to
hang, resulting in a denial of service. This issue only affected Ubuntu
14.04 LTS. (CVE-2015-8853)
It was discovered that Perl incorrectly loaded libraries from the current
working directory. A local attacker could possibly use this issue to
execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and
Ubuntu 16.04 LTS. (CVE-2016-6185)
It was discovered that Perl incorrectly handled the rmtree and remove_tree
functions. A local attacker could possibly use this issue to set the mode
on arbitrary files. This issue only affected Ubuntu 14.04 LTS and Ubuntu
16.04 LTS. (CVE-2017-6512)
Brian Carpenter discovered that Perl incorre
OSV
CVE-2016-6185: The XSLoader::load method in XSLoader in Perl does not properly locate
osv·2016-08-02·CVSS 7.8
CVE-2016-6185 [HIGH] CVE-2016-6185: The XSLoader::load method in XSLoader in Perl does not properly locate
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which might allow local users to execute arbitrary code via a Trojan horse library under the current working directory.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-6185 perl: XSLoader loads relative paths not included in @INC
bugzilla·2016-07-11·CVSS 7.8
CVE-2016-6185 [HIGH] CVE-2016-6185 perl: XSLoader loads relative paths not included in @INC
CVE-2016-6185 perl: XSLoader loads relative paths not included in @INC
An arbitrary code execution can be achieved if loading code from untrusted current working directory despite the '.' is removed from @INC. Vulnerability is in XSLoader that uses caller() information to locate .so file to load. If malicious attacker creates directory named `(eval 1)` with malicious binary file in it, it will be loaded if the package calling XSLoader is in parent directory.
CVE assignment:
http://seclists.org/oss-sec/2016/q3/28
Upstream bug:
https://rt.cpan.org/Public/Bug/Display.html?id=115808
Upstream patch:
http://perl5.git.perl.org/perl.git/commitdiff/08e3451d7
Discussion:
Created perl tracking bugs for this issue:
Affects: fedora-all [bug 1354387]
---
perl-5.20.3-332.fc22 has been pushed
Bugzilla
CVE-2016-6185 perl: XSLoader loads relative paths not included in @INC [fedora-all]
bugzilla·2016-07-11·CVSS 7.8
CVE-2016-6185 [HIGH] CVE-2016-6185 perl: XSLoader loads relative paths not included in @INC [fedora-all]
CVE-2016-6185 perl: XSLoader loads relative paths not included in @INC [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versio
http://perl5.git.perl.org/perl.git/commitdiff/08e3451d7http://www.debian.org/security/2016/dsa-3628http://www.openwall.com/lists/oss-security/2016/07/07/1http://www.openwall.com/lists/oss-security/2016/07/08/5http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.htmlhttp://www.securityfocus.com/bid/91685http://www.securitytracker.com/id/1036260https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5RFDMASVZLFZYBB2GNTZXU6I76E4NA4V/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITYZJXQH24X2F2LAOQEQAC5KXLYJTJ76/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PRIPTDA6XINBVEJXI2NGLKVEINBREHTN/https://rt.cpan.org/Public/Bug/Display.html?id=115808https://security.gentoo.org/glsa/201701-75https://usn.ubuntu.com/3625-1/https://usn.ubuntu.com/3625-2/http://perl5.git.perl.org/perl.git/commitdiff/08e3451d7http://www.debian.org/security/2016/dsa-3628http://www.openwall.com/lists/oss-security/2016/07/07/1http://www.openwall.com/lists/oss-security/2016/07/08/5http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.htmlhttp://www.securityfocus.com/bid/91685http://www.securitytracker.com/id/1036260https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5RFDMASVZLFZYBB2GNTZXU6I76E4NA4V/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITYZJXQH24X2F2LAOQEQAC5KXLYJTJ76/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PRIPTDA6XINBVEJXI2NGLKVEINBREHTN/https://rt.cpan.org/Public/Bug/Display.html?id=115808https://security.gentoo.org/glsa/201701-75https://usn.ubuntu.com/3625-1/https://usn.ubuntu.com/3625-2/
2016-08-02
Published