CVE-2023-46324: Github.com/free5gc/udm Free5GC Udm Vulnerable To Invalid Vulnerability

HIGH
Advisory Identifier: GHSA-cqvv-r3g3-26rf
CVSS 7.5
CWE-327 CWE-347
Published
Advisory Summary

CVE-2023-46324 is a HIGH (CVSS 7.5) free5gc udm vulnerable to invalid vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting Github.com/free5gc/udm libraries in the Go ecosystem. The issue involves free5gc udm vulnerable to invalid curve attack. Remediation is available by upgrading affected packages to version 1.2.0.

CVE-2023-46324 at a Glance

CVE Identifier CVE-2023-46324
GHSA Identifier GHSA-cqvv-r3g3-26rf
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-327: Use of a Broken or Risky Cryptographic Algorithm
Affected Product Github.com/free5gc/udm
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-46324

To remediate this vulnerability, upgrade all affected Github.com/free5gc/udm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/free5gc/udm fixed: 1.2.0
Upgrade github.com/free5gc/udm to 1.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/free5gc/udm

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-46324, inspect your project dependencies for Github.com/free5gc/udm:

inspect dependencies for github.com/free5gc/udm

Analyze the terminal output to locate any version of Github.com/free5gc/udm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. In Github.com/free5gc/udm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

pkg/suci/suci.go in free5GC udm before 1.2.0, when Go before 1.19 is used, allows an Invalid Curve Attack because it may compute a shared secret via an uncompressed public key that has not been validated. An attacker can send arbitrary SUCIs to the UDM, which tries to decrypt them via both its private key and the attacker's public key.

CVE-2023-46324 Affected Github.com/free5gc/udm Versions

1 component(s)
Fixed Versions:
1.2.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/free5gc/udm
Go
< 1.2.0
1.2.0

References

Frequently Asked Questions

What is CVE-2023-46324?
CVE-2023-46324 is a security vulnerability in Github.com/free5gc/udm involving free5GC udm vulnerable to Invalid Curve Attack under CWE-327: Use of a Broken or Risky Cryptographic Algorithm.
Which Github.com/free5gc/udm versions are affected?
Affected versions include releases prior to 1.2.0 across affected packages: github.com/free5gc/udm.
What version fixes CVE-2023-46324?
Upgrading to 1.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/free5gc/udm affected?
Yes, github.com/free5gc/udm is affected in releases prior to 1.2.0. Upgrade your dependency to 1.2.0 or later.
What is the CVSS score of CVE-2023-46324?
CVE-2023-46324 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-46324?
CVE-2023-46324 is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm (The product uses a broken or risky cryptographic algorithm or protocol.).
How can I check Go dependencies for CVE-2023-46324?
Run the dependency tree command: 'inspect dependencies for github.com/free5gc/udm'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cqvv-r3g3-26rf",
  "modified" : "2023-10-31T22:07:50Z",
  "published" : "2023-10-23T03:30:30Z",
  "aliases" : [ "CVE-2023-46324" ],
  "summary" : "free5GC udm vulnerable to Invalid Curve Attack",
  "details" : "pkg/suci/suci.go in free5GC udm before 1.2.0, when Go before 1.19 is used, allows an Invalid Curve Attack because it may compute a shared secret via an uncompressed public key that has not been validated. An attacker can send arbitrary SUCIs to the UDM, which tries to decrypt them via both its private key and the attacker's public key.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/free5gc/udm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46324"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/udm/pull/20"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/udm/commit/5e1479cc686f058992557669b13fd3761a1b6024"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/free5gc/udm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/udm/compare/v1.1.1...v1.2.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.gsma.com/security/wp-content/uploads/2023/10/0073-invalid_curve.pdf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-327", "CWE-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-24T02:00:10Z",
    "nvd_published_at" : "2023-10-23T01:15:07Z"
  }
}