CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-135388

CVE-2026-135388: Cryptographic Signature Verification Bypass in Pion DTLS

Alon Barad
Alon Barad
Software Engineer

Nov 30, 2026·10 min read·4 visits

Executive Summary (TL;DR)

A signature scheme confusion flaw in Pion DTLS allows unauthenticated network attackers to bypass DTLS handshake signature verification and impersonate peers using only their public certificates, defeating WebRTC SDP fingerprint checks.

CVE-2026-135388 (GHSA-7c2r-jhm9-43vf) is an improper verification of cryptographic signature vulnerability (CWE-347) in Pion DTLS, a pure Go implementation of Datagram Transport Layer Security (RFC 6347). The vulnerability stems from signature scheme confusion and missing cryptographic parameter binding in the handshake verification functions verifyKeySignature and verifyCertificateVerify. By presenting a genuine peer certificate paired with an incompatible or digest-less signature hash algorithm on the wire, an unauthenticated network adversary can bypass signature verification without possessing the peer's private key. This allows peer impersonation and full compromise of confidentiality and integrity in DTLS-protected channels, including WebRTC sessions utilizing SDP certificate fingerprint verification.

Vulnerability Overview

Pion DTLS (github.com/pion/dtls) is a Go library implementing Datagram Transport Layer Security (DTLS 1.2, RFC 6347). It provides transport-layer encryption and authentication for datagram protocols and serves as a foundational component in the Go WebRTC ecosystem (pion/webrtc), Selective Forwarding Units (SFUs), VoIP gateways, and media routing services.

CVE-2026-135388 (tracked as GitHub Security Advisory GHSA-7c2r-jhm9-43vf and internal discovery identifier ANT-2026-0Q4PYECH) is a cryptographic verification flaw classified under CWE-347 (Improper Verification of Cryptographic Signature). The vulnerability affects Pion DTLS versions >= 2.0.0, <= 2.2.12, >= 3.0.0, < 3.1.13, and >= 4.0.0-rc.1, <= 4.0.0-rc.5.

During the DTLS handshake, endpoints authenticate each other by verifying digital signatures over ephemeral key exchange parameters (ServerKeyExchange) or the accumulated handshake transcript (CertificateVerify). In vulnerable versions of Pion DTLS, the signature verification routines select the cryptographic verification primitive based exclusively on the public key type inside the peer's X.509 certificate, while independently computing the message digest using the HashAlgorithm byte advertised by the peer on the wire.

Because the implementation fails to bind the wire signature scheme, the public key algorithm, and the hash algorithm together, an attacker can specify a mismatched or degenerate hash algorithm (such as hash.Ed25519, hash.None, or an unmapped algorithm identifier where CryptoHash() == 0). This causes the verification routine to evaluate a signature against an empty or degenerate digest rather than a cryptographically bound hash of the handshake parameters, allowing an unauthenticated adversary on the network path to forge handshake signatures without possessing the target peer's private key.

Root Cause Analysis

In DTLS 1.2 (RFC 6347 / RFC 5246), peer authentication during an ephemeral Diffie-Hellman handshake relies on the DigitallySigned structure transmitted within ServerKeyExchange (Flight 4, server authentication) and CertificateVerify (Flight 5, client authentication). On the wire, a DigitallySigned element prefixes the raw signature bytes with a two-byte SignatureAndHashAlgorithm field consisting of a 1-byte HashAlgorithm (e.g., 0x04 for SHA-256, 0x08 for Ed25519/Intrinsic, 0x00 for None) and a 1-byte SignatureAlgorithm (e.g., 0x01 for RSA, 0x03 for ECDSA, 0x07 for Ed25519, 0x08 for RSA-PSS).

Prior to version v3.1.13, the functions verifyKeySignature and verifyCertificateVerify in crypto.go validated the certificate's OID signature algorithm via validateSignatureAlgOID(certificate, signatureAlgorithm), but did not verify that the wire signatureAlgorithm and hashAlgorithm formed a valid, compatible tuple for certificate.PublicKey. Instead, the code branched directly on the Go type of certificate.PublicKey (*ecdsa.PublicKey, *rsa.PublicKey, or ed25519.PublicKey).

