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…

Kin openapi: kin-openapi openapi3filter: unauthenticated nil-pointer panic when validating a request against a `content` parameter whose media type has no schema

0
Medium
Published: 07/24/2026 (07/24/2026, 22:39:39 UTC)
Source: GCVE Database
Product: github.com/getkin/kin-openapi

Description

A null-pointer dereference vulnerability exists in kin-openapi's openapi3filter.ValidateRequest function, allowing unauthenticated clients to cause a denial of service by sending a single HTTP request. The issue occurs when validating a request against a content parameter whose media type object lacks a schema, which is legal under the OpenAPI specification. This leads to a panic and potential process crash in versions up to 0.143.0. The vulnerability affects both OpenAPI 3.0.x and 3.1.x and is patched in version 0.144.0.

CVSS v3.1

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

Goghsa
github.com/getkin/kin-openapi
Affected versions
<0.144.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/25/2026, 23:48:40 UTC

Technical Analysis

The kin-openapi library's openapi3filter.ValidateRequest function dereferences a nil pointer when validating requests containing a content parameter with a media type object that has no schema. Although the OpenAPI specification permits content parameters without schemas, the library's defaultContentParameterDecoder does not check for a nil schema before dereferencing it, causing a panic. This vulnerability can be triggered by unauthenticated clients if the target operation has no security requirements or if no AuthenticationFunc is configured. The issue affects versions <= 0.143.0 and is fixed in version 0.144.0.

Potential Impact

An unauthenticated attacker can cause a denial of service by triggering a nil-pointer panic in the request validation path, potentially crashing the server process or causing unbounded panic log growth. This can disrupt service availability. There is no impact on confidentiality or integrity. The vulnerability affects both OpenAPI 3.0.x and 3.1.x specifications as implemented by kin-openapi versions up to 0.143.0.

Mitigation Recommendations

Upgrade kin-openapi to version 0.144.0 or later, where this vulnerability is fixed. If upgrading is not immediately possible, ensure that all operations declare security requirements and configure an AuthenticationFunc that rejects unauthenticated requests, preventing unauthenticated access to vulnerable request validation paths.

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-jpcw-4wr7-c3vq
Osv Schema Version
1.4.0
Aliases
[]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a6542179c2644c7f8087d15

Added to database: 07/25/2026, 23:09:11 UTC

Last enriched: 07/25/2026, 23:48:40 UTC

Last updated: 07/26/2026, 03:45:30 UTC

Views: 4

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