CVE-2026-125335: 
NixOS analisi e mitigazione delle vulnerabilità

Panoramica

CVE-2026-125335 is an Ed25519 signature forgery vulnerability in node-forge (also called Forge), a native JavaScript implementation of Transport Layer Security. The flaw exists in ed25519.verify(), which fails to reject small-order public keys or their non-canonical encodings, allowing an attacker who can supply the public key to forge valid signatures for arbitrary messages without possessing the corresponding private key. All versions of node-forge up to and including 1.4.2 are affected; the issue was reported by @analisaperlengkapan, published to the GitHub Advisory Database on November 10, 2026, and fixed in version 1.4.3 released November 4, 2026. It carries a CVSS v3.1 base score of 3.7 (Low) (Github Advisory, Forge Security Advisory).

Dettagli tecnici

The root cause is classified as CWE-347 (Improper Verification of Cryptographic Signature). In lib/ed25519.js, the crypto_sign_open() function decodes the public key A using unpackneg(), which only verifies that the point lies on the Ed25519 curve but does not check whether it is a small-order point (the identity point or the other 7 points of order 2, 4, or 8, including non-canonical encodings where y >= p). The verification equation R == [S]B - [k]A with k = SHA-512(R || A || M) reduces to R == [k](-A) when S = 0; for a small-order A, [k](-A) cycles through at most 8 small-order points, so an attacker can enumerate valid R values. For the identity key (01 00 … 00), R = identity and S = 0 passes verification for every possible message. The fix in commit 1b77e6f adds an _isSmallOrder() check that computes [8]P and rejects the key if the result is the identity point, covering all small-order points and their non-canonical encodings (Forge Security Advisory, Fix Commit).

Impatto

Successful exploitation allows an unauthenticated attacker to produce Ed25519 signatures that verify as valid for arbitrary messages without possessing the private key, defeating proof-of-possession, attribution, non-repudiation, and deduplication checks. The integrity impact is limited to scenarios where the application accepts attacker-controlled public keys (e.g., keys embedded in signed data, self-registered keys, or keys in attacker-controlled documents); there is no confidentiality or availability impact. Applications that only verify signatures against internally generated or otherwise trusted public keys are not affected, and signatures produced under legitimately generated keys cannot be forged via this method (Github Advisory).

Sfruttabilità

A proof-of-concept is publicly available in the official security advisory and is included in the node-forge repository at tests/pocs/GHSA-6889-vf6x-f3g5.js; it demonstrates that forge.ed25519.verify() returns true for any message under the identity public key with a zero-scalar signature on versions ≤ 1.4.2. Exploitation requires no authentication or user interaction but does require the attacker to control the public key supplied to the verifier, making it a high-complexity attack in practice. The EPSS score is approximately 0.20–0.23%, and there is no evidence of in-the-wild exploitation or CISA KEV catalog inclusion at this time (Github Advisory, Forge Security Advisory).

Fasi di sfruttamento

  1. Identify a vulnerable target: Locate an application using node-forge ≤ 1.4.2 that calls forge.ed25519.verify() with a public key supplied or influenced by the attacker (e.g., a key embedded in a JWT, a self-registered user key, or a key in an attacker-controlled document).
  2. Construct a small-order public key: Use the 32-byte identity point as the public key: IDENTITY = Buffer.concat([Buffer.from([0x01]), Buffer.alloc(31)]) (i.e., 01 00 … 00). Other small-order points of order 2, 4, or 8 can also be used for probabilistic forgery against other messages.
  3. Construct a forged signature: Build a 64-byte signature with R = IDENTITY and S = 00 … 00 (all zeros): SIG = Buffer.concat([IDENTITY, Buffer.alloc(32)]).
  4. Submit the forged signature: Call the verifier with any target message, the forged signature, and the identity public key — for example: forge.ed25519.verify({message: 'admin=true', encoding: 'utf8', signature: SIG.toString('binary'), publicKey: IDENTITY.toString('binary')}). On versions ≤ 1.4.2, this returns true for every message under the identity key.
  5. Achieve the objective: The application accepts the forged signature as valid, bypassing proof-of-possession, authentication, or non-repudiation checks tied to that key (Forge Security Advisory, Fix Commit).

