Medium

simplejson before 2.6.1 vulnerable to array index error

  • Disclosed: 14.05.2022
  • Updated: 11.10.2026 13:18

Array index error in the scanstring function in the _json module in Python 2.7 through 3.5 and simplejson before 2.6.1 allows context-dependent attackers to read arbitrary process memory via a negative index value in the idx argument to the raw_decode function.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) simplejson < 2.6.1 2.6.1

References

CVSS score 5.9/10
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-129
Platform
Python (PyPI)
Package
simplejson
Disclosed
14.05.2022
Updated
11.10.2026 13:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-9772-cwx9-r4cj - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-921 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: simplejson

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.