Skip to main content

kin-openapi CVE-2026-73502

| EUVDEUVD-2026-61142 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-08-18 security-advisories@github.com GHSA-jpcw-4wr7-c3vq
5.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Identify API endpoint backed by kin-openapi validation
  2. Delivery
    Confirm or infer schema-less content parameter in spec
  3. Exploit
    Send single HTTP request with parameter value
  4. Execution
    ValidateRequest invokes defaultContentParameterDecoder
  5. Persist
    Nil dereference on mt.Schema.Value panics
  6. Impact
    Service aborts request or process crashes

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

Two conditions must both be satisfied: first, the application must use kin-openapi v0.2.0 through v0.143.0 to perform HTTP request validation via openapi3filter.ValidateRequest; second, the deployed OpenAPI specification must define at least one operation parameter using the 'content' style where the application/json media type object contains no 'schema' field - a configuration that passes doc.Validate() without error and is valid under both OpenAPI 3.0.x and 3.1.x. The attacker must supply any value for that parameter in the request so the decoder is invoked with found=true; no specific payload structure is required beyond parameter presence. No authentication is required (CVSS PR:N) and no special network position is needed. Exploitation is constrained by the requirement that the target spec contain a schema-less content parameter, which is a legal but uncommon pattern unlikely to appear in specs generated by standard annotation-driven tooling.

Impact

The NVD CVSS 3.1 base score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) accurately captures the key risk signals: no authentication is required, no user interaction is needed, and no elevated network position is necessary, making the attack trivially automatable against any reachable endpoint. Availability is scored Low rather than High because the standard Go net/http server recovers from handler panics at the per-connection level in most configurations, limiting impact to per-request aborts; however, integrations that lack a recovery middleware - such as custom gRPC stacks or raw HTTP servers - face a full process crash, which would justify A:H in those deployments. EPSS data was not included in the provided intelligence, and no CISA KEV listing exists, indicating no confirmed widespread exploitation. Even a mid-sized municipal IT team in tczew operating a public API gateway built around this library would face service disruption from a single attacker-controlled request if their integration lacks panic recovery. The real-world risk is moderate rather than severe: the attack path is simple and authentication-free, but successful exploitation requires that the deployed OpenAPI specification contain at least one content parameter with an application/json media type and no schema - a legally valid but uncommon spec pattern. Operators whose specs are auto-generated from annotated Go structs or standard tooling are unlikely to exhibit this pattern without deliberate authorship, which constrains the exposed population.

Exploit ScenarioDerived

An attacker identifies an API endpoint whose deployed OpenAPI specification defines a query or path parameter using the 'content' style with an application/json media type and no schema - a legal spec construct that passes kin-openapi's own document validation. Sending a single HTTP request to that endpoint with any value for the affected parameter causes ValidateRequest to invoke defaultContentParameterDecoder, which dereferences the nil mt.Schema pointer and panics. In a server without panic-recovery middleware this immediately terminates the process, dropping all in-flight requests and requiring a manual or automated restart.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 18, 2026

NULL-pointer dereference in kin-openapi's request validation pipeline (versions 0.2.0 through 0.143.0) enables any unauthenticated remote client to crash request validation with a single crafted HTTP request. The defect resides in defaultContentParameterDecoder within openapi3filter/req_resp_decoder.go, where mt.Schema.Value is dereferenced without a nil guard when a content parameter's application/json media type declares no schema - a construct that is explicitly valid under both OpenAPI 3.0.x and 3.1.x, meaning doc.Validate() will not surface the issue at startup. Depending on integration depth, an attacker can cause either unbounded panic-log growth or a complete process crash; no public exploit or CISA KEV listing exists at time of analysis, and the vendor released a confirmed fix in v0.144.0.

RemediationAI

Upgrade kin-openapi to v0.144.0, the vendor-released patched version, available at https://github.com/getkin/kin-openapi/releases/tag/v0.144.0. The fix, applied in commit 68ac2affa325514d7d6e731204d6a1edf6bdff64, adds an explicit nil check for mt.Schema before dereferencing it in defaultContentParameterDecoder, returning a structured error rather than panicking. For teams unable to upgrade immediately, the most effective compensating control is to wrap the request validation call in a Go panic-recovery middleware (using recover() in a deferred function) that converts the panic into a structured HTTP 500 response; this prevents process crashes and log floods but does not eliminate the underlying nil dereference or suppress the per-request abort, meaning availability is still partially degraded. A second compensating control is to audit all deployed OpenAPI specification files and add explicit schema definitions to any application/json content-parameter media type objects that currently omit one, eliminating the reachable code path entirely; this is more surgical but requires ongoing enforcement as specs evolve. No workaround eliminates the risk without either patching or modifying the spec.

Affected VersionsENISA

kin-openapi 0.2.0, < 0.144.0

Affected Packages

go github.com/getkin/kin-openapi fix: 0.144.0
euvd kin_openapi_0_2_0 fix: 0.144.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

kin-openapi (Go module github.com/getkin/kin-openapi) is a Go library for parsing, validating, and routing against OpenAPI 3.0.x and 3.1.x specification files. The vulnerability is rooted in CWE-476 (NULL Pointer Dereference) within the defaultContentParameterDecoder function in openapi3filter/req_resp_decoder.go. OpenAPI permits parameters to be defined via a 'content' map rather than a direct 'schema' field, where each key is a media type string and the value is a MediaType object that may legally omit a schema. The library correctly guards against a nil media-type object (mt == nil) but fails to guard against a nil mt.Schema pointer before calling mt.Schema.Value at around line 197. Both OpenAPI 3.0.x and 3.1.x explicitly allow schema-less content parameters: Parameter.Validate only enforces that exactly one of 'schema' or 'content' is present, and MediaType.Validate validates the schema only when non-nil. This means a spec containing such a parameter passes doc.Validate() cleanly at startup, leaving the nil dereference reachable at runtime whenever an attacker supplies a value for the affected parameter. The canonical call path confirmed by the GHSA advisory is: ValidateRequest → ValidateParameter (parameter.Content != nil branch) → decodeContentParameter → defaultContentParameterDecoder → panic on mt.Schema.Value.

Know when the next one hits your stack

  • 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 (github) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Network-reachable with no auth or interaction required; impact is availability only, scored Low because standard net/http recovers from panics per-connection in common deployments.

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
SUSE MEDIUM
Red Hat 5.3 MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

kin-openapi is a Go project for handling OpenAPI files. From 0.2.0 until 0.144.0, openapi3filter.ValidateRequest can encounter a NULL-pointer-dereference denial of service when an operation declares a content parameter whose application/json media type has no schema. In openapi3filter/req_resp_decoder.go, the default defaultContentParameterDecoder dereferences mt.Schema.Value without checking whether mt.Schema is nil, even though doc.Validate() accepts the document under OpenAPI 3.0.x and 3.1.x. A single unauthenticated request supplying the parameter value can panic request validation, causing an aborted request with log growth in the common synchronous net/http path or a full process crash in integrations without recovery. This issue is fixed in version 0.144.0.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Low
Go OpenAPI validation library, niche developer tooling with narrow production footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

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 No
EPSS 0.5%
Patch available Yes
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
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: 0
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).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

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