{"id":"CVE-2026-42459","revision":null,"records":[{"revision":"9fd788838b5a4c949269a48e71baea65","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-42459","aliases":[],"title":"free5GC: Improper Input Validation and Generation of Error Message Containing Sensitive Information in github.com/free5gc/udm","description":"free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, the free5GC UDM component fails to validate the supi path parameter in six GET handlers of the nudm-sdm (Subscriber Data Management) service. An unauthenticated attacker can inject control characters into the SUPI parameter, causing UDM to forward a malformed request to UDR and return a 500 Internal Server Error response that exposes internal infrastructure details. This vulnerability is fixed in 4.2.2.","state":0,"publishedAt":"2026-05-27T15:53:45.452+00:00","modifiedAt":"2026-05-28T14:14:46.406+00:00","affected":[{"ecosystem":"Vendor product","name":"free5gc","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"free5gc\",\n                    \"product\": \"free5gc\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 4.2.2\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","score":7.7,"severity":"HIGH"}],"references":["https://github.com/free5gc/free5gc/security/advisories/GHSA-585v-hcgf-jhfr"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-42459","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-42459","identifiers":["CVE-2026-42459"]},"retained":false,"historicalAffected":[]},{"revision":"546b551eb13b4252a981e28292b3b2f5","observedAt":"2026-11-09T10:13:02.714+00:00","statement":{"source":"euvd","id":"EUVD-2026-32554","aliases":["CVE-2026-42459","GHSA-585v-hcgf-jhfr"],"title":"free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, the free5GC UDM component fails to validate the supi path parameter in six GET handlers of the nudm-sdm (Subscriber Data Management) service. An unauthenticate…","description":"free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, the free5GC UDM component fails to validate the supi path parameter in six GET handlers of the nudm-sdm (Subscriber Data Management) service. An unauthenticated attacker can inject control characters into the SUPI parameter, causing UDM to forward a malformed request to UDR and return a 500 Internal Server Error response that exposes internal infrastructure details. This vulnerability is fixed in 4.2.2.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","score":7.7,"severity":null}],"references":["https://github.com/free5gc/free5gc/security/advisories/GHSA-585v-hcgf-jhfr"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-32554","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 27, 2026, 3:53:45 PM","dateUpdated":"May 28, 2026, 2:14:46 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-32554","identifiers":["EUVD-2026-32554","CVE-2026-42459","GHSA-585v-hcgf-jhfr"]},"retained":false,"historicalAffected":[]},{"revision":"c8db9cd7b2ea40fa9c976b7ff6f8a924","observedAt":"2026-10-25T10:17:10.603+00:00","statement":{"source":"nvd","id":"CVE-2026-42459","aliases":[],"title":"free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, the free5GC UDM component fails to validate the supi path parameter in six GET handlers of the nudm-sdm (Subscriber Data Management) service. An unauthenticate…","description":"free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, the free5GC UDM component fails to validate the supi path parameter in six GET handlers of the nudm-sdm (Subscriber Data Management) service. An unauthenticated attacker can inject control characters into the SUPI parameter, causing UDM to forward a malformed request to UDR and return a 500 Internal Server Error response that exposes internal infrastructure details. This vulnerability is fixed in 4.2.2.","state":0,"publishedAt":"2026-05-27T17:16:35.593+00:00","modifiedAt":"2026-10-14T20:10:00.19+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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","score":7.7,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"severity":"HIGH"}],"references":["https://github.com/free5gc/free5gc/security/advisories/GHSA-585v-hcgf-jhfr"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-42459","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-20","CWE-209"],"productCriteria":["cpe:2.3:a:free5gc:free5gc:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-05-27T17:16:35.593","lastModified":"2026-10-14T20:10:00.190"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-42459","identifiers":["CVE-2026-42459"]},"retained":false,"historicalAffected":[]},{"revision":"af5813e036cf43dba161f7b669894bd8","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-585v-hcgf-jhfr","aliases":["CVE-2026-42459","GO-2026-5138"],"title":"Free5GC UDM has Improper Input Validation and Generation of Error Messages Containing Sensitive Information","description":"## Summary\n\nThe free5GC UDM component fails to validate the `supi` path parameter in six GET handlers of the `nudm-sdm` (Subscriber Data Management) service. An unauthenticated attacker can inject control characters into the SUPI parameter, causing UDM to forward a malformed request to UDR and return a `500 Internal Server Error` response that exposes internal infrastructure details.\n\n## Affected Package\n\n- **Ecosystem**: Go\n- **Package**: `github.com/free5gc/udm`\n- **Affected versions**: `<= v1.4.2`\n- **Patched versions**: none yet\n\n## Details\n\nThe following handlers in `internal/sbi/api_subscriberdatamanagement.go` do not call `validator.IsValidSupi()` before passing the `supi` parameter to the processor:\n\n- `HandleGetSmfSelectData` — `GET /:supi/smf-select-data`\n- `HandleGetSupi` — `GET /:supi`\n- `HandleGetTraceData` — `GET /:supi/trace-data`\n- `HandleGetUeContextInSmfData` — `GET /:supi/ue-context-in-smf-data`\n- `HandleGetNssai` — `GET /:supi/nssai`\n- `HandleGetSmData` — `GET /:supi/sm-data`\n\nBy contrast, `HandleGetAmData` in the same file correctly validates the `supi` parameter:\n\n```go\n// HandleGetAmData — correctly validates (not vulnerable)\nsupi := c.Params.ByName(\"supi\")\nif !validator.IsValidSupi(supi) {\n    c.JSON(http.StatusBadRequest, problemDetail)\n    return\n}\n\n// HandleGetSmfSelectData — missing validation (vulnerable)\nsupi := c.Params.ByName(\"supi\")\n// ← no validator.IsValidSupi(supi) call\ns.Processor().GetSmfSelectDataProcedure(c, supi, plmnID, supportedFeatures)\n```\n\nThe malformed `supi` is passed to the processor which constructs a URL to forward the request to UDR. Go's `net/url` parser rejects the URL containing control characters and returns an error. UDM catches this error and responds with a `500 SYSTEM_FAILURE` that includes the full internal UDR URL in the `detail` field.\n\n**This is a missed fix of CVE-2026-27642**, which applied the same `validator.IsValidSupi()` check only to `internal/sbi/api_ueauthentication.go` (`HandleConfirmAuth` and `HandleGenerateAuthData`), leaving the SDM service handlers unpatched.\n\n## Proof of Concept\n\n```bash\n# Vulnerable — returns 500 with internal UDR URL exposed\ncurl \"http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/smf-select-data\"\ncurl \"http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/nssai\"\ncurl \"http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/trace-data\"\ncurl \"http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/sm-data\"\n\n# Expected (vulnerable) response:\n# HTTP 500\n# {\n#   \"title\": \"System failure\",\n#   \"status\": 500,\n#   \"detail\": \"parse \\\"http://udr.internal:80/nudr-dr/v2/subscription-data/imsi-22277\\x00INJECTED//provisioned-data/smf-selection-subscription-data\\\": net/url: invalid control character in URL\",\n#   \"cause\": \"SYSTEM_FAILURE\"\n# }\n\n# Protected endpoint (for comparison) — returns 400\ncurl \"http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/am-data\"\n# HTTP 400\n# {\"title\":\"Malformed request syntax\",\"status\":400,\"detail\":\"Supi is invalid\",\"cause\":\"MANDATORY_IE_INCORRECT\"}\n```\n\n## Impact\n\nAn unauthenticated remote attacker can send a crafted GET request to any of the six affected endpoints to obtain:\n\n1. Internal UDR hostname and port\n2. Full internal API path structure (`/nudr-dr/v2/subscription-data/...`)\n3. UDR API version\n4. Internal service naming convention\n\nThis information can be used to facilitate further attacks against the UDR or other internal 5G core components.\n\n## Recommended Fix\n\nAdd `validator.IsValidSupi()` to all six affected handlers, following the pattern already used in `HandleGetAmData`:\n\n```go\nsupi := c.Params.ByName(\"supi\")\nif !validator.IsValidSupi(supi) {\n    problemDetail := models.ProblemDetails{\n        Title:  \"Malformed request syntax\",\n        Status: http.StatusBadRequest,\n        Detail: \"Supi is invalid\",\n        Cause:  \"MANDATORY_IE_INCORRECT\",\n    }\n    c.Set(sbi.IN_PB_DETAILS_CTX_STR, http.StatusText(int(problemDetail.Status)))\n    c.JSON(int(problemDetail.Status), problemDetail)\n    return\n}\n```","state":0,"publishedAt":"2026-05-07T02:09:58+00:00","modifiedAt":"2026-06-25T18:56:29.5017722+00:00","affected":[{"ecosystem":"Go","name":"github.com/free5gc/udm","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"1.4.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/free5gc/free5gc/security/advisories/GHSA-585v-hcgf-jhfr","https://github.com/free5gc/free5gc/security/advisories/GHSA-h4wg-rp7m-8xx4","https://nvd.nist.gov/vuln/detail/CVE-2026-42459","https://github.com/free5gc/free5gc","https://github.com/free5gc/udm/blob/v1.4.3/internal/sbi/api_subscriberdatamanagement.go"],"sourceUrl":"https://github.com/advisories/GHSA-585v-hcgf-jhfr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-585v-hcgf-jhfr","identifiers":["GHSA-585v-hcgf-jhfr","CVE-2026-42459","GO-2026-5138"]},"retained":false,"historicalAffected":[]},{"revision":"15368f27467d40b688b0385317f80db1","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5138","aliases":["CVE-2026-42459","GHSA-585v-hcgf-jhfr"],"title":"Free5GC UDM has Improper Input Validation and Generation of Error Messages Containing Sensitive Information in github.com/free5gc/udm","description":"Free5GC UDM has Improper Input Validation and Generation of Error Messages Containing Sensitive Information in github.com/free5gc/udm","state":0,"publishedAt":"2026-06-25T18:26:48+00:00","modifiedAt":"2026-06-25T18:45:26.4550483+00:00","affected":[{"ecosystem":"Go","name":"github.com/free5gc/udm","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/free5gc/free5gc/security/advisories/GHSA-585v-hcgf-jhfr","https://nvd.nist.gov/vuln/detail/CVE-2026-42459","https://github.com/free5gc/free5gc/security/advisories/GHSA-h4wg-rp7m-8xx4","https://github.com/free5gc/udm/blob/v1.4.3/internal/sbi/api_subscriberdatamanagement.go"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5138","license":"OSV · upstream source license applies","key":"osv:GO-2026-5138","identifiers":["GO-2026-5138","CVE-2026-42459","GHSA-585v-hcgf-jhfr"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-09T23:04:35.5115198+00:00","complete":true,"records":1773,"lastAttemptAt":"2026-11-09T23:04:35.5115198+00:00","lastSuccessAt":"2026-11-09T23:04:35.7199619+00:00","error":null,"lastVerifiedAt":"2026-11-09T23:04:35.7199622+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-24e6fde7b744113daefb8f6135035fb8a5c69c9617c9c0d40574a0376532ffd3-dd2a77f649768340b3da193d98d597fa46c17d01cc081b31103212155ce6cd5d","complete":true,"records":421715,"lastAttemptAt":"2026-11-09T23:02:22.2942221+00:00","lastSuccessAt":"2026-11-09T23:02:22.1588494+00:00","error":null,"lastVerifiedAt":"2026-11-09T23:02:22.2942221+00:00","snapshotPublishedAt":"2026-11-09T22:27:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-47ea30d05491460caa5ce44b8cba58f9","complete":false,"records":13686,"lastAttemptAt":"2026-11-09T23:17:21.9523007+00:00","lastSuccessAt":"2026-11-09T23:17:21.948+00:00","error":"35 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-09T23:17:21.948+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13669,"expectedIdentifiers":13739,"failedIdentifiers":35},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-09T23:04:35.5115198+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-09T23:04:35.5115198+00:00","lastSuccessAt":"2026-11-09T23:04:35.7206951+00:00","error":null,"lastVerifiedAt":"2026-11-09T23:04:35.7206952+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-adb512372f6d42c7b17c6efd528c7d57","complete":false,"records":13692,"lastAttemptAt":"2026-11-09T23:05:02.0476605+00:00","lastSuccessAt":"2026-11-09T23:05:02.041+00:00","error":null,"lastVerifiedAt":"2026-11-09T23:05:02.041+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13704,"expectedIdentifiers":13739,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-f16b02cc2b44d5413157015d03b8f1bf0217fdb477438e8f5866bcf35b179abd","complete":true,"records":9930,"lastAttemptAt":"2026-11-09T23:04:35.3476978+00:00","lastSuccessAt":"2026-11-09T23:04:34.9543246+00:00","error":null,"lastVerifiedAt":"2026-11-09T23:04:35.3476978+00:00","snapshotPublishedAt":"2026-11-09T23:03:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-09T23:02:22.4504307+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-09T23:02:22.4504307+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-761ecc9061239b0da572dc9254c6f384c1d19339eb08408c436647a2f26129e9","complete":true,"records":3064,"lastAttemptAt":"2026-11-09T23:04:35.4661135+00:00","lastSuccessAt":"2026-11-09T17:05:03.4044794+00:00","error":null,"lastVerifiedAt":"2026-11-09T23:04:35.4661135+00:00","snapshotPublishedAt":"2026-11-09T16:33:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-fe5caa127af053959ad6ee208ca92e895a6f5d3c14202fe035925df5f35ffed2","complete":true,"records":231329,"lastAttemptAt":"2026-11-09T23:04:24.8967882+00:00","lastSuccessAt":"2026-11-09T23:04:23.4601156+00:00","error":null,"lastVerifiedAt":"2026-11-09T23:04:24.8967882+00:00","snapshotPublishedAt":"2026-11-09T22:48:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}