CVEfocus › CVE database › CVE-2024-53861

CVE-2024-53861Issuer field partial matches allowed in pyjwt

CVSS 2.2 LowEPSS 1.1% (higher than 67% of CVEs)Published 2024-11-29Updated 2024-12-02Assigner: GitHub_M

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.

CWE-697

What to do

Fixed builds are available from PyPI: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
115Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04pyjwtNot affected
vulnerable_code_not_present
Ubuntu 22.04pyjwtNot affected
vulnerable_code_not_present
Red Hat Enterprise Linux 10fence-agentsNot affected
Red Hat Enterprise Linux 10fence-agents-aliyunNot affected
Red Hat Enterprise Linux 10fence-agents-allNot affected
Red Hat Enterprise Linux 10fence-agents-amt-wsNot affected
Red Hat Enterprise Linux 10fence-agents-apcNot affected
Red Hat Enterprise Linux 10fence-agents-apc-snmpNot affected
Red Hat Enterprise Linux 10fence-agents-awsNot affected
Red Hat Enterprise Linux 10fence-agents-azure-armNot affected
Red Hat Enterprise Linux 10fence-agents-bladecenterNot affected
Red Hat Enterprise Linux 10fence-agents-brocadeNot affected
Red Hat Enterprise Linux 10fence-agents-cisco-mdsNot affected
Red Hat Enterprise Linux 10fence-agents-cisco-ucsNot affected
Red Hat Enterprise Linux 10fence-agents-commonNot affected
Red Hat Enterprise Linux 10fence-agents-drac5Not affected
Red Hat Enterprise Linux 10fence-agents-eaton-snmpNot affected
Red Hat Enterprise Linux 10fence-agents-emersonNot affected
Red Hat Enterprise Linux 10fence-agents-epsNot affected
Red Hat Enterprise Linux 10fence-agents-gceNot affected
Red Hat Enterprise Linux 10fence-agents-heuristics-pingNot affected
Red Hat Enterprise Linux 10fence-agents-hpbladeNot affected
Red Hat Enterprise Linux 10fence-agents-ibm-powervsNot affected
Red Hat Enterprise Linux 10fence-agents-ibm-vpcNot affected
Red Hat Enterprise Linux 10fence-agents-ibmbladeNot affected
Red Hat Enterprise Linux 10fence-agents-ifmibNot affected
Red Hat Enterprise Linux 10fence-agents-ilo-moonshotNot affected
Red Hat Enterprise Linux 10fence-agents-ilo-mpNot affected
Red Hat Enterprise Linux 10fence-agents-ilo-sshNot affected
Red Hat Enterprise Linux 10fence-agents-ilo2Not affected
Red Hat Enterprise Linux 10fence-agents-intelmodularNot affected
Red Hat Enterprise Linux 10fence-agents-ipduNot affected
Red Hat Enterprise Linux 10fence-agents-ipmilanNot affected
Red Hat Enterprise Linux 10fence-agents-kdumpNot affected
Red Hat Enterprise Linux 10fence-agents-kubevirtNot affected
Red Hat Enterprise Linux 10fence-agents-lparNot affected
Red Hat Enterprise Linux 10fence-agents-mpathNot affected
Red Hat Enterprise Linux 10fence-agents-nutanix-ahvNot affected
Red Hat Enterprise Linux 10fence-agents-openstackNot affected
Red Hat Enterprise Linux 10fence-agents-redfishNot affected
Red Hat Enterprise Linux 10fence-agents-rhevmNot affected
Red Hat Enterprise Linux 10fence-agents-rsaNot affected
Red Hat Enterprise Linux 10fence-agents-rsbNot affected
Red Hat Enterprise Linux 10fence-agents-sbdNot affected
Red Hat Enterprise Linux 10fence-agents-scsiNot affected
Red Hat Enterprise Linux 10fence-agents-virshNot affected
Red Hat Enterprise Linux 10fence-agents-vmware-restNot affected
Red Hat Enterprise Linux 10fence-agents-vmware-soapNot affected
Red Hat Enterprise Linux 10fence-agents-wtiNot affected
Red Hat Enterprise Linux 10fence-agents-zvmNot affected
Red Hat Enterprise Linux 10fence-virtNot affected
Red Hat Enterprise Linux 10fence-virtdNot affected
Red Hat Enterprise Linux 10fence-virtd-cpgNot affected
Red Hat Enterprise Linux 10fence-virtd-libvirtNot affected
Red Hat Enterprise Linux 10fence-virtd-multicastNot affected
Red Hat Enterprise Linux 10fence-virtd-serialNot affected
Red Hat Enterprise Linux 10fence-virtd-tcpNot affected
Red Hat Enterprise Linux 10ha-cloud-supportNot affected
Red Hat Enterprise Linux 9fence-agentsNot affected
Red Hat Enterprise Linux 9fence-agents-aliyunNot affected
Red Hat Enterprise Linux 9fence-agents-allNot affected
Red Hat Enterprise Linux 9fence-agents-amt-wsNot affected
Red Hat Enterprise Linux 9fence-agents-apcNot affected
Red Hat Enterprise Linux 9fence-agents-apc-snmpNot affected
Red Hat Enterprise Linux 9fence-agents-awsNot affected
Red Hat Enterprise Linux 9fence-agents-azure-armNot affected
Red Hat Enterprise Linux 9fence-agents-bladecenterNot affected
Red Hat Enterprise Linux 9fence-agents-brocadeNot affected
Red Hat Enterprise Linux 9fence-agents-cisco-mdsNot affected
Red Hat Enterprise Linux 9fence-agents-cisco-ucsNot affected
Red Hat Enterprise Linux 9fence-agents-commonNot affected
Red Hat Enterprise Linux 9fence-agents-computeNot affected
Red Hat Enterprise Linux 9fence-agents-drac5Not affected
Red Hat Enterprise Linux 9fence-agents-eaton-snmpNot affected
Red Hat Enterprise Linux 9fence-agents-emersonNot affected
Red Hat Enterprise Linux 9fence-agents-epsNot affected
Red Hat Enterprise Linux 9fence-agents-gceNot affected
Red Hat Enterprise Linux 9fence-agents-heuristics-pingNot affected
Red Hat Enterprise Linux 9fence-agents-hpbladeNot affected
Red Hat Enterprise Linux 9fence-agents-ibm-powervsNot affected
Red Hat Enterprise Linux 9fence-agents-ibm-vpcNot affected
Red Hat Enterprise Linux 9fence-agents-ibmbladeNot affected
Red Hat Enterprise Linux 9fence-agents-ifmibNot affected
Red Hat Enterprise Linux 9fence-agents-ilo-moonshotNot affected
Red Hat Enterprise Linux 9fence-agents-ilo-mpNot affected
Red Hat Enterprise Linux 9fence-agents-ilo-sshNot affected
Red Hat Enterprise Linux 9fence-agents-ilo2Not affected
Red Hat Enterprise Linux 9fence-agents-intelmodularNot affected
Red Hat Enterprise Linux 9fence-agents-ipduNot affected
Red Hat Enterprise Linux 9fence-agents-ipmilanNot affected
Red Hat Enterprise Linux 9fence-agents-kdumpNot affected
Red Hat Enterprise Linux 9fence-agents-kubevirtNot affected
Red Hat Enterprise Linux 9fence-agents-lparNot affected
Red Hat Enterprise Linux 9fence-agents-mpathNot affected
Red Hat Enterprise Linux 9fence-agents-nutanix-ahvNot affected
Red Hat Enterprise Linux 9fence-agents-openstackNot affected
Red Hat Enterprise Linux 9fence-agents-redfishNot affected
Red Hat Enterprise Linux 9fence-agents-rhevmNot affected
Red Hat Enterprise Linux 9fence-agents-rsaNot affected
Red Hat Enterprise Linux 9fence-agents-rsbNot affected
Red Hat Enterprise Linux 9fence-agents-sbdNot affected
Red Hat Enterprise Linux 9fence-agents-scsiNot affected
Red Hat Enterprise Linux 9fence-agents-virshNot affected
Red Hat Enterprise Linux 9fence-agents-vmware-restNot affected
Red Hat Enterprise Linux 9fence-agents-vmware-soapNot affected
Red Hat Enterprise Linux 9fence-agents-wtiNot affected
Red Hat Enterprise Linux 9fence-agents-zvmNot affected
Red Hat Enterprise Linux 9fence-virtNot affected
Red Hat Enterprise Linux 9fence-virtdNot affected
Red Hat Enterprise Linux 9fence-virtd-cpgNot affected
Red Hat Enterprise Linux 9fence-virtd-libvirtNot affected
Red Hat Enterprise Linux 9fence-virtd-multicastNot affected
Red Hat Enterprise Linux 9fence-virtd-serialNot affected
Red Hat Enterprise Linux 9fence-virtd-tcpNot affected
Red Hat Enterprise Linux 9ha-cloud-supportNot affected
PyPI librarypyjwtFixed2.10.1GHSA-75c5-xw7c-p5pm

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.