{"id":"CVE-2021-41794","aliases":["CVE-2021-41794"],"related":[],"kind":"vulnerability","state":"published","title":"ogsfqdnparse in Open5GS 1.0.0 through 2.3.3 inappropriately trusts a client-supplied length value, leading to a buffer overflow.","summary":"ogs_fqdn_parse in Open5GS 1.0.0 through 2.3.3 inappropriately trusts a client-supplied length value, leading to a buffer overflow. The attacker can send a PFCP Session Establishment Request with \"internet\" as the PDI Network Instance. The first character is interpreted as a length value to be used in a memcpy call. The destination buffer is only 100 bytes long on the stack. Then, 'i' gets interpreted as 105 bytes to copy from the source buffer to the destination buffer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ogs_fqdn_parse in Open5GS 1.0.0 through 2.3.3 inappropriately trusts a client-supplied length value, leading to a buffer overflow. The attacker can send a PFCP Session Establishment Request with \"internet\" as the PDI Network Instance. The first character is interpreted as a length value to be used in a memcpy call. The destination buffer is only 100 bytes long on the stack. Then, 'i' gets interpreted as 105 bytes to copy from the source buffer to the destination buffer.","source":"cvelist"},{"lang":"es","text":"La función ogs_fqdn_parse en Open5GS versiones 1.0.0 hasta 2.3.3 confía inapropiadamente en un valor de longitud proporcionado por el cliente, conllevando a un desbordamiento del búfer. El atacante puede enviar una petición de establecimiento de sesión PFCP con \"internet\" como instancia de red PDI. El primer carácter es interpretado como un valor de longitud que será usado en una llamada memcpy. El buffer de destino sólo presenta 100 bytes de longitud en la pila. Entonces, \"i\" es interpretado como 105 bytes para copiar del buffer de origen al de destino","source":"nvd"}],"published":"2021-10-07T14:57:14.000Z","modified":"2026-06-17T04:08:55.670Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"1.0.0","lastAffected":"2.3.3"}],"vendor":"open5gs","product":"open5gs","cpe":"cpe:2.3:a:open5gs:open5gs:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://research.nccgroup.com/2021/10/06/technical-advisory-open5gs-stack-buffer-overflow-during-pfcp-session-establishment-on-upf-cve-2021-41794","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41794","url":"https://www.cve.org/CVERecord?id=CVE-2021-41794","licence":"CVE Terms of Use","modified":"2024-08-04T03:22:24.034Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41794","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41794","licence":"Public domain","modified":"2026-06-17T04:08:55.670Z"}],"updatedAt":"2026-11-25T22:58:04.364Z","epss":{"score":0.01223,"percentile":0.69573,"date":"2026-12-01T12:00:22.000Z"}}