CVE-2026-138051: 5G Core Flaw Exposed in OpenAirInterface

A heap-based buffer overflow has been disclosed in the user plane function of OpenAirInterface, the open-source software used to build 5G mobile core networks. The flaw, tracked as CVE-2026-138051, was published on 28 November 2026 and affects the project's oai-cn5g-upf component up to version 2.2.2.
The vulnerability sits in the parser for the PFCP N4 User ID information element, the part of the 5G core that handles session signalling between the control plane and the user plane. According to the disclosure, the function pfcp_user_id_ie::load_from in the file pfcp/3gpp_29.244.hpp fails to handle a crafted User ID information element of type 141 safely, and the manipulation leads to a heap-based buffer overflow. The weakness is classed as CWE-122, a heap-based buffer overflow, and CWE-119, improper restriction of operations within the bounds of a memory buffer.
The flaw is rated Medium, with a CVSS 3.1 base score of 5.3. The scoring reflects an attack that can be carried out remotely over the network, needs no privileges and no user interaction, but affects availability only, with no impact on the confidentiality or integrity of data. In practice, that means a crafted packet sent to an exposed user plane function could crash the process handling mobile data sessions, rather than expose subscriber data.
That distinction matters for operators. The user plane function, known as the UPF, is the component that forwards packets between the mobile network and the internet, so a crash there can interrupt data sessions for connected devices. The flaw affects versions 2.2.0, 2.2.1 and 2.2.2 of oai-cn5g-upf. The vendor was contacted early about the disclosure, and the exploit has been disclosed publicly, which means operators running the affected versions should assume the technique is available to attackers.
No fixed version had been published at the time of writing, and no mitigations were listed for this CVE. Until a patch is released, the practical defence is to limit exposure of the PFCP N4 interface. The N4 interface is a signalling channel between core network functions and should not be reachable from the public internet or from untrusted networks. Operators should check that their UPF is only reachable from the trusted control plane elements it is designed to talk to, and watch for unexpected crashes or restarts of the user plane process.
The disclosure is one of several flaws reported on 28 November in OpenAirInterface's 5G core components, alongside a separate SQL injection flaw in the UDR component tracked as CVE-2026-138050. The two flaws affect different components and are being tracked separately. OpenAirInterface is widely used in research networks, private 5G deployments and testbeds, so the audience for this flaw is narrower than for a flaw in a consumer product, but the operators who do run it are running live mobile infrastructure.
Anyone running oai-cn5g-upf should confirm the version in use, restrict N4 access to trusted peers, and monitor the project for a fixed release. A heap overflow in a packet-handling function is the kind of flaw that is easy to dismiss at Medium severity, but in a network function that sits on the data path, a reliable crash is a service outage waiting for a trigger.