Within the *rsa.PublicKey and *ecdsa.PublicKey branches, the message or handshake transcript is hashed prior to signature verification using the peer-supplied hashAlgorithm. In Pion DTLS, hash algorithms such as hash.None (0x00), hash.Ed25519 (0x08), or unrecognized byte values (hash.Algorithm(255)) return 0 when hashAlgorithm.CryptoHash() is invoked, because Ed25519 performs pure two-pass signing over raw messages without a pre-hash step and hash.None represents no digest.

When an attacker pairs an RSA or ECDSA certificate with a wire hashAlgorithm whose CryptoHash() value is 0 (for example, sending scheme 0x0801 pairing hash.Ed25519 with signature.RSA, or pairing hash.Ed25519 with signature.ECDSA), the digest derivation produces an empty digest rather than returning an error. Because the digest is static and empty, the signature check is completely decoupled from the actual handshake randoms, ephemeral ECDH public key, or handshake transcript. Similarly, cross-scheme confusion occurs when an RSA key is labeled as ECDSA on the wire, an ECDSA key is labeled as RSA, or an RSA-PSS signature algorithm (RSA_PSS_RSAE_SHA256) is paired with an incompatible wire hash such as hash.SHA384.

Code Analysis

The remediation for CVE-2026-135388 was introduced in Pull Request #1229 via commit cb560535461a483f2930a91a474e72fa6b615b87 (for the v3 branch) and commit 87aff19290780eb4b2db31d1402faf8f425a8ff1 (for the main / v4 branch). The fix introduces a dedicated validation function, validateHandshakeSignatureScheme, in crypto.go and invokes it across all four handshake signing and verification entry points: generateKeySignature, verifyKeySignature, generateCertificateVerify, and verifyCertificateVerify.

// validateHandshakeSignatureScheme binds the wire scheme to the key and hash.
// RSA and ECDSA must never sign or verify a digest-less handshake.
func validateHandshakeSignatureScheme(
	publicKey crypto.PublicKey,
	hashAlgorithm hash.Algorithm,
	signatureAlgorithm signature.Algorithm,
) error {
	// 1. Strict binding for Ed25519 public keys:
	// Must explicitly use both signature.Ed25519 and hash.Ed25519.
	if _, ok := publicKey.(ed25519.PublicKey); ok {
		if signatureAlgorithm == signature.Ed25519 && hashAlgorithm == hash.Ed25519 {
			return nil
		}
 
		return errInvalidSignatureAlgorithm
	}
	// 2. Reject any digest-less or unmapped hash algorithm for non-Ed25519 keys.
	// Prevents hash.None, hash.Ed25519, or unknown hash values from producing empty digests.
	if hashAlgorithm.CryptoHash() == 0 {
		return errInvalidSignatureAlgorithm
	}
	// 3. Enforce strict key-to-signature-algorithm matching for ECDSA and RSA.
	switch publicKey.(type) {
	case *ecdsa.PublicKey:
		if signatureAlgorithm == signature.ECDSA {
			return nil
		}
	case *rsa.PublicKey:
		// GetPSSHash returns hash.None for non-PSS schemes, which the
		// nonzero hash check above already excludes.
		if signatureAlgorithm == signature.RSA ||
			signatureAlgorithm.GetPSSHash() == hashAlgorithm {
			return nil
		}
	}
 
	return errInvalidSignatureAlgorithm
}

In verifyKeySignature and verifyCertificateVerify, validateHandshakeSignatureScheme is called immediately after validateSignatureAlgOID and before the switch pubKey := certificate.PublicKey.(type) block:

