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.
{
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/44xxx/CVE-2025-44951.json"
}{
"cpe": "cpe:2.3:a:open5gs:open5gs:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "2.7.2"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-44951.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "259482898196472605423114668031278163946",
"length": 274
},
"id": "CVE-2025-44951-010b7893",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/open5gs/open5gs/commit/e3dd98cd291fba233a46adb2881213fc6e38b924",
"target": {
"file": "lib/pfcp/context.c",
"function": "ogs_pfcp_dev_add"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"216244124186495522033909039647836258721",
"59640315232789263250752922199211066586",
"210423162397235879162744741755776330242",
"86320735688523126864902784000390201813",
"88069510662009714678268338824180378477",
"63386367305157736002465430518052656026",
"33542708549945072615027443968431631516",
"140586463907386041731599200703348546155"
],
"threshold": 0.9
},
"id": "CVE-2025-44951-f3bf8524",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/open5gs/open5gs/commit/e3dd98cd291fba233a46adb2881213fc6e38b924",
"target": {
"file": "lib/pfcp/context.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "100736648858488848744771858599687587275",
"length": 1909
},
"id": "CVE-2025-44951-fa1a20da",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/open5gs/open5gs/commit/e3dd98cd291fba233a46adb2881213fc6e38b924",
"target": {
"file": "lib/pfcp/context.c",
"function": "ogs_pfcp_subnet_add"
}
}
]
"2026-08-12T15:13:51Z"