Skip to main content
VulnerabilityPublished Updated

CVE-2024-33531: lua-resty-jwt · Authentication Bypass by Spoofing

Affects lua-resty-jwtSource CVE Database V5

0

Not known to be exploited · CVSS 8.1 High.

Data as of 26 Oct 2026, 09:15 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHubcdbattags/lua-resty-jwtpkg:github/cdbattags/lua-resty-jwtOther threatsAffected
  • =0.2.3
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-33531, organizations should immediately audit their use of lua-resty-jwt and identify all systems running version 0.2.3 or earlier. 2) Employ additional signature verification layers or alternative JWT libraries with verified security to replace lua-resty-jwt temporarily. 3) Monitor authentication logs for suspicious JWT tokens or anomalous access patterns indicative of token forgery attempts. 4) Restrict privileges of accounts that can generate JWTs to minimize attacker capabilities. 5) Engage with the lua-resty-jwt maintainers or community to track patch releases and apply updates promptly. 6) Consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block JWTs with suspicious headers. 7) Educate development and security teams about the vulnerability to ensure rapid response and remediation. These targeted measures go beyond generic advice by focusing on the specific exploitation vector and the affected library.

Description

cdbattags lua-resty-jwt 0.2.3 allows attackers to bypass all JWT-parsing signature checks by crafting a JWT with an enc header with the value A256GCM.

References

Community reviews

Loading reviews…