func verifyKeySignature(
	clientRandom, serverRandom, remoteKeySignature, publicKey []byte,
	namedCurve elliptic.Curve,
	certificate *x509.Certificate,
	hashAlgorithm hash.Algorithm,
	signatureAlgorithm signature.Algorithm,
) error {
	if len(certificate.Raw) == 0 {
		return errLengthMismatch
	}
	if err := validateSignatureAlgOID(certificate, signatureAlgorithm); err != nil {
		return err
	}
	// Added in patch: enforces cryptographic binding between certificate key, wire hash, and wire signature scheme
	if err := validateHandshakeSignatureScheme(certificate.PublicKey, hashAlgorithm, signatureAlgorithm); err != nil {
		return err
	}
 
	switch pubKey := certificate.PublicKey.(type) {
	case ed25519.PublicKey:
		// ...

The fix is comprehensive for handshake signature verification because it establishes a complete bijection between the Go crypto.PublicKey type and the wire SignatureAndHashAlgorithm parameters. Furthermore, PR #1229 included defense-in-depth commits addressing adjacent attack surfaces identified during the same audit (Anthropic OSS Scanner #1228): commit 252cf49eeb9e641a5cd316cdd85e1535dc2efb28 enforces intersection between peer-advertised signature schemes and the local signature policy in CertificateVerify to prevent hash downgrade attacks; commit ab433f039bd00e21e4cd96319844b5e27fce4a5b enforces constant-time verification of the client Finished transcript; and commit 37cd0b4d777a60a8d27cef7e4def4c6faf066a74 enforces strict curve whitelisting in ServerKeyExchange.

Exploitation Methodology

Exploiting CVE-2026-135388 requires an adversary positioned to intercept, redirect, or spoof UDP packets associated with a DTLS handshake (MITRE ATT&CK T1557 Adversary-in-the-Middle). No prior authentication or private key material is required. The sole prerequisite is obtaining the target peer's DER-encoded X.509 public certificate, which is transmitted in cleartext during standard DTLS Flight 4 (Certificate message) or can be harvested from prior connections.

In a WebRTC deployment, two peers exchange Session Description Protocol (SDP) offers and answers over a signaling channel prior to establishing a direct peer-to-peer or client-to-SFU UDP media path. The SDP payload contains an a=fingerprint:sha-256 <hash> attribute that binds the DTLS session to a specific self-signed certificate. Under normal threat models, an attacker who intercepts or redirects the UDP flow cannot impersonate the peer because generating a certificate with a matching SHA-256 fingerprint is computationally infeasible, and using the genuine certificate without its private key should cause ServerKeyExchange or CertificateVerify to fail.

CVE-2026-135388 breaks this guarantee. The attacker presents the victim peer's genuine X.509 certificate during the DTLS handshake, satisfying the receiver's SDP fingerprint verification check. Next, in the ServerKeyExchange or CertificateVerify record, the attacker sets the wire SignatureAndHashAlgorithm header to one of the vulnerable combinations documented in the upstream regression test TestHandshakeSignatureSchemeBinding (crypto_test.go):

// Vulnerable test vectors from crypto_test.go (ANT-2026-0Q4PYECH):
{"RSA labeled ECDSA", rsaKey, hash.SHA256, signature.ECDSA, hash.SHA256, false, false},
{"ECDSA labeled RSA", ecdsaKey, hash.SHA256, signature.RSA, hash.SHA256, false, false},
{"Ed25519 labeled ECDSA", edKey, hash.SHA256, signature.ECDSA, hash.Ed25519, false, false},
{"Ed25519 wrong hash", edKey, hash.SHA256, signature.Ed25519, hash.Ed25519, false, false},
{"RSA empty digest labeled Ed25519", rsaKey, hash.Ed25519, signature.Ed25519, hash.None, false, false},
{"RSA empty digest scheme 0801", rsaKey, hash.Ed25519, signature.RSA, hash.None, false, false},
{"RSA no hash", rsaKey, hash.None, signature.RSA, hash.None, false, false},
{"RSA unknown hash", rsaKey, hash.Algorithm(255), signature.RSA, hash.None, false, false},
{"ECDSA empty digest", ecdsaKey, hash.Ed25519, signature.ECDSA, hash.None, false, false},
{"RSA PSS wrong hash", rsaKey, hash.SHA384, signature.RSA_PSS_RSAE_SHA256, hash.SHA384, true, false},

Because the vulnerable endpoint does not reject the mismatched or digest-less scheme, the transcript or ephemeral ECDH parameters are reduced to an empty digest or evaluated under the wrong scheme constraints. Once verifyKeySignature or verifyCertificateVerify returns nil, the handshake proceeds to ChangeCipherSpec and Finished using the attacker's ephemeral ECDH share, granting the attacker full knowledge of the negotiated master secret and SRTP/SCTP session keys.

Impact Assessment

CVE-2026-135388 carries a CVSS v3.1 base score of 9.1 (Critical) with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. The Attack Vector is Network (AV:N) and Attack Complexity is Low (AC:L), reflecting that any network adversary capable of routing or intercepting UDP traffic between DTLS peers can trigger the flaw deterministically without race conditions. No privileges (PR:N) or user interaction (UI:N) are required.

The primary security impact is a complete loss of Confidentiality (C:H) and Integrity (I:H) over the DTLS session. In applications using Pion DTLS directly for datagram encryption, an attacker can impersonate either the DTLS server (via forged ServerKeyExchange) or a mutually authenticated DTLS client (via forged CertificateVerify). This enables silent interception, decryption, modification, and injection of arbitrary application payloads.

In WebRTC architectures (pion/webrtc and downstream media servers), the DTLS handshake serves twin roles: it negotiates the master keys for Secure Real-time Transport Protocol (DTLS-SRTP) audio/video streams and encapsulates SCTP over DTLS for WebRTC DataChannels. Compromising the DTLS handshake allows an attacker to eavesdrop on real-time audio and video streams, inject forged media frames, and read or manipulate sensitive control messages transmitted over WebRTC DataChannels.

> [!NOTE] > Out-of-band certificate pinning and WebRTC SDP a=fingerprint validation do not mitigate CVE-2026-135388. Because the attacker replays the target's authentic X.509 certificate during the handshake, certificate fingerprint comparisons succeed prior to the vulnerable signature verification step.

Remediation & Mitigation

There are no effective configuration workarounds or application-layer checks (such as certificate pinning or SDP fingerprint validation) that mitigate CVE-2026-135388 in vulnerable versions of Pion DTLS. Remediation requires updating the github.com/pion/dtls dependency to a patched release and recompiling all affected Go binaries.

For projects using the v3 module path (github.com/pion/dtls/v3), upgrade to version v3.1.13 or later. For projects tracking the v4 release candidate series, upgrade to v4.0.0-rc.6 or later. Projects still relying on the legacy v2 module branch (<= 2.2.12) must migrate to github.com/pion/dtls/v3@v3.1.13, as no backported v2 release was issued in the advisory.

# Update Pion DTLS v3 dependency to the patched release
go get github.com/pion/dtls/v3@v3.1.13
go mod tidy
 
# Verify the resolved version in go.mod
grep "github.com/pion/dtls" go.mod

Downstream applications that transitively depend on pion/dtls—Most notably applications built on github.com/pion/webrtc—should verify their go.sum and go.mod dependency graphs using go list -m all | grep pion/dtls to confirm that v3.1.13 or higher is selected at build time.

From a detection perspective, security teams can monitor application logs on patched endpoints for occurrences of dtlserrors.ErrInvalidSignatureAlgorithm during handshake flights 4 and 5, which indicates that a peer attempted to negotiate an incompatible or digest-less signature scheme. On the network wire, Deep Packet Inspection (DPI) and IDS appliances can inspect unencrypted DTLS Handshake records (ContentType: 22, HandshakeType: 12 for ServerKeyExchange and HandshakeType: 15 for CertificateVerify) for anomalous SignatureAndHashAlgorithm tuples such as 0x0801 (Ed25519 hash paired with RSA signature), 0x0803 (Ed25519 hash paired with ECDSA signature), or any 0x00xx (None hash) value.

Official Patches

PionOfficial GitHub Security Advisory for CVE-2026-135388 (GHSA-7c2r-jhm9-43vf)
PionGitHub Pull Request #1229 containing the signature scheme binding fix and related DTLS hardening commits
PionPion DTLS v3.1.13 Patched Release
PionPion DTLS v4.0.0-rc.6 Patched Release

Fix Analysis (2)

Technical Appendix

CVSS Score
9.1/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS Probability
0.35%
Top 79% most exploited

Affected Systems

github.com/pion/dtlsgithub.com/pion/dtls/v2github.com/pion/dtls/v3

Affected Versions Detail

Product
Affected Versions
Fixed Version
github.com/pion/dtls/v2
Pion
>= 2.0.0, <= 2.2.12v3.1.13
github.com/pion/dtls/v3
Pion
>= 3.0.0, < 3.1.13v3.1.13
github.com/pion/dtls (v4)
Pion
>= 4.0.0-rc.1, <= 4.0.0-rc.5v4.0.0-rc.6
AttributeDetail
CVE / Advisory IDCVE-2026-135388 / GHSA-7c2r-jhm9-43vf
Weakness ClassCWE-347: Improper Verification of Cryptographic Signature
CVSS v3.1 Score9.1 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)
EPSS Score0.35% (20.59th Percentile)
Affected FunctionsverifyKeySignature, verifyCertificateVerify (crypto.go)
Primary ImpactUnauthenticated DTLS Peer Impersonation & Session Key Compromise
Patched Versionsv3.1.13, v4.0.0-rc.6
CISA KEV StatusNot Listed (false)

MITRE ATT&CK Mapping

T1557Adversary-in-the-Middle
Credential Access / Collection
T1553Subvert Trust Controls
Defense Evasion
T1556Modify Authentication Process
Credential Access / Defense Evasion
CWE-347
Improper Verification of Cryptographic Signature

The software does not verify, or incorrectly verifies, the cryptographic signature for data.

Known Exploits & Detection

GitHub (Upstream Regression Test PoC)Upstream unit test TestHandshakeSignatureSchemeBinding in crypto_test.go demonstrating 10 signature scheme confusion and empty-digest bypass vectors.

Vulnerability Timeline

Vulnerability discovered by Anthropic OSS Scanner (#1228 / ANT-2026-0Q4PYECH) and remediation commits authored by Jo Turk in Pion DTLS PR #1229.
2026-10-16
CVE-2026-135388 and GitHub Security Advisory GHSA-7c2r-jhm9-43vf officially published; NVD assigns CVSS v3.1 score of 9.1 (Critical).
2026-11-24
Open Source Vulnerabilities (OSV) database updated with affected Go module version ranges and fix commit hashes.
2026-11-25

References & Sources

  • [1]GitHub Security Advisory: GHSA-7c2r-jhm9-43vf
  • [2]NVD Vulnerability Record: CVE-2026-135388
  • [3]CVE.org Record: CVE-2026-135388
  • [4]Pion DTLS Pull Request #1229
  • [5]Fix Commit (v3 branch): cb560535461a483f2930a91a474e72fa6b615b87
  • [6]Fix Commit (main / v4 branch): 87aff19290780eb4b2db31d1402faf8f425a8ff1
  • [7]Pion DTLS Release v3.1.13
  • [8]Pion DTLS Release v4.0.0-rc.6

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•39 minutes ago•GHSA-R73Q-GWX2-FPXM
6.8

GHSA-r73q-gwx2-fpxm: Arbitrary Host Directory Mount and Sandbox Bypass via Theme Module Replacements in Hugo

Hugo versions 0.152.0 through 0.167.x contain a path traversal and sandbox bypass vulnerability in the module configuration loader. When a root project does not define module replacements, Hugo permits imported themes or modules to define their own module.replacements directives. Because replaced module imports are internally marked as project-replaced, they bypass theme directory path restrictions, allowing an untrusted theme to mount arbitrary host filesystem directories and expand the Node.js read sandbox.

Amit Schendel
Amit Schendel
2 views•10 min read
•about 3 hours ago•CVE-2026-134024
6.8

CVE-2026-134024: Latent Server-Side Request Forgery Gadget in TastyIgniter Media Attachment Handler

CVE-2026-134024 is a Server-Side Request Forgery (SSRF) vulnerability (CWE-918) in the TastyIgniter open-source restaurant management platform prior to version 4.4.4. The flaw resides in the Media::addFromUrl() helper method within the tastyigniter/core package, which initiates outbound HTTP GET requests to caller-supplied URLs and persists the response body without validating the URI scheme, target hostname, or resolved IP address. Although unreachable in a default unextended installation, the method functions as a latent SSRF gadget that exposes the host environment to internal network reconnaissance and cloud metadata extraction when invoked by third-party extensions or custom application code.

Alon Barad
Alon Barad
2 views•10 min read
•about 4 hours ago•CVE-2026-61832
7.5

CVE-2026-61832: Improper Certificate Validation and Insecure Deserialization in NukeViet CMS

CVE-2026-61832 is a compound vulnerability in NukeViet CMS versions prior to 4.6.00 resulting from disabled TLS certificate validation (CWE-295) in internal HTTP clients and unrestricted PHP deserialization (CWE-502) in administrative extension store handlers. An adversary-in-the-middle (AiTM) attacker can intercept outbound HTTPS connections to the NukeViet extension store API and inject a crafted serialized PHP object. When an administrator interacts with the extension store, the application deserializes the response, triggering an in-tree Property-Oriented Programming (POP) gadget chain in Guzzle to achieve arbitrary file write and remote code execution.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 5 hours ago•CVE-2026-69217
8.7

CVE-2026-69217: HTTP Request and Response Smuggling in http4s ember-core

CVE-2026-69217 (also tracked as GHSA-p83c-4wj9-p6w9) is an HTTP request and response smuggling vulnerability in the ember-core module of the http4s Scala library. Prior to versions 0.23.35 and 1.0.0-M47, the HTTP/1.1 message parser failed to reject HTTP messages containing duplicate Content-Length header fields with conflicting values or sign-prefixed numeric values. Instead of returning a 400 Bad Request error as mandated by RFC 9112 Section 6.3, the parser accepted all occurrences sequentially and honored the final Content-Length value, while also permitting negative numbers via Scala's standard string-to-long conversion. When deployed behind a reverse proxy or intermediary that prioritizes the first Content-Length header or handles non-digit characters differently, unauthenticated remote attackers can desynchronize persistent HTTP/1.1 connections to perform web cache poisoning, bypass front-end security controls, and capture cross-user HTTP requests.

Amit Schendel
Amit Schendel
5 views•11 min read
•5 days ago•CVE-2026-65973
6.4

CVE-2026-65973: Local OS Command Injection in Laradocs KaTeX Server-Side Rendering

CVE-2026-65973 (GHSA-h746-qpxh-ph7g) is a local operating system command injection vulnerability (CWE-78) in the PeteBishwhip/laradocs package for Laravel. Versions from 0.4.0 to before 1.0.0 fail to sanitize or escape the configured Node.js binary path before passing it as part of a command string to PHP's proc_open() function during server-side KaTeX rendering. An attacker with the ability to modify local configuration files or environment variables can inject shell metacharacters to execute arbitrary OS commands under the privileges of the web server process.

Amit Schendel
Amit Schendel
21 views•9 min read
•5 days ago•CVE-2026-65971
7.6

CVE-2026-65971: SQL Injection in Livewire PowerGrid via Public sortDirection Property

A SQL injection vulnerability exists in power-components/livewire-powergrid versions 6.0.0 through 6.10.3. The public Livewire component property sortDirection is interpolated directly into raw SQL ORDER BY clauses during natural sorting operations without prior validation. By clearing the sortField property to bypass standard Laravel query builder protections, an attacker can inject arbitrary SQL expressions via POST requests to the /livewire/update endpoint.

Amit Schendel
Amit Schendel
14 views•9 min read