Skip to content
Heist/ feed
Back to feed
HighFix available

nodejs — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-30590

The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only generates a private key if none has been set yet, but the function is also needed to compute the corresponding public key after calling setPrivateKey(). However, the documentation says this API call: "Generates private and public Diffie-Hellman key values". The documented behavior is very different from the actual behavior, and this difference could easily lead to security issues in applications that use these APIs as the DiffieHellman may be used as the basis for application-level security, implications are consequently broad.

Products
nodejs
Affected versions
18.13.0+dfsg1-1, 18.13.0+dfsg1-1.1, 18.19.0+dfsg-1, 18.19.0+dfsg-2, 18.19.0+dfsg-3, 18.19.0+dfsg-4, 18.19.0+dfsg-5
Fixed versions
18.13.0+dfsg1-1.1, 18.19.0+dfsg-6~deb12u1
CVEs
CVE-2023-30590
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 11:07 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-30590

core-osv · Original source

Published 28 Nov 2023, 20:15 UTC

The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only generates a private key if none has been set yet, but the function is also needed to compute the corresponding public key after calling setPrivateKey(). However, the documentation says this API call: "Generates private and public Diffie-Hellman key values". The documented behavior is very different from the actual behavior, and this difference could easily lead to security issues in applications that use these APIs as the DiffieHellman may be used as the basis for application-level security, implications are consequently broad.

osv:DEBIAN-CVE-2023-30590

nodejs

Fixed versions: 18.19.0+dfsg-6~deb12u1

nodejs

Fixed versions: 18.13.0+dfsg1-1.1

nodejs

Fixed versions: 18.13.0+dfsg1-1.1

Complete source record
{
  "id": "dfa7094f62fb8eeaf6bde1a54695fa8d4f023fe034bc4da58eb65c60ceb05764",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-30590",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-30590",
    "summary": "The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only generates a private key if none has been set yet, but the function is also needed to compute the corresponding public key after calling setPrivateKey(). However, the documentation says this API call: \"Generates private and public Diffie-Hellman key values\". The documented behavior is very different from the actual behavior, and this difference could easily lead to security issues in applications that use these APIs as the DiffieHellman may be used as the basis for application-level security, implications are consequently broad.",
    "evidence": "osv:DEBIAN-CVE-2023-30590",
    "products": [
      {
        "name": {
          "value": "nodejs",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "18.19.0+dfsg-6~deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "18.13.0+dfsg1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "18.13.0+dfsg1-1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "18.19.0+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "18.19.0+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "18.19.0+dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "18.19.0+dfsg-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "18.19.0+dfsg-5",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nodejs",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "18.13.0+dfsg1-1.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "nodejs",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "18.13.0+dfsg1-1.1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2023-30590",
      "aliases": [
        "DEBIAN-CVE-2023-30590"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "18.19.0+dfsg-6~deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "nodejs",
            "purl": "pkg:deb/debian/nodejs?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "18.13.0+dfsg1-1",
            "18.13.0+dfsg1-1.1",
            "18.19.0+dfsg-1",
            "18.19.0+dfsg-2",
            "18.19.0+dfsg-3",
            "18.19.0+dfsg-4",
            "18.19.0+dfsg-5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30590.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "18.13.0+dfsg1-1.1"
                }
              ]
            }
          ],
          "package": {
            "name": "nodejs",
            "purl": "pkg:deb/debian/nodejs?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30590.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "18.13.0+dfsg1-1.1"
                }
              ]
            }
          ],
          "package": {
            "name": "nodejs",
            "purl": "pkg:deb/debian/nodejs?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30590.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-09T09:47:24.671002851Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-30590"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-30590"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-30590",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 111470,
  "published_at": "2023-11-28T20:15:07.48+00:00"
}