# CVE-2024-22419: concat built-in can corrupt memory in vyper

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- 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.77%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-01-18T18:45:55.731Z
- Modified: 2026-09-10T03:50:04.648Z
- Also known as: GHSA-2q8v-3gqq-4f8p, PYSEC-2024-103
- Weaknesses: CWE-120, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. The `concat` built-in can write over the bounds of the memory buffer that was allocated for it and thus overwrite existing valid data. The root cause is that the `build_IR` for `concat` doesn't properly adhere to the API of copy functions (for `>=0.3.2` the `copy_bytes` function). A contract search was performed and no vulnerable contracts were found in production. The buffer overflow can result in the change of semantics of the contract. The overflow is length-dependent and thus it might go unnoticed during contract testing. However, certainly not all usages of concat will result in overwritten valid data as we require it to be in an internal function and close to the return statement where other memory allocations don't occur. This issue has been addressed in 0.4.0.

(As written by CVE List.)

## Affected

- vyperlang vyper: < 0.4.0; up to 0.3.10
- vyper (PyPI): from 0.3.0 before 0.4.0; before 55e18f6d128b2da8986adbbcccf1cd59a4b9ad6f; before 0.4.0b1

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: 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 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-2q8v-3gqq-4f8p> (exploit, advisory, vendor-advisory, web)
- <https://github.com/vyperlang/vyper/issues/3737> (exploit, advisory, issue-tracking, vendor-advisory, web)
- <https://github.com/vyperlang/vyper/commit/55e18f6d128b2da8986adbbcccf1cd59a4b9ad6f> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-22419> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-103.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)

## Sources

- CVE List: [CVE-2024-22419](https://www.cve.org/CVERecord?id=CVE-2024-22419), CVE Terms of Use, modified 2025-06-02
- GitHub Advisory Database: [GHSA-2q8v-3gqq-4f8p](https://github.com/advisories/GHSA-2q8v-3gqq-4f8p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-22419](https://nvd.nist.gov/vuln/detail/CVE-2024-22419), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-103](https://osv.dev/vulnerability/PYSEC-2024-103), CC-BY-4.0, modified 2024-10-09

---

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