CVE-2026-138050: SQL Injection in OpenAirInterface
High CVSS (7.3) vulnerability; prioritize internet-facing assets.
TL;DR - CVE-2026-138050 is a remotely exploitable SQL injection in OpenAirInterface
oai-cn5g-udrthrough version 2.2.2. - The vulnerable input is theueIdargument in the Nudr_DR component. - A public exploit is reported, but active in-the-wild exploitation is unconfirmed and no fixed version is identified. - Organizations should restrict access to Nudr_DR, review logs, verify deployed versions, and monitor upstream advisories.
Vulnerability at a Glance
| Field | Value |
|---|---|
| CVE ID | CVE-2026-138050 |
| Product | OpenAirInterface oai-cn5g-udr |
| Vulnerable component | Nudr_DR |
| Affected file | src/udr_app/database/mysql_db.cpp |
| Vulnerability type | SQL injection |
| CVSS base score | 7.3 |
| CVSS vector | Not provided in the available NVD record |
| Attack vector | Remote |
| Authentication required | Unknown from the available record |
| Privileges required | Unknown from the available record |
| Affected versions | Up to and including 2.2.2 |
| Fixed version | Not identified |
| Patch available | No confirmed vendor patch or fixed version identified |
| Public exploit | Yes, according to the NVD description |
| Confirmed exploitation in the wild | Not established |
| CISA KEV status | Not listed |
CVE-2026-138050 affects a 5G core network component that stores and retrieves subscriber-related data. The vulnerability is associated with the Nudr_DR service and the ueId argument, which may be incorporated unsafely into a database query.
The reported CVSS score is 7.3, placing the issue in the high-severity range under common CVSS interpretation. The score should not be overinterpreted because the complete CVSS vector was not included in the available NVD data. The required authentication and privileges values cannot be reliably reconstructed from the score alone.
Analyst’s Take: Treat this as a network-exposure and asset-inventory problem before treating it as a confirmed-impact event. The public exploit report and remote attack surface justify prompt review of every deployment at or below 2.2.2, but the missing CVSS vector and unestablished exploitation status limit what can be concluded about attacker access and impact.
For broader vulnerability-prioritization context, see our coverage of CVE mitigation and remediation workflows.
What Is This Vulnerability?
CVE-2026-138050 is an SQL injection vulnerability caused by unsafe handling of attacker-controlled input. The NVD identifies the affected code area as src/udr_app/database/mysql_db.cpp and names the ueId argument as the manipulation point. An attacker who can reach the relevant Nudr_DR interface may be able to supply specially crafted input that changes the meaning of the SQL statement executed by the service.
The precise query, API endpoint, database operation, and response behavior have not been established by the available record. Defenders should not assume a particular impact such as data extraction, modification, authentication bypass, or command execution. Those outcomes depend on the vulnerable query, database account permissions, error handling, and network exposure.
From an engineering perspective, the likely corrective controls are parameterized or prepared SQL statements and strict validation of ueId according to the identifier format expected by the application. Input validation is useful as defense in depth, but it should not replace parameterized database access because filtering alone can be bypassed when applied inconsistently.
Technical Notes
The affected code path is reported as:
src/udr_app/database/mysql_db.cpp
The relevant input is:
ueId
A vulnerable pattern would generally resemble the following conceptual example, although the exact implementation has not been confirmed:
// Unsafe pattern: illustrative only
std::string query =
"SELECT ... FROM subscriber_data WHERE ue_id = '" + ueId + "'";
The preferred implementation uses a prepared statement or a database API that binds ueId as a value rather than concatenating it into SQL:
// Preferred pattern: illustrative only
auto statement = db.prepare(
"SELECT ... FROM subscriber_data WHERE ue_id = ?"
);
statement.bind(1, ueId);
auto results = statement.execute();
These examples describe remediation principles, not the exact OpenAirInterface source.
Who Is Affected?
The affected product is OpenAirInterface oai-cn5g-udr, specifically versions up to and including 2.2.2. The available NVD record does not provide a narrower lower bound, so organizations should treat every deployed release at or below 2.2.2 as potentially affected unless an upstream maintainer provides more precise guidance.
The vulnerable component is Nudr_DR, with the database-related file identified as src/udr_app/database/mysql_db.cpp. Deployments are most exposed when the Nudr_DR interface is reachable from untrusted networks, directly or through a compromised network function, API gateway, service mesh, or other intermediary.
Organizations should inventory both source-based and containerized deployments. A version string in a deployment manifest may not match the binary actually running, particularly where images are rebuilt locally or packages are installed during image construction. Verify the running image digest, package contents, source revision, and service configuration.
Affected-version checks
For a source checkout, inspect the repository and revision:
git -C /opt/oai-cn5g-udr describe --tags --always
git -C /opt/oai-cn5g-udr log -1 --format='%H %ad %s' --date=iso
For a container deployment, identify the running image:
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'
docker inspect --format '{{.Config.Image}} {{.Image}}' <container_name>
These commands establish what is deployed, but they do not identify a fixed version because no confirmed fixed release is available in the supplied research.
CVSS Score Breakdown
The reported CVSS base score for CVE-2026-138050 is 7.3. The NVD data available for this assessment does not include the CVSS vector string. The exact values for attack complexity, privileges required, user interaction, scope, confidentiality, integrity, and availability must therefore be treated as unknown rather than inferred.
The record does identify the attack as remote. That indicates the vulnerable function can potentially be reached over a network, but it does not establish that the service is exposed to the public internet. In a 5G core deployment, reachability may be limited by network slicing, service-based interfaces, firewalls, API gateways, routing policy, or service mesh controls.
The missing vector is operationally important. Authentication requirements and required privileges determine which threat actors can exploit the issue, while the confidentiality, integrity, and availability components determine the likely business impact. Until those details are confirmed, asset owners should use the high score, remote attack surface, public exploit report, and sensitivity of subscriber data as the basis for prioritization.
Interpreting the available score
| CVSS-related detail | Available assessment |
|---|---|
| Base score | 7.3 |
| Remote exploitability | Explicitly stated |
| Attack complexity | Unknown |
| Authentication requirement | Unknown |
| Privileges required | Unknown |
| User interaction | Unknown |
| Confidentiality impact | Unknown |
| Integrity impact | Unknown |
| Availability impact | Unknown |
| Complete vector | Not provided |
Do not create a CVSS vector from assumptions. Record the missing fields in vulnerability-management systems and update the assessment if the CNA, vendor, or NVD publishes the complete vector.
Exploitation Status
The NVD description states that an exploit has been made publicly available. This establishes public exploit availability according to the NVD record, but the supplied sources do not identify a specific proof-of-concept repository, exploit code sample, or reproducible technical procedure.
The distinction matters operationally. A public exploit reference can reduce the time required for exploitation, but it does not prove that every deployment is exploitable or that exploitation has occurred against a particular organization. Security teams should nevertheless assume that capable attackers can investigate the issue, especially because the target is a remotely reachable 5G core component and the vulnerability involves SQL injection.
Confirmed exploitation in the wild is not established by the available evidence. CVE-2026-138050 is also not listed in the CISA Known Exploited Vulnerabilities catalog. Consequently, there is no CISA KEV due date or required action associated with this CVE at the time of writing.
Status summary
| Question | Answer |
|---|---|
| Is a public exploit reported? | Yes, according to the NVD description |
| Is a specific public PoC identified in the supplied sources? | No |
| Is active exploitation confirmed? | No evidence established |
| Is the CVE in CISA KEV? | No |
| Is ransomware exploitation reported? | No evidence established |
Treat the absence of confirmed exploitation as an evidence limitation, not as evidence of safety.
How to Detect It
Detection should focus on requests reaching the Nudr_DR service with unusual ueId values, database errors following those requests, and database activity inconsistent with normal subscriber-data access. Because the exact endpoint and protocol details are not specified, monitoring teams should correlate application, API gateway, service mesh, and database logs rather than relying on a single signature.
Useful indicators include SQL metacharacters in ueId, unusually long identifier values, encoded quote characters, comment markers, Boolean operators, and time-delay functions. These indicators are not proof of exploitation: legitimate middleware, scanners, or malformed clients may generate similar data. Detection confidence improves when suspicious input is correlated with a database error, abnormal query volume, unexpected response size, or access to records outside the requesting service’s normal scope.
Technical Notes
A generic log-search pattern for common SQL injection indicators is:
grep -Eai \\
'ueId|union([%20+]| )+select|select.+from|(%27|'"'"'|%22|")|(--|%23|/\\*)|sleep[[:space:]]*\\(|benchmark[[:space:]]*\\(' \\
/var/log/oai-cn5g-udr/*.log
The exact log path and field names vary by deployment. Where logs are JSON, a SIEM query should parse the request parameter rather than searching the serialized message. A generic Splunk-style starting point is:
index=telecom sourcetype=oai-cn5g-udr
| search ueId="*'*" OR ueId="*%27*" OR ueId="*union*" OR ueId="*--*" OR ueId="*/*"
| stats count min(_time) as first_seen max(_time) as last_seen
by src_ip, dest_ip, uri_path, ueId, status
A generic SQL audit query for recent errors may help identify application-generated database failures, although table and column names depend on the deployed MySQL or compatible database configuration:
SELECT event_time, user_host, command_type, argument
FROM mysql.general_log
WHERE event_time >= NOW() - INTERVAL 24 HOUR
AND (
argument LIKE '%union%select%'
OR argument LIKE '%--%'
OR argument LIKE '%sleep(%'
OR argument LIKE '%benchmark(%'
)
ORDER BY event_time DESC;
Enable database auditing only after evaluating performance, storage, and privacy implications. Preserve relevant logs with synchronized timestamps and retain source IP, request path, response status, database account, and query outcome where policy permits.
Network telemetry should also identify unexpected access to the Nudr_DR interface from outside the intended 5G core control plane. There is no validated network signature in the supplied research, so do not deploy a purported CVE-specific IDS rule without testing it against the actual API protocol and deployment architecture.
Mitigation and Patching
All deployments of oai-cn5g-udr at version 2.2.2 or earlier should be considered affected. No confirmed fixed version is identified in the available NVD record or supplied repository references. Do not treat 2.2.2 as fixed, and do not claim that an unverified development commit resolves the issue.
The first remediation step is to check the upstream OpenAirInterface repository, issue tracker, security page, release tags, and maintainer advisories for a CVE-specific fix. Once a vendor-confirmed release is available, upgrade to that release or a later supported version, then rebuild and redeploy the service. Record the exact source commit or image digest used so that remediation can be verified.
Until a fix is available, restrict Nudr_DR access to the minimum required network functions and management systems. Do not expose the interface directly to the public internet. Apply allowlisting at firewalls, API gateways, Kubernetes network policies, or service-mesh authorization layers, and ensure that database credentials used by UDR have only the permissions necessary for normal operation.
For comparison, organizations reviewing security-tool coverage may also find our Nessus Essentials vs. Professional 2026 guide useful when planning vulnerability-assessment workflows.
Technical Notes
A source-based deployment should first create a backup or reproducible artifact, then retrieve and verify the vendor-provided fixed revision. Because no fixed revision is identified here, the command below is a template that must not be executed with an unverified tag:
git -C /opt/oai-cn5g-udr fetch --tags origin
git -C /opt/oai-cn5g-udr tag --sort=-version:refname | head -20
# Replace <vendor-confirmed-fixed-tag> only after verifying the upstream advisory.
git -C /opt/oai-cn5g-udr checkout <vendor-confirmed-fixed-tag>
For a containerized deployment, identify the currently running image and replace it only with a vendor-confirmed fixed image:
docker inspect --format '{{.Config.Image}}' oai-cn5g-udr
# Template only. Use the image and digest published by the maintainer.
docker pull <vendor-confirmed-fixed-image>@<sha256-digest>
docker compose up -d --no-deps --force-recreate udr
If no vendor fix is available, implement compensating controls. A Kubernetes NetworkPolicy can restrict ingress to approved namespaces or pods, but the labels and namespaces must be adapted to the deployment:
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: restrict-udr-ingress
spec:
podSelector:
matchLabels:
app: oai-cn5g-udr
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
name: oai-core
podSelector:
matchLabels:
app: approved-network-function
ports:
- protocol: TCP
port: 80
At the application layer, the durable fix is to use prepared statements for every query that consumes ueId and to validate the value against the expected identifier format. Avoid relying on ad hoc escaping. If a reverse proxy or API gateway is used, enforce an allowlist for the expected ueId syntax and reject malformed or oversized values, while recognizing that this is a compensating control rather than a replacement for a code fix.
After remediation, test that the service still performs legitimate Nudr_DR operations, confirm that the running binary or image corresponds to the intended fixed revision, review database credentials and privileges, and search historical logs for exploitation attempts.
References
The primary reference is the OpenAirInterface oai-cn5g-udr repository:
The NVD-listed GitHub issue is also relevant for maintainer discussion and potential remediation updates:
Additional references associated with the CVE include:
The CVE was published in the available NVD record on 2026-11-28. The NVD record reports a 7.3 CVSS score, remote attack potential, affected versions through 2.2.2, and public exploit availability. It does not provide a complete CVSS vector or a confirmed fixed version. Organizations should monitor the upstream repository and NVD record for changes before closing remediation tickets.
This article may contain affiliate links. We earn a commission on qualifying purchases at no extra cost to you.