CWE-362
Allowed-with-ReviewConcurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Abstraction: Class · Status: Draft
The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
2926 vulnerabilities reference this CWE, most recent first.
GHSA-H89X-P6MF-35PX
Vulnerability from github – Published: 2022-05-01 18:40 – Updated: 2022-05-01 18:40Race condition in the Remote Procedure Call kernel module (rpcmod) in Sun Solaris 8 through 10 allows local users to cause a denial of service (NULL dereference and panic) via unspecified vectors.
{
"affected": [],
"aliases": [
"CVE-2007-6180"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-11-30T00:46:00Z",
"severity": "HIGH"
},
"details": "Race condition in the Remote Procedure Call kernel module (rpcmod) in Sun Solaris 8 through 10 allows local users to cause a denial of service (NULL dereference and panic) via unspecified vectors.",
"id": "GHSA-h89x-p6mf-35px",
"modified": "2022-05-01T18:40:20Z",
"published": "2022-05-01T18:40:20Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-6180"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/38718"
},
{
"type": "WEB",
"url": "http://osvdb.org/40821"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27831"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/28057"
},
{
"type": "WEB",
"url": "http://sunsolve.sun.com/search/document.do?assetkey=1-26-103083-1"
},
{
"type": "WEB",
"url": "http://sunsolve.sun.com/search/document.do?assetkey=1-66-200661-1"
},
{
"type": "WEB",
"url": "http://support.avaya.com/elmodocs2/security/ASA-2007-508.htm"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26627"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1019011"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/4035"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-H8GR-59QR-MXM6
Vulnerability from github – Published: 2022-05-17 05:41 – Updated: 2022-05-17 05:41Race condition in the createOutputFile function in logrotate.c in logrotate 3.7.9 and earlier allows local users to read log data by opening a file before the intended permissions are in place.
{
"affected": [],
"aliases": [
"CVE-2011-1098"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2011-03-30T22:55:00Z",
"severity": "LOW"
},
"details": "Race condition in the createOutputFile function in logrotate.c in logrotate 3.7.9 and earlier allows local users to read log data by opening a file before the intended permissions are in place.",
"id": "GHSA-h8gr-59qr-mxm6",
"modified": "2022-05-17T05:41:39Z",
"published": "2022-05-17T05:41:39Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2011-1098"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2011:0407"
},
{
"type": "WEB",
"url": "https://access.redhat.com/security/cve/CVE-2011-1098"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=680798"
},
{
"type": "WEB",
"url": "http://lists.fedoraproject.org/pipermail/package-announce/2011-April/057845.html"
},
{
"type": "WEB",
"url": "http://lists.fedoraproject.org/pipermail/package-announce/2011-March/056992.html"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/16"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/17"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/18"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/19"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/22"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/24"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/25"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/26"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/27"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/28"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/29"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/30"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/31"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/32"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/04/33"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/05/4"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/05/6"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/05/8"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/06/3"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/06/4"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/06/5"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/06/6"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/07/11"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/07/5"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/07/6"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/08/5"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/10/2"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/10/3"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/10/6"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/10/7"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/11/3"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/11/5"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/14/26"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2011/03/23/11"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/43955"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2011:065"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2011-0407.html"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2011/0791"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2011/0872"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2011/0961"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-H8RM-X4MW-H3WP
Vulnerability from github – Published: 2023-09-27 15:30 – Updated: 2024-04-04 07:54Vulnerability of mutex management in the bone voice ID trusted application (TA) module. Successful exploitation of this vulnerability may cause the bone voice ID feature to be unavailable.
{
"affected": [],
"aliases": [
"CVE-2023-41306"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-09-27T15:19:28Z",
"severity": "LOW"
},
"details": "Vulnerability of mutex management in the bone voice ID trusted application (TA) module. Successful exploitation of this vulnerability may cause the bone voice ID feature to be unavailable.",
"id": "GHSA-h8rm-x4mw-h3wp",
"modified": "2024-04-04T07:54:10Z",
"published": "2023-09-27T15:30:37Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-41306"
},
{
"type": "WEB",
"url": "https://consumer.huawei.com/en/support/bulletin/2023/9"
},
{
"type": "WEB",
"url": "https://device.harmonyos.com/en/docs/security/update/security-bulletins-202309-0000001638925158"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
]
}
GHSA-H8W2-9W2W-GM8F
Vulnerability from github – Published: 2022-05-13 01:52 – Updated: 2022-05-13 01:52An issue was discovered in certain Apple products. iOS before 11.3 is affected. macOS before 10.13.4 is affected. The issue involves the "iCloud Drive" component. A race condition allows attackers to execute arbitrary code in a privileged context via a crafted app.
{
"affected": [],
"aliases": [
"CVE-2018-4151"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2018-04-03T06:29:00Z",
"severity": "HIGH"
},
"details": "An issue was discovered in certain Apple products. iOS before 11.3 is affected. macOS before 10.13.4 is affected. The issue involves the \"iCloud Drive\" component. A race condition allows attackers to execute arbitrary code in a privileged context via a crafted app.",
"id": "GHSA-h8w2-9w2w-gm8f",
"modified": "2022-05-13T01:52:36Z",
"published": "2022-05-13T01:52:36Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-4151"
},
{
"type": "WEB",
"url": "https://support.apple.com/HT208692"
},
{
"type": "WEB",
"url": "https://support.apple.com/HT208693"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/103581"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id/1040604"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id/1040608"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-H967-R8FQ-H9X2
Vulnerability from github – Published: 2022-05-14 02:13 – Updated: 2022-05-14 02:13Race condition in resolver.c in named in ISC BIND 9.9.8 before 9.9.8-P2 and 9.10.3 before 9.10.3-P2 allows remote attackers to cause a denial of service (INSIST assertion failure and daemon exit) via unspecified vectors.
{
"affected": [],
"aliases": [
"CVE-2015-8461"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2015-12-16T15:59:00Z",
"severity": "HIGH"
},
"details": "Race condition in resolver.c in named in ISC BIND 9.9.8 before 9.9.8-P2 and 9.10.3 before 9.10.3-P2 allows remote attackers to cause a denial of service (INSIST assertion failure and daemon exit) via unspecified vectors.",
"id": "GHSA-h967-r8fq-h9x2",
"modified": "2022-05-14T02:13:41Z",
"published": "2022-05-14T02:13:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-8461"
},
{
"type": "WEB",
"url": "https://kb.isc.org/article/AA-01319"
},
{
"type": "WEB",
"url": "https://kb.isc.org/article/AA-01380"
},
{
"type": "WEB",
"url": "https://kb.isc.org/article/AA-01438"
},
{
"type": "WEB",
"url": "http://lists.fedoraproject.org/pipermail/package-announce/2015-December/174145.html"
},
{
"type": "WEB",
"url": "http://lists.fedoraproject.org/pipermail/package-announce/2015-December/174252.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/79347"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id/1034419"
},
{
"type": "WEB",
"url": "http://www.slackware.com/security/viewer.php?l=slackware-security\u0026y=2015\u0026m=slackware-security.539966"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-H9C9-7PC5-RXR8
Vulnerability from github – Published: 2022-05-17 04:50 – Updated: 2022-05-17 04:50Cisco Wireless LAN Controller (WLC) devices 7.4 before 7.4.110.0 distribute Aironet IOS software with a race condition in the status of the administrative HTTP server, which allows remote attackers to bypass intended access restrictions by connecting to an Aironet access point on which this server had been disabled ineffectively, aka Bug ID CSCuf66202.
{
"affected": [],
"aliases": [
"CVE-2014-0703"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-03-06T11:55:00Z",
"severity": "HIGH"
},
"details": "Cisco Wireless LAN Controller (WLC) devices 7.4 before 7.4.110.0 distribute Aironet IOS software with a race condition in the status of the administrative HTTP server, which allows remote attackers to bypass intended access restrictions by connecting to an Aironet access point on which this server had been disabled ineffectively, aka Bug ID CSCuf66202.",
"id": "GHSA-h9c9-7pc5-rxr8",
"modified": "2022-05-17T04:50:27Z",
"published": "2022-05-17T04:50:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-0703"
},
{
"type": "WEB",
"url": "http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140305-wlc"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-H9Q8-53PC-HHXF
Vulnerability from github – Published: 2022-05-24 17:00 – Updated: 2024-03-21 03:33Sudo through 1.8.29 allows local users to escalate to root if they have write access to file descriptor 3 of the sudo process. This occurs because of a race condition between determining a uid, and the setresuid and openat system calls. The attacker can write "ALL ALL=(ALL) NOPASSWD:ALL" to /proc/#####/fd/3 at a time when Sudo is prompting for a password.
{
"affected": [],
"aliases": [
"CVE-2019-18684"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2019-11-04T16:15:00Z",
"severity": "HIGH"
},
"details": "Sudo through 1.8.29 allows local users to escalate to root if they have write access to file descriptor 3 of the sudo process. This occurs because of a race condition between determining a uid, and the setresuid and openat system calls. The attacker can write \"ALL ALL=(ALL) NOPASSWD:ALL\" to /proc/#####/fd/3 at a time when Sudo is prompting for a password.",
"id": "GHSA-h9q8-53pc-hhxf",
"modified": "2024-03-21T03:33:41Z",
"published": "2022-05-24T17:00:18Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-18684"
},
{
"type": "WEB",
"url": "https://gist.github.com/oxagast/51171aa161074188a11d96cbef884bbd"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-H9R7-VQRG-9F4W
Vulnerability from github – Published: 2025-08-12 18:31 – Updated: 2025-08-12 18:31Concurrent execution using shared resource with improper synchronization ('race condition') in Microsoft Graphics Component allows an authorized attacker to elevate privileges locally.
{
"affected": [],
"aliases": [
"CVE-2025-49743"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-08-12T18:15:30Z",
"severity": "MODERATE"
},
"details": "Concurrent execution using shared resource with improper synchronization (\u0027race condition\u0027) in Microsoft Graphics Component allows an authorized attacker to elevate privileges locally.",
"id": "GHSA-h9r7-vqrg-9f4w",
"modified": "2025-08-12T18:31:30Z",
"published": "2025-08-12T18:31:30Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-49743"
},
{
"type": "WEB",
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-49743"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-H9VJ-J3R3-PPMQ
Vulnerability from github – Published: 2025-02-13 00:33 – Updated: 2025-02-13 00:33Race condition in some Intel(R) PROSet/Wireless WiFi and Killerâ„¢ WiFi software for Windows before version 23.80 may allow an unauthenticated user to potentially enable denial of service via adjacent access.
{
"affected": [],
"aliases": [
"CVE-2024-40887"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-02-12T22:15:37Z",
"severity": "MODERATE"
},
"details": "Race condition in some Intel(R) PROSet/Wireless WiFi and Killer\u00e2\u201e\u00a2 WiFi software for Windows before version 23.80 may allow an unauthenticated user to potentially enable denial of service via adjacent access.",
"id": "GHSA-h9vj-j3r3-ppmq",
"modified": "2025-02-13T00:33:06Z",
"published": "2025-02-13T00:33:06Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-40887"
},
{
"type": "WEB",
"url": "https://intel.com/content/www/us/en/security-center/advisory/intel-sa-01224.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-HC4V-GGPW-HP3W
Vulnerability from github – Published: 2022-10-12 12:00 – Updated: 2025-01-03 00:31Windows Point-to-Point Tunneling Protocol Remote Code Execution Vulnerability. This CVE ID is unique from CVE-2022-22035, CVE-2022-24504, CVE-2022-30198, CVE-2022-38000, CVE-2022-38047, CVE-2022-41081.
{
"affected": [],
"aliases": [
"CVE-2022-33634"
],
"database_specific": {
"cwe_ids": [
"CWE-362"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-10-11T19:15:00Z",
"severity": "HIGH"
},
"details": "Windows Point-to-Point Tunneling Protocol Remote Code Execution Vulnerability. This CVE ID is unique from CVE-2022-22035, CVE-2022-24504, CVE-2022-30198, CVE-2022-38000, CVE-2022-38047, CVE-2022-41081.",
"id": "GHSA-hc4v-ggpw-hp3w",
"modified": "2025-01-03T00:31:05Z",
"published": "2022-10-12T12:00:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-33634"
},
{
"type": "WEB",
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-33634"
},
{
"type": "WEB",
"url": "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-33634"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Mitigation
In languages that support it, use synchronization primitives. Only wrap these around critical code to minimize the impact on performance.
Mitigation
Use thread-safe capabilities such as the data access abstraction in Spring.
Mitigation
- Minimize the usage of shared resources in order to remove as much complexity as possible from the control flow and to reduce the likelihood of unexpected conditions occurring.
- Additionally, this will minimize the amount of synchronization necessary and may even help to reduce the likelihood of a denial of service where an attacker may be able to repeatedly trigger a critical section (CWE-400).
Mitigation
When using multithreading and operating on shared variables, only use thread-safe functions.
Mitigation
Use atomic operations on shared variables. Be wary of innocent-looking constructs such as "x++". This may appear atomic at the code layer, but it is actually non-atomic at the instruction layer, since it involves a read, followed by a computation, followed by a write.
Mitigation
Use a mutex if available, but be sure to avoid related weaknesses such as CWE-412.
Mitigation
Avoid double-checked locking (CWE-609) and other implementation errors that arise when trying to avoid the overhead of synchronization.
Mitigation
Disable interrupts or signals over critical parts of the code, but also make sure that the code does not go into a large or infinite loop.
Mitigation
Use the volatile type modifier for critical variables to avoid unexpected compiler optimization or reordering. This does not necessarily solve the synchronization problem, but it can help.
Mitigation MIT-17
Strategy: Environment Hardening
Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.
CAPEC-26: Leveraging Race Conditions
The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with their version and cause the system to read the malicious file.
CAPEC-29: Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions
This attack targets a race condition occurring between the time of check (state) for a resource and the time of use of a resource. A typical example is file access. The adversary can leverage a file access race condition by "running the race", meaning that they would modify the resource between the first time the target program accesses the file and the time the target program uses the file. During that period of time, the adversary could replace or modify the file, causing the application to behave unexpectedly.