
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-5246 is an authorization bypass vulnerability in Cesanta Mongoose's built-in TLS stack, specifically in the mg_tls_verify_cert_signature function within mongoose.c responsible for P-384 public key certificate signature verification. It affects all Mongoose versions from 7.0 through 7.20, and was publicly disclosed on April 2, 2026. The flaw allows a remote, unauthenticated attacker to bypass mTLS certificate-based authentication through improper cryptographic signature verification. It carries a CVSS v3.1 base score of 8.1 (High) (Github Advisory, Feedly).
The root cause is improper verification of cryptographic signatures (CWE-347) combined with improper authorization (CWE-285) in the mg_tls_verify_cert_signature function of mongoose.c, which handles P-384 elliptic curve public key operations during TLS handshake. An attacker can manipulate the certificate or signature data presented during an mTLS handshake to bypass the signature check, effectively forging authentication without possessing a valid private key. The attack is network-based, requires no privileges or user interaction, but is rated high complexity due to the cryptographic nature of the manipulation. The fix (commit 0d882f1b43ff2308b7486a56a9d60cd6dba8a3f1) also addressed related issues including AES-GCM AEAD tag validation, ChaCha20-Poly1305 additional data handling, and several HTTP parsing hardening measures (Mongoose Commit, Github Advisory).
Successful exploitation allows an unauthenticated remote attacker to bypass mTLS certificate-based authentication on systems using Mongoose's built-in TLS with P-384 keys, potentially gaining unauthorized access to protected resources. The confidentiality, integrity, and availability impacts are all rated High under CVSS v3.1, meaning an attacker could read sensitive data, modify application state, or disrupt service availability. Given Mongoose's widespread deployment in embedded systems, IoT devices, and industrial control systems (including products from Siemens, Schneider Electric, and Bosch), the scope of affected assets is broad and the potential for unauthorized access to critical infrastructure is significant (Github Advisory, Mongoose Repo).
A proof-of-concept exploit has been publicly disclosed, as noted in the vulnerability description and the researcher blog post at evilsocket.net titled "Mongoose Preauth Remote Code Execution and mTLS Bypass" (evilsocket.net). The EPSS score is approximately 0.045% (0.000450), indicating a currently low probability of active exploitation in the wild within 30 days, and there is no evidence of in-the-wild exploitation or CISA KEV catalog listing at this time (Github Advisory). Exploitation is rated high complexity, requiring an attacker to craft a specially manipulated certificate or signature during a TLS handshake, limiting the pool of capable threat actors. No specific threat actor attribution has been reported.
mg_tls_verify_cert_signature function in the P-384 public key handler.mg_tls_verify_cert_signature. The specific manipulation targets the P-384 signature validation path, causing the function to incorrectly accept an invalid or forged signature.The primary remediation is to upgrade Cesanta Mongoose to version 7.21 or later, which includes the fix in commit 0d882f1b43ff2308b7486a56a9d60cd6dba8a3f1 (Mongoose Release 7.21). All versions from 7.0 through 7.20 are affected and should be patched immediately, with priority given to deployments using P-384 certificates for mTLS authentication. If an immediate upgrade is not feasible, consider temporarily disabling mTLS or restricting network access to affected services at the perimeter level until patching can be completed. Additionally, review and re-validate any certificate-based access controls that may have been exposed during the vulnerability window (Github Advisory, Red Hat Bugzilla).
Security researcher Simone Margaritelli (evilsocket) published a detailed technical write-up titled "Mongoose Preauth Remote Code Execution and mTLS Bypass" on April 2, 2026, which generated significant community discussion on Reddit's r/netsec and Hacker News (evilsocket.net, Reddit, Hacker News). The Cesanta vendor was noted to have responded professionally and quickly released version 7.21 with the fix. CyberHub Blog also covered the issue, highlighting the broad impact on millions of embedded devices (CyberHub Blog). Red Hat tracked the issue via Bugzilla, describing it as "certificate verification bypass in mTLS" (Red Hat Bugzilla).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."