Indicatori di compromissione

  • Application Logs: Signature verification calls that succeed for messages that should not be signed by the presented key; repeated verification attempts with the same public key across different messages (consistent with small-order key enumeration).
  • Input Data: Incoming public keys whose 32-byte encoding matches known small-order points: 0100000000000000000000000000000000000000000000000000000000000000 (identity), ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f (order 2), or other libsodium-blocked encodings.
  • Signature Artifacts: Signatures where the S scalar component (bytes 32–63) is all zeros (00…00) and the R component (bytes 0–31) matches a small-order point encoding.
  • Behavioral: Authentication or authorization bypass events where a user presents a self-supplied public key and gains elevated privileges (e.g., admin=true claims) without a corresponding legitimate private key (Forge Security Advisory).

Mitigazione e soluzioni alternative

Upgrade node-forge to version 1.4.3 or later, which rejects any public key A where [8]A equals the identity point, covering all small-order points and their non-canonical encodings (Forge Release v1.4.3, Github Advisory). As a workaround prior to patching, applications should validate incoming public keys before passing them to ed25519.verify() by rejecting any key whose 32-byte encoding matches the known small-order point encodings blocked by libsodium (including 01 00 … 00), or by restricting verification to keys that were generated internally or obtained from a trusted source. Switching to Node.js's built-in crypto.verify() (backed by OpenSSL) is also an option, as it already rejects these signatures.

Reazioni della comunità

The vulnerability was reported by community researcher @analisaperlengkapan and acknowledged by node-forge maintainer @davidlehn, who coordinated the fix and release of version 1.4.3 alongside four other security fixes in the same release cycle (Forge PR #1169). Red Hat and Microsoft both tracked the advisory, indicating downstream awareness in enterprise ecosystems (Github Advisory). No significant broader media coverage or notable social media discussion has been identified beyond standard vulnerability database aggregation.

Risorse aggiuntive

Stato delle patch per la distribuzione Linux

Disponibilità delle patch per le principali distribuzioni Linux e relative versioni.

Ubuntu

Sconosciuto

focal (esm-apps)

node-node-forge

Sconosciuto

jammy

node-node-forge

Sconosciuto

jammy (esm-apps)

node-node-forge

Sconosciuto

RHEL / CentOS

Interessato

RHEL 8

pcs.src

Interessato

RHEL 9

pcs.src

Interessato

RHEL 10

pcs.src

Interessato

Fonte: Questo report è stato generato tramite IA

Vulnerabilità correlate di NixOS:

CVE ID

Gravità

Punteggio

Tecnologie

Nome del componente

Exploit CISA KEV

Dispone di patch

Data di pubblicazione

CVE-2026-136716CRITICAL9.8
  • NixOS logoNixOS
  • drupal
SìSìNov 26, 2026
CVE-2026-132165CRITICAL9.8
  • NixOS logoNixOS
  • drupal
SìSìNov 26, 2026
CVE-2026-61513HIGH7.3
  • NixOS logoNixOS
  • veracrypt
NoNoNov 24, 2026
CVE-2026-61512HIGH7.3
  • NixOS logoNixOS
  • veracrypt
NoSìNov 24, 2026
CVE-2026-125283MEDIUM6.9
  • NGINX logoNGINX
  • nginx-mod-headers-more
NoSìNov 18, 2026

Valutazione gratuita delle vulnerabilità

Valuta la tua postura di sicurezza del cloud

Valuta le tue pratiche di sicurezza del cloud in 9 domini di sicurezza per stabilire un benchmark del tuo livello di rischio e identificare le lacune nelle tue difese.

Richiedi valutazione

Ulteriori risorse Wiz

Richiedi una demo personalizzata

Pronti a vedere Wiz in azione?

"La migliore esperienza utente che abbia mai visto offre piena visibilità ai carichi di lavoro cloud."
David EstlickCISO (CISO)
"Wiz fornisce un unico pannello di controllo per vedere cosa sta succedendo nei nostri ambienti cloud."
Adam FletcherResponsabile della sicurezza
"Sappiamo che se Wiz identifica qualcosa come critico, in realtà lo è."
Greg PoniatowskiResponsabile della gestione delle minacce e delle vulnerabilità