Skip to main content

struct2json EUVDEUVD-2026-68611

| CVE-2026-82803 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-08-31 VulDB GHSA-hqqg-x2jw-ggpc
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted JSON with null/missing string field
  2. Exploit
    Reach S2J_STRUCT_GET_string_ELEMENT in s2jdef.h
  3. Execution
    Dereference null valuestring pointer
  4. Impact
    Application 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 S2J_STRUCT_GET_string_ELEMENT macro on JSON input that originates from attacker-controlled data - this is the specific code path that triggers the null dereference. No authentication is required per CVSS PR:N, and no user interaction is needed. Exploitation is limited to denial-of-service (process crash); there is no code execution primitive and no confidentiality or integrity impact per the CVSS impact metrics (VC:N/VI:N/VA:L). The vulnerability is constrained to environments where the C library is deployed, typically embedded systems; it does not affect systems that do not use struct2json for JSON deserialization.

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 S2J_STRUCT_GET_string_ELEMENT on the parsed cJSON object, the null valuestring pointer is dereferenced without a guard, immediately crashing the process. A public PoC demonstrating this exact behavior is available on GitHub, requiring minimal adaptation to target specific applications.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

struct2json 1.0

Affected Packages

euvd struct2json no fix

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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
vuln.today AI 5.3 MEDIUM

Remotely reachable null dereference requiring no privileges or interaction; impact is limited to low availability loss (crash) with no confidentiality or integrity consequence.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Aug 31, 2026 - 16:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Aug 31, 2026 - 15:30 cve.org
MEDIUM 6.9

DescriptionCVE.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

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche embedded C JSON library, limited production footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy