CVE-2016-6299
published 2017-04-14CVE-2016-6299: The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file.
PriorityP339high7.8CVSS 3.0
AVLACLPRNUIRSUCHIHAH
EPSS
1.73%
75.3th percentile
The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.09.3CRITICALAV:N/AC:M/Au:N/C:C/I:C/A:C
osv7.8HIGH
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.
GHSA
GHSA-67hf-6rcg-6p33: The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file
ghsa_unreviewed·2022-05-17
CVE-2016-6299 [HIGH] GHSA-67hf-6rcg-6p33: The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file
The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file.
OSV
CVE-2016-6299: The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file
osv·2017-04-14·CVSS 7.8
CVE-2016-6299 [HIGH] CVE-2016-6299: The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file
The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-6299 mock: privilige escalation via mock-scm
bugzilla·2016-09-13·CVSS 7.8
CVE-2016-6299 [HIGH] CVE-2016-6299 mock: privilige escalation via mock-scm
CVE-2016-6299 mock: privilige escalation via mock-scm
It was found that mock's scm plug-in would parse a given spec file with root priviliges. This could allow an attacker who is able to start a build of an rpm with a specially crafted spec file within mock's environment to elevate their priviliges and escape the chroot.
The vulnerable code in scm.py is:
ts = rpm.ts()
rpm_spec = ts.parseSpec(self.spec) # the spec file is parsed as root
self.name = rpm.expandMacro("%{name}")
Discussion:
Acknowledgments:
Name: Florian Weimer (Red Hat)
---
Created mock tracking bugs for this issue:
Affects: fedora-all [bug 1375493]
Affects: epel-all [bug 1375496]
---
distribution-gpg-keys-1.7-1.fc24, mock-1.2.21-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, p
Bugzilla
CVE-2016-6299 mock: privilige escalation via mock-scm [epel-all]
bugzilla·2016-09-13·CVSS 7.8
CVE-2016-6299 [HIGH] CVE-2016-6299 mock: privilige escalation via mock-scm [epel-all]
CVE-2016-6299 mock: privilige escalation via mock-scm [epel-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 EPEL.
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 versions of Fedora E
Bugzilla
CVE-2016-6299 mock: privilige escalation via mock-scm [fedora-all]
bugzilla·2016-09-13·CVSS 7.8
CVE-2016-6299 [HIGH] CVE-2016-6299 mock: privilige escalation via mock-scm [fedora-all]
CVE-2016-6299 mock: privilige escalation via mock-scm [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 versions of Fedora. Whi
http://www.openwall.com/lists/oss-security/2016/09/13/2http://www.securityfocus.com/bid/92948https://bugzilla.redhat.com/show_bug.cgi?id=1375490https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UFC4LU6GYYEVUK6LQ2FKUGMZXRTLLL5A/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VYLMPA5VLLX67DUJ6XLJ2TIW6CX2CFL4/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5PH2YGYWYUAYPHK32SGUZGZXQEBEYNK/http://www.openwall.com/lists/oss-security/2016/09/13/2http://www.securityfocus.com/bid/92948https://bugzilla.redhat.com/show_bug.cgi?id=1375490https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UFC4LU6GYYEVUK6LQ2FKUGMZXRTLLL5A/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VYLMPA5VLLX67DUJ6XLJ2TIW6CX2CFL4/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5PH2YGYWYUAYPHK32SGUZGZXQEBEYNK/
2017-04-14
Published