CVE-2013-6435
published 2014-12-16CVE-2013-6435: Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbitrary code via a crafted RPM file whose installation extracts the contents to…
PriorityP349high7.6CVSS 2.0
AVNACHAuNCCICAC
EPSS
7.67%
93.9th percentile
Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbitrary code via a crafted RPM file whose installation extracts the contents to temporary files before validating the signature, as demonstrated by installing a file in the /etc/cron.d directory.
Affected
109 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | rpm | < rpm 4.11.3-1.1 (bookworm) | rpm 4.11.3-1.1 (bookworm) |
| rpm | rpm | <= 4.11.1 | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
| rpm | rpm | — | — |
CVSS provenance
nvdv2.07.6HIGHAV:N/AC:H/Au:N/C:C/I:C/A:C
osv7.6HIGH
vendor_debian7.6HIGH
vendor_redhat7.6HIGH
vendor_ubuntu7.6HIGH
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
RPM vulnerabilities
vendor_ubuntu·2015-01-19·CVSS 7.6
CVE-2013-6435 [HIGH] RPM vulnerabilities
Title: RPM vulnerabilities
Summary: Several security issues were fixed in RPM.
Florian Weimer discovered that RPM incorrectly handled temporary files. A
local attacker could use this issue to execute arbitrary code.
(CVE-2013-6435)
Florian Weimer discovered that RPM incorrectly handled certain CPIO
headers. If a user or automated system were tricked into installing a
malicious package file, a remote attacker could use this issue to cause RPM
to crash, resulting in a denial of service, or possibly execute arbitrary
code. (CVE-2014-8118)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
rpm: race condition during the installation process
vendor_redhat·2014-12-09·CVSS 7.6
CVE-2013-6435 [HIGH] CWE-367 rpm: race condition during the installation process
rpm: race condition during the installation process
Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbitrary code via a crafted RPM file whose installation extracts the contents to temporary files before validating the signature, as demonstrated by installing a file in the /etc/cron.d directory.
It was found that RPM wrote file contents to the target installation directory under a temporary name, and verified its cryptographic signature only after the temporary file has been written completely. Under certain conditions, the system interprets the unverified temporary file contents and extracts commands from it. This could allow an attacker to modify signed RPM files in such a way that they would execute code chosen by the attacker during package installation.
Debian
CVE-2013-6435: rpm - Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbi...
vendor_debian·2013·CVSS 7.6
CVE-2013-6435 [HIGH] CVE-2013-6435: rpm - Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbi...
Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbitrary code via a crafted RPM file whose installation extracts the contents to temporary files before validating the signature, as demonstrated by installing a file in the /etc/cron.d directory.
Scope: local
bookworm: resolved (fixed in 4.11.3-1.1)
bullseye: resolved (fixed in 4.11.3-1.1)
forky: resolved (fixed in 4.11.3-1.1)
sid: resolved (fixed in 4.11.3-1.1)
trixie: resolved (fixed in 4.11.3-1.1)
GHSA
GHSA-qww5-w98g-66q7: Race condition in RPM 4
ghsa_unreviewed·2022-05-14
CVE-2013-6435 [HIGH] CWE-74 GHSA-qww5-w98g-66q7: Race condition in RPM 4
Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbitrary code via a crafted RPM file whose installation extracts the contents to temporary files before validating the signature, as demonstrated by installing a file in the /etc/cron.d directory.
OSV
rpm vulnerabilities
osv·2015-01-19·CVSS 7.6
CVE-2013-6435 [HIGH] rpm vulnerabilities
rpm vulnerabilities
Florian Weimer discovered that RPM incorrectly handled temporary files. A
local attacker could use this issue to execute arbitrary code.
(CVE-2013-6435)
Florian Weimer discovered that RPM incorrectly handled certain CPIO
headers. If a user or automated system were tricked into installing a
malicious package file, a remote attacker could use this issue to cause RPM
to crash, resulting in a denial of service, or possibly execute arbitrary
code. (CVE-2014-8118)
OSV
CVE-2013-6435: Race condition in RPM 4
osv·2014-12-16·CVSS 7.6
CVE-2013-6435 [HIGH] CVE-2013-6435: Race condition in RPM 4
Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbitrary code via a crafted RPM file whose installation extracts the contents to temporary files before validating the signature, as demonstrated by installing a file in the /etc/cron.d directory.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2014-8118 CVE-2013-6435 rpm: various flaws [fedora-all]
bugzilla·2014-12-09·CVSS 7.6
CVE-2014-8118 [HIGH] CVE-2014-8118 CVE-2013-6435 rpm: various flaws [fedora-all]
CVE-2014-8118 CVE-2013-6435 rpm: various flaws [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. While only
Bugzilla
CVE-2013-6435 rpm: race condition during the installation process
bugzilla·2013-12-10·CVSS 7.6
CVE-2013-6435 [HIGH] CVE-2013-6435 rpm: race condition during the installation process
CVE-2013-6435 rpm: race condition during the installation process
IssueDescription:
It was found that RPM wrote file contents to the target installation directory under a temporary name, and verified its cryptographic signature only after the temporary file has been written completely. Under certain conditions, the system interprets the unverified temporary file contents and extracts commands from it. This could allow an attacker to modify signed RPM files in such a way that they would execute code chosen by the attacker during package installation.
Acknowledgements:
This issue was discovered by Florian Weimer of the Red Hat Product Security Team.
Discussion:
Created attachment 956207
rpm-4.8.0-CVE-2013-6435.patch (version without umask)
Proposed patch for RPM 4.8.
This is based on
http://advisories.mageia.org/MGASA-2014-0529.htmlhttp://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705http://rhn.redhat.com/errata/RHSA-2014-1974.htmlhttp://rhn.redhat.com/errata/RHSA-2014-1975.htmlhttp://rhn.redhat.com/errata/RHSA-2014-1976.htmlhttp://www.debian.org/security/2015/dsa-3129http://www.mandriva.com/security/advisories?name=MDVSA-2014:251http://www.mandriva.com/security/advisories?name=MDVSA-2015:056http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.htmlhttp://www.securityfocus.com/bid/71558https://bugzilla.redhat.com/show_bug.cgi?id=1039811https://security.gentoo.org/glsa/201811-22https://securityblog.redhat.com/2014/12/10/analysis-of-the-cve-2013-6435-flaw-in-rpm/http://advisories.mageia.org/MGASA-2014-0529.htmlhttp://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705http://rhn.redhat.com/errata/RHSA-2014-1974.htmlhttp://rhn.redhat.com/errata/RHSA-2014-1975.htmlhttp://rhn.redhat.com/errata/RHSA-2014-1976.htmlhttp://www.debian.org/security/2015/dsa-3129http://www.mandriva.com/security/advisories?name=MDVSA-2014:251http://www.mandriva.com/security/advisories?name=MDVSA-2015:056http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.htmlhttp://www.securityfocus.com/bid/71558https://bugzilla.redhat.com/show_bug.cgi?id=1039811https://security.gentoo.org/glsa/201811-22https://securityblog.redhat.com/2014/12/10/analysis-of-the-cve-2013-6435-flaw-in-rpm/
2014-12-16
Published