Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted JSON with null/missing string field
-
ExploitReach S2J_STRUCT_GET_string_ELEMENT in s2jdef.h
-
ExecutionDereference null valuestring pointer
-
ImpactApplication process crashes (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target application must invoke struct2json's |
| Impact | The CVSS 4.0 score of 6.9 (AV:N/AC:L/AT:N/PR:N/UI:N) reflects unauthenticated, low-complexity remote exploitation, but the impact ceiling is strictly availability - VC:N/VI:N/VA:L - meaning no data disclosure or integrity compromise is possible. The E:P supplemental metric confirms a public PoC exists, lowering the bar for exploitation in practice. No EPSS score was provided in the input, and the CVE is not listed in CISA KEV, so widespread active exploitation is not confirmed. The realistic risk profile is a remotely triggerable application crash affecting any service that exposes struct2json deserialization to untrusted network input; given the public PoC and zero-friction attack complexity (no auth, no interaction), defenders should treat any internet-facing use of this library as actively threatened even in the absence of KEV confirmation. |
| Exploit ScenarioDerived | An attacker sends a crafted HTTP request containing JSON with a missing or explicitly null string field to an embedded service that uses struct2json for request deserialization. When the application invokes |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 31, 2026
Null pointer dereference in armink struct2json 1.0 allows remote attackers to crash any application that deserializes attacker-controlled JSON through the library's S2J_STRUCT_GET_string_ELEMENT function. The root cause is an absence of null validation on the valuestring field during JSON deserialization in struct2json/inc/s2jdef.h, yielding a remotely triggerable denial-of-service. A public proof-of-concept exploit has been disclosed on GitHub; no vendor patch has been issued and the vendor did not respond to responsible disclosure.
RemediationAI
No vendor-released patch has been identified at time of analysis - the vendor did not respond to disclosure and no fixed release is reflected in the CPE data. As a primary compensating control, developers should add explicit null guards before any call to S2J_STRUCT_GET_string_ELEMENT, checking that the cJSON node's valuestring field is non-null before dereferencing; this can be done inline or via a wrapper macro with no functional side effects. Input sanitization at ingestion boundaries - rejecting or normalizing JSON documents with missing string fields before passing them to struct2json - will also prevent the vulnerable code path from being reached. For applications in security-sensitive or internet-facing contexts, replacing struct2json with an actively maintained alternative (e.g., cJSON with proper error handling or nlohmann/json for C++ environments) is recommended given the vendor's unresponsiveness. The PoC and advisory are available at https://github.com/fa1c4/security-advisories/tree/main/struct2json.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
struct2json is a lightweight C library (armink/struct2json) that maps C structs to and from JSON objects, primarily targeting embedded and resource-constrained environments. The vulnerable component is the S2J_STRUCT_GET_string_ELEMENT macro/function defined in struct2json/inc/s2jdef.h, which extracts string fields from a parsed cJSON object during deserialization. CWE-476 (NULL Pointer Dereference) identifies the root cause: when the valuestring field of a cJSON node is absent or null - as would occur with a crafted or malformed JSON document - the macro dereferences the pointer without a prior null guard, causing an immediate process abort. The CPE cpe:2.3:a:armink:struct2json:*:*:*:*:*:*:*:* covers all known versions, indicating no patched release has been tagged upstream.
Know when Struct2Json gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Remotely reachable null dereference requiring no privileges or interaction; impact is limited to low availability loss (crash) with no confidentiality or integrity consequence.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability has been found in armink struct2json 1.0. This affects the function S2J_STRUCT_GET_string_ELEMENT in the library struct2json/inc/s2jdef.h of the component JSON Deserialization. The manipulation of the argument valuestring leads to null pointer dereference. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-68611
GHSA-hqqg-x2jw-ggpc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB