---
id: CVE-2024-27454
aliases:
  - GHSA-pwr2-4v36-6qpr
  - PYSEC-2024-40
title: orjson does not limit recursion for deeply nested JSON documents
summary: orjson does not limit recursion for deeply nested JSON documents
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: orjson
product: orjson
ecosystem: pip
affected:
  - orjson < 3.9.15
patched:
  - orjson 3.9.15
published: '2024-02-26'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:09.881449775Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-pwr2-4v36-6qpr'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-27454'
  - url: 'https://github.com/ijl/orjson/issues/458'
  - url: >-
      https://github.com/ijl/orjson/commit/b0e4d2c06ce06c6e63981bf0276e4b7c74e5845e
  - url: 'https://github.com/ijl/orjson'
  - url: 'https://github.com/ijl/orjson/blob/master/CHANGELOG.md#3915'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/orjson/PYSEC-2024-40.yaml
  - url: 'https://monicz.dev/CVE-2024-27454'
tags:
  - osv
  - pip
epss: 0.01197
epssPercentile: 0.66806
ingestedAt: '2026-09-12T03:13:01.719Z'
---

## Overview

orjson.loads in orjson before 3.9.15 does not limit recursion for deeply nested JSON documents.

## Affected packages

- `orjson < 3.9.15`

## Remediation

Upgrade to a patched release:

- `orjson 3.9.15`
