Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-q349-x427-xg3w

0
Medium
Published: 06/25/2026 (06/25/2026, 21:31:31 UTC)
Source: GCVE Database

Description

An out-of-bounds heap read vulnerability occurs during SM2/SM3 certificate signature verification when parsing certificates with an SM3wSM2 signature. The Subject Key Identifier computation reads 65 trailing bytes of the public key without verifying the key length, causing a heap read beyond the buffer if the key is shorter than 65 bytes. This can lead to a denial of service via application crash. The issue affects only builds with SM2 support enabled.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/26/2026, 22:46:46 UTC

Technical Analysis

CVE-2026-12340 is a vulnerability involving an out-of-bounds heap read during the verification of SM2/SM3 certificate signatures. Specifically, when a certificate with an SM3wSM2 signature is parsed, the Subject Key Identifier calculation reads the last 65 bytes of the public key without checking if the key length is sufficient. If the public key is shorter than 65 bytes, this results in an out-of-bounds heap read, potentially causing a crash (denial of service). There is no out-of-bounds write. This vulnerability affects only software builds compiled with SM2 support enabled (via --enable-sm2 or --enable-all).

Potential Impact

The vulnerability can cause a denial of service due to application crash triggered by an out-of-bounds heap read when processing specially crafted certificates with short public keys. There is no indication of memory corruption or code execution. No known exploits are reported in the wild.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing certificates with SM3wSM2 signatures that contain public keys shorter than 65 bytes. If possible, disable SM2 support in builds to prevent exposure.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-q349-x427-xg3w
Osv Schema Version
1.4.0
Aliases
["CVE-2026-12340"]
Ecosystems
[]
Database Specific Severity
MODERATE
Cvss Version
4.0

Threat ID: 6a3ef7e827e9c79719032d38

Added to database: 06/26/2026, 22:06:32 UTC

Last enriched: 06/26/2026, 22:46:46 UTC

Last updated: 06/27/2026, 00:11:12 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses