CVE-2024-43806
A public proof of concept exists; no exploitation attested.
- Published2024-08-26
- Fixed in0.38.19 · 0.37.25 · 0.36.16 · 0.35.15
- WeaknessCWE-400
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
Rustix is a set of safe Rust bindings to POSIX-ish APIs. When using `rustix::fs::Dir` using the `linux_raw` backend, it's possible for the iterator to "get stuck" when an IO error is encountered. Combined with a memory over-allocation issue in `rustix::fs::Dir::read_more`, this can cause quick and unbounded memory explosion (gigabytes in a few seconds if used on a hot path) and eventually lead to an OOM crash of the application. The symptoms were initially discovered in https://github.com/imsnif/bandwhich/issues/284. That post has lots of details of our investigation. Full details can be read on the GHSA-c827-hfw6-qwvm repo advisory. If a program tries to access a directory with its file descriptor after the file has been unlinked (or any other action that leaves the `Dir` iterator in the stuck state), and the implementation does not break after seeing an error, it can cause a memory explosion. As an example, Linux's various virtual file systems (e.g. `/proc`, `/sys`) can contain directories that spontaneously pop in and out of existence. Attempting to iterate over them using `rustix::fs::Dir` directly or indirectly (e.g. with the `procfs` crate) can trigger this fault condition if the implementation decides to continue on errors. An attacker knowledgeable about the implementation details of a vulnerable target can therefore try to trigger this fault condition via any one or a combination of several available APIs. If successful, the application host will quickly run out of memory, after which the application will likely be terminated by an OOM killer, leading to denial of service. This issue has been addressed in release versions 0.35.15, 0.36.16, 0.37.25, and 0.38.19. Users are advised to upgrade. There are no known workarounds for this issue.
Timeline
dates in UTC- 2024-08-2619:15CVE publishedNVD
Versions per branch
CISA-ADP · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.38 | ≥ 0.38.0, < 0.38.19 | 0.38.19 | CISA-ADP · OSV |
| 0.37 | ≥ 0.37.0, < 0.37.25 | 0.37.25 | CISA-ADP · OSV |
| 0.36 | ≥ 0.36.0, < 0.36.16 | 0.36.16 | CISA-ADP · OSV |
| 0.35 | ≥ 0.35.11, < 0.35.15 | 0.35.15 | CISA-ADP · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- bytecodealliance rustixAffected
- = >= 0.35.11, < 0.35.15no fix stated
- = >= 0.36.0, < 0.36.16no fix stated
- = >= 0.37.0, < 0.37.25no fix stated
- = >= 0.38.0, < 0.38.19no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-08-26
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- 389-dsopenSUSE:Tumbleweedall versions · fixed in 3.1.1~git13.a9c7ff9-1.1
- batWolfiall versions · fixed in 0.24.0-r2and 1 other package
- batChainguardall versions · fixed in 0.24.0-r2and 1 other package
- bergWolfiall versions · fixed in 0.3.5-r2
- bergChainguardall versions · fixed in 0.3.5-r2
- cloud-hypervisorAzure Linux:2all versions · fixed in 32.0-7
- fluxAzure Linux:3all versions · fixed in 0.194.5-4
- kata-containersAzure Linux:3all versions · fixed in 3.2.0.azl4-1and 1 other package
38 more package ranges on OSV.dev
Fix
- Update Bytecodealliance rustix to 0.38.19 · 0.37.25 · 0.36.16 · 0.35.15
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-08-26
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionpoc2024-08-26
- CNACVSS 3.16.5known since 2026-10-23
- CNAweakness (CWE)CWE-400known since 2026-10-23
- FIRST EPSSEPSS score0.5 %2026-11-08
- OSVaffected packages—
- GitHub AdvisoriesadvisoryMODERATE2023-10-18
Identifiers
- AZL-48300same flawAzure Linux · MIT
- AZL-48304same flawAzure Linux · MIT
- AZL-48312same flawAzure Linux · MIT
- AZL-48318same flawAzure Linux · MIT
- AZL-48324same flawAzure Linux · MIT
- AZL-48327same flawAzure Linux · MIT
- AZL-48330same flawAzure Linux · MIT
- AZL-48333same flawAzure Linux · MIT
- CGA-3g38-536p-j4wrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3m93-9p84-vx8xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3mrw-9fmq-pmc3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4ccc-pw24-3j9hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-53w7-x624-7px5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-58v7-xpw7-57w7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5hr9-j2mw-c33gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6gf7-c3r8-hw33same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8529-r59q-p278same flawChainguard · CC-BY-NC-ND-4.0
- CGA-929h-g48q-7pg2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-97v7-v4jq-45f8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f452-9m8p-hv4qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f495-6rw4-c6w3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-ggmr-mmcw-548xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jjvj-w2v3-jmm9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-vxpw-387j-6cfpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xmmp-6762-896csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xpw5-wffv-cp77same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2023-2715same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-c827-hfw6-qwvmsame flawGitHub Advisory Database · CC-BY-4.0
- openSUSE-SU-2024:14306-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14354-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15294-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:20396-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- SUSE-SU-2024:3404-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02809-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02810-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02811-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20057-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20858-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:4411-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:20755-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:20910-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:3022-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Published
- 2024-08-26
- Last Modified
- 2026-06-17
- NVD status
- Deferred
- GitHub Advisory
- GHSA-c827-hfw6-qwvm
Frequently asked questions
What is CVE-2024-43806?
Is CVE-2024-43806 actively exploited?
What is the CVSS score for CVE-2024-43806?
Running rustix? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2020-26235same product
- CVE-2023-26489same product
- CVE-2024-27308same product
- CVE-2024-51745same product
- CVE-2026-25541same productBytes is vulnerable to integer overflow in BytesMut::reserve
- CVE-2026-27572same productWasmtime can panic when adding excessive fields to a `wasi:http/types.fields` instance
- CVE-2026-27204same productWasmtime WASI implementations are vulnerable to guest-controlled resource exhaustion
- CVE-2026-25727same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-c827-hfw6-qwvm
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- CISA Vulnrichment · CC0-1.0