Catégories
CVE-2026-53551

Vulnérabilité dans github.com/free5gc/free5gc (CVE-2026-53551)

Résumé

Vulnérabilité dans github.com/free5gc/free5gc (CVE-2026-53551). Risque d'opérations non autorisées ou de divulgation. Exploitable via POST /nausf-auth/v1/ue-authentications. Atténuation : mise à jour vers 4.2.2 ou plus.

Description d'origine

La description telle que publiée par la source (souvent en anglais).

Summary

The free5GC AUSF (Authentication Server Function) does not validate the supiOrSuci field in UE authentication requests. Null bytes (\x00) and other control characters pass through JSON parsing unchanged and are forwarded to the UDM in an unescaped URL path. This causes Go's net/url.Parse() to fail, returning HTTP 500 "System failure" and leaking internal stack traces. An unauthenticated attacker can trigger this at scale—4.1% of special_chars mutations produce HTTP 500—causing denial of service for all subscribers attempting authentication through the affected AUSF. CWE-20 (Improper Input Validation).


Details

The vulnerability lies in the AUSF's POST /nausf-auth/v1/ue-authentications handler. The JSON body includes a supiOrSuci field:

{"supiOrSuci": "imsi-208930000000031", "servingNetworkName": "...", "authType": "5G_AKA"}

The AUSF parses this JSON (Go's encoding/json accepts null bytes in strings per RFC 8259), then constructs a UDM URL by directly embedding the raw supiOrSuci value:

GET /nudm-ueau/v1/{supiOrSuci}/security-information/...

When supiOrSuci contains null bytes (\x00), the resulting URL is illegal under RFC 3986. Go's net/url.Parse() fails, and the error propagates as an unhandled internal error, returning HTTP 500 with a stack trace in the response body:

{"error":{"status":"INTERNAL_SERVER_ERROR","message":"System failure"}}

The AUSF container log shows: `net/url: invalid control ch…

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

Résumé généré automatiquement

Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.

Une vulnérabilité référencée CVE-2026-53551 a été découverte dans github.com/free5gc/free5gc.
Des attaquants peuvent cibler un point d'entrée spécifique comme POST /nausf-auth/v1/ue-authentications à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour github.com/free5gc/free5gc vers 4.2.2 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/free5gc/free5gc CVE-2026-53551 » sur le site de l'éditeur.

CVE-2026-53551 (github.com/free5gc/free5gc) — CWE-20
Surface d'attaque : POST /nausf-auth/v1/ue-authentications / GET /nudm-ueau/v1/{supiOrSuci}/security-information/... / GET /nudm-ueau/v1/imsi- / supiOrSuci
Correctif : 4.2.2 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.

❓ Quel est le problème

Une vulnérabilité (CWE-20) affecte github.com/free5gc/free5gc. Les attaquants atteignent le code vulnérable via POST /nausf-auth/v1/ue-authentications.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de github.com/free5gc/free5gc. Surface d'attaque : POST /nausf-auth/v1/ue-authentications / GET /nudm-ueau/v1/{supiOrSuci}/security-information/... / GET /nudm-ueau/v1/imsi- / supiOrSuci.

🔥 Gravité

Gravité : ?. Risque d'opérations non autorisées ou de divulgation.

🔧 Comment corriger

Mettre à jour vers 4.2.2.

🛡️ Contournement

En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.

🔍 Détection

Recherchez dans les logs webserver/proxy/WAF des requêtes anormales vers POST /nausf-auth/v1/ue-authentications (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/free5gc/free5gc.

Actions de réponse

Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre

  1. 1
    Identify exposure identify
    grep -r 'github.com/free5gc/free5gc' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/free5gc/free5gc を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Hunt for indicators of compromise detect
    grep 'POST /nausf-auth/v1/ue-authentications' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'

    アクセスログで POST /nausf-auth/v1/ue-authentications への異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。

  3. 3
    Apply patch patch
    Upgrade github.com/free5gc/free5gc to 4.2.2

    ステージング環境で 4.2.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。

  4. 4
    Post-deployment verification verify
    Replay attack against POST /nausf-auth/v1/ue-authentications on staging to confirm patch closes the vector

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。

Paquets affectés

go github.com/free5gc/free5gc
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.2.2"}]}]
go github.com/free5gc/ausf
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.5"}]}]

Références

Nous utilisons des cookies pour l'analyse d'audience et la mesure publicitaire. Ce réglage s'applique à tous les sites de Game co., Ltd. En savoir plus