# CVE-2024-34252: pywasm3 contains a global buffer overflow which leads to segmentation fault

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 54% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-06T00:00:00.000Z
- Modified: 2026-06-17T07:33:09.110Z
- Also known as: GHSA-hh39-vjv8-j337, PYSEC-2024-309
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

wasm3 v0.5.0 was discovered to contain a global buffer overflow which leads to segmentation fault via the function "PreserveRegisterIfOccupied" in wasm3/source/m3_compile.c.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- wasm3_project wasm3: 0.5.0
- pywasm3 (PyPI): up to 0.5.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/wasm3/wasm3/issues/483> (exploit, issue-tracking, report, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34252> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pywasm3/PYSEC-2024-309.yaml> (web)
- <https://github.com/wasm3/pywasm3> (package)
- <https://github.com/wasm3/pywasm3/blob/main/wasm3/m3_compile.c#L420> (web)
- <https://github.com/advisories/GHSA-hh39-vjv8-j337> (advisory)

## Sources

- CVE List: [CVE-2024-34252](https://www.cve.org/CVERecord?id=CVE-2024-34252), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-hh39-vjv8-j337](https://github.com/advisories/GHSA-hh39-vjv8-j337), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2024-34252](https://nvd.nist.gov/vuln/detail/CVE-2024-34252), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-309](https://osv.dev/vulnerability/PYSEC-2024-309), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-34252 · Whole record: https://cve.day/CVE-2024-34252.json · Rebuilt by cve.day 2026-11-25T22:58:39.997Z
