CVE-2024-53861: jpadilla pyjwt Incorrect Comparison
Vulnerability summary
CVE-2024-53861 is a high (CVSS 7.5) Incorrect Comparison vulnerability in jpadilla pyjwt. EPSS estimates a 0.83% chance of exploitation in the next 30 days, higher than 56.8% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 3Timeline
- 29-11-2024PublishedVulnerability first disclosed.
- 02-12-2024Last modifiedVulnerability information updated.
Description
pyjwt is a JSON Web Token implementation in Python. An incorrect string comparison is run for `iss` checking, resulting in `"acb"` being accepted for `"_abc_"`. This is a bug introduced in version 2.10.0: checking the "iss" claim changed from `isinstance(issuer, list)` to `isinstance(issuer, Sequence)`. Since str is a Sequnce, but not a list, `in` is also used for string comparison. This results in `if "abc" not in "__abcd__":` being checked instead of `if "abc" != "__abc__":`. Signature checks are still present so real world impact is likely limited to denial of service scenarios. This issue has been patched in version 2.10.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA2.2LowCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · PypiEcosystem advisory · calculated2.2LowCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated2.2LowCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated2.2LowCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.83%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
0.00 pp
From 0.83% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPyjwt
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard5 products
- az< 2.67.0-r1
- az-iamguarded-compat< 2.67.0-r1
- barman< 3.12.1-r0
- barman-cloudnative-pg< 3.12.1-r0
- py3-pyjwt< 2.10.1-r0
Wolfi3 products
- az< 2.67.0-r1
- az-iamguarded-compat< 2.67.0-r1
- py3-pyjwt< 2.10.1-r0
Jpadilla1 product
- pyjwt= 2.10.0
Opensuse1 product
- python-PyJWT&distro=openSUSE Tumbleweed< 2.10.1-1.1
Pyjwt_project1 product
- pyjwt2.10.0
PyPI1 product
- pyjwt≥ 2.10.0, < 2.10.1
6 vendors · 12 products
References
9 links- github.com/jpadilla/pyjwt/security/advisories/GHSA-75c5-xw7c-p5pmX Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/jpadilla/pyjwt/commit/1570e708672aa9036bc772476beae8bfa48f4131X Refsource MISCWEBFIXPatch
- github.com/jpadilla/pyjwt/commit/33022c25525c1020869c71ce2a4109e44ae4ced1X Refsource MISCWEBFIXPatch
- github.com/jpadilla/pyjwtPACKAGE
- pypi.org/project/pyjwtPACKAGE