# CVE-2021-4327: SerenityOS TypedArray.cpp initialize_typed_array_from_array_buffer integer overflow

- Severity: Medium 5.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:A/AC:L/PR:L/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.93%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-01T10:05:37.010Z
- Modified: 2026-06-17T04:19:30.810Z
- Weaknesses: CWE-190
- Assigned by: VulDB

## Description

A vulnerability was found in SerenityOS. It has been rated as critical. Affected by this issue is the function initialize_typed_array_from_array_buffer in the library Userland/Libraries/LibJS/Runtime/TypedArray.cpp. The manipulation leads to integer overflow. The exploit has been disclosed to the public and may be used. Continious delivery with rolling releases is used by this product. Therefore, no version details of affected nor updated releases are available. The patch is identified as f6c6047e49f1517778f5565681fb64750b14bf60. It is recommended to apply a patch to fix this issue. VDB-222074 is the identifier assigned to this vulnerability.

(As written by CVE List.)

## Affected

- SerenityOS: n/a
- serenityos serenityos: before 2021-01-27

## Every score

- VulDB: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 5.5 Medium `CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 5.2 Medium `AV:A/AC:L/Au:S/C:P/I:P/A:P`
- 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`

## References

- <https://devcraft.io/2021/02/11/serenityos-writing-a-full-chain-exploit.html> (exploit, third-party-advisory)
- <https://vuldb.com/?id.222074> (permissions-required, technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.222074> (permissions-required, signature, third-party-advisory)
- <https://github.com/SerenityOS/serenity/commit/f6c6047e49f1517778f5565681fb64750b14bf60> (patch)

## Sources

- CVE List: [CVE-2021-4327](https://www.cve.org/CVERecord?id=CVE-2021-4327), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-4327](https://nvd.nist.gov/vuln/detail/CVE-2021-4327), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4327 · Whole record: https://cve.day/CVE-2021-4327.json · Rebuilt by cve.day 2026-11-25T22:24:37.139Z
