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-depend
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.
- Published
- Aug 24, 2017
- Updated
- Jun 16, 2026
- EPSS
- 8.1% · 95th percentile
- CWE
- CWE-129
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
25
Monitor
Low priority for now.
- CVSS
- 23 / 40 · 5.9 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 8.1%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
| simplejson project | simplejson | cpe:2.3:a:simplejson_project:simplejson |
| opensuse | opensuse | cpe:2.3:o:opensuse:opensuse |
| opensuse project | opensuse | cpe:2.3:o:opensuse_project:opensuse |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- opensuse opensuse13.1
- opensuse project opensuse12.3
- python python3.3.0 and later · before 3.3.6
- python python2.7.0 and later · before 2.7.7
- python python3.4.0 and later · before 3.4.1
- python python3.0.0 and later · before 3.2.6
- simplejson project simplejsonbefore 2.6.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.4 | python | from 2.7.0 · before 2.7.7-r0 | 2.7.7-r0 |
| Alpine:v3.5 | python2 | before 2.7.7-r0 | 2.7.7-r0 |
| Debian:11 | python2.7 | before 2.7.7-1 | 2.7.7-1 |
| PyPI | simplejson | before 2.6.1 | 2.6.1 |
| Red Hat:enterprise_linux:7::client | python | before 0:2.7.5-34.el7 | 0:2.7.5-34.el7 |
| Red Hat:enterprise_linux:7::client | python-debug | before 0:2.7.5-34.el7 | 0:2.7.5-34.el7 |
| Red Hat:enterprise_linux:7::client | python-debuginfo | before 0:2.7.5-34.el7 | 0:2.7.5-34.el7 |
| Red Hat:enterprise_linux:7::client | python-devel | before 0:2.7.5-34.el7 | 0:2.7.5-34.el7 |
| Red Hat:enterprise_linux:7::client | python-libs | before 0:2.7.5-34.el7 | 0:2.7.5-34.el7 |
| Red Hat:enterprise_linux:7::client | python-test | before 0:2.7.5-34.el7 | 0:2.7.5-34.el7 |
| Red Hat:enterprise_linux:7::client | python-tools | before 0:2.7.5-34.el7 | 0:2.7.5-34.el7 |
| Red Hat:enterprise_linux:7::client | tkinter | before 0:2.7.5-34.el7 | 0:2.7.5-34.el7 |
| Red Hat:rhel_software_collections:2::el6 | python27 | before 0:1.1-17.el6 | 0:1.1-17.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python | before 0:2.7.8-3.el6 | 0:2.7.8-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-debug | before 0:2.7.8-3.el6 | 0:2.7.8-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-debuginfo | before 0:2.7.8-3.el6 | 0:2.7.8-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-devel | before 0:2.7.8-3.el6 | 0:2.7.8-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-libs | before 0:2.7.8-3.el6 | 0:2.7.8-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-pip | before 0:1.5.6-5.el6 | 0:1.5.6-5.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-setuptools | before 0:0.9.8-3.el6 | 0:0.9.8-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-simplejson | before 0:3.2.0-2.el6 | 0:3.2.0-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-simplejson-debuginfo | before 0:3.2.0-2.el6 | 0:3.2.0-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-test | before 0:2.7.8-3.el6 | 0:2.7.8-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | python27-python-tools | before 0:2.7.8-3.el6 | 0:2.7.8-3.el6 |
+20
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot47Plan
- CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Pyth46Plan
- CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which al46Plan
- CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C45Plan
- CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:python | 2.7.7-r0 · Alpine:v3.4 | Package registry (OSV) |
| alpine:python2 | 2.7.7-r0 · Alpine:v3.5 | Package registry (OSV) |
| debian:python2.7 | 2.7.7-1 · Debian:11 | Package registry (OSV) |
| PyPI:simplejson | 2.6.1 | Package registry (OSV) |
| red hat:python27 | 0:1.1-17.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python | 0:2.7.8-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-debug | 0:2.7.8-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-debuginfo | 0:2.7.8-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-devel | 0:2.7.8-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-libs | 0:2.7.8-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-pip | 0:1.5.6-5.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-setuptools | 0:0.9.8-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-simplejson | 0:3.2.0-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-simplejson-debuginfo | 0:3.2.0-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-test | 0:2.7.8-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:python27-python-tools | 0:2.7.8-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-129 · Improper Validation of Array IndexCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- bugs.python.org/issue21529
- lists.opensuse.org/opensuse-updates/2014-07/msg00015.html
- openwall.com/lists/oss-security/2014/06/24/7
- rhn.redhat.com/errata/RHSA-2015-1064.html
- www.securityfocus.com/bid/68119
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=752395
- bugzilla.redhat.com/show_bug.cgi?id=1112285
- security.gentoo.org/glsa/201503-10
Vendor advisories and official records. Exploit/PoC links are deliberately left out.