{"id":"CVE-2025-44951","details":"A missing length check in `ogs_pfcp_dev_add` function from PFCP library, used by both smf and upf in open5gs 2.7.2 and earlier, allows a local attacker to cause a Buffer Overflow by changing the `session.dev` field with a value with length greater than 32.","modified":"2026-04-12T16:55:23.009639Z","published":"2025-06-18T16:15:27.413Z","references":[{"type":"REPORT","url":"https://github.com/open5gs/open5gs/issues/3775"},{"type":"FIX","url":"https://github.com/open5gs/open5gs/commit/e3dd98cd291fba233a46adb2881213fc6e38b924"},{"type":"EVIDENCE","url":"https://gist.github.com/scmdcs/6d878d6074f0e2f4a8fb69e9864068b7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/open5gs/open5gs","events":[{"introduced":"0"},{"last_affected":"43fa4857cce8af6b6ec3c8e3b0cbf99444948f76"},{"fixed":"e3dd98cd291fba233a46adb2881213fc6e38b924"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.7.2"}]}}],"versions":["v0.1.0","v0.1.1","v0.2.0","v0.3.0","v0.3.1","v0.3.10","v0.3.2","v0.3.3","v0.3.4","v0.3.5","v0.3.6","v0.3.8","v0.4.1","v0.4.2","v0.4.3","v0.4.4","v0.5.0","v0.5.1","v0.5.2","v1.0.0","v1.1.0","v1.2.0","v1.2.1","v1.2.2","v1.2.3","v1.2.4","v1.3.0","v2.0.0","v2.0.18","v2.0.22","v2.1.0","v2.1.1","v2.1.3","v2.1.4","v2.1.5","v2.1.7","v2.2.0","v2.2.1","v2.2.6","v2.2.7","v2.2.8","v2.2.9","v2.3.0","v2.3.2","v2.3.6","v2.4.0","v2.4.1","v2.4.3","v2.4.4","v2.4.5","v2.4.7","v2.4.8","v2.4.9","v2.6.1","v2.6.2","v2.6.3","v2.6.4","v2.6.6","v2.7.0","v2.7.1","v2.7.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-44951.json","vanir_signatures_modified":"2026-04-12T16:55:23Z","vanir_signatures":[{"deprecated":false,"target":{"function":"ogs_pfcp_dev_add","file":"lib/pfcp/context.c"},"id":"CVE-2025-44951-010b7893","signature_type":"Function","source":"https://github.com/open5gs/open5gs/commit/e3dd98cd291fba233a46adb2881213fc6e38b924","signature_version":"v1","digest":{"function_hash":"259482898196472605423114668031278163946","length":274}},{"deprecated":false,"target":{"file":"lib/pfcp/context.c"},"id":"CVE-2025-44951-f3bf8524","signature_type":"Line","source":"https://github.com/open5gs/open5gs/commit/e3dd98cd291fba233a46adb2881213fc6e38b924","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["216244124186495522033909039647836258721","59640315232789263250752922199211066586","210423162397235879162744741755776330242","86320735688523126864902784000390201813","88069510662009714678268338824180378477","63386367305157736002465430518052656026","33542708549945072615027443968431631516","140586463907386041731599200703348546155"]}},{"deprecated":false,"target":{"function":"ogs_pfcp_subnet_add","file":"lib/pfcp/context.c"},"id":"CVE-2025-44951-fa1a20da","signature_type":"Function","source":"https://github.com/open5gs/open5gs/commit/e3dd98cd291fba233a46adb2881213fc6e38b924","signature_version":"v1","digest":{"function_hash":"100736648858488848744771858599687587275","length":1909}}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"}]}