Vulnerability DatabaseGHSA-mhpq-9638-x6pw

GHSA-mhpq-9638-x6pw
vulnerability analysis and mitigation

Overview

A denial of service vulnerability was discovered in github.com/dvsekhvalnov/jose2go affecting versions prior to 1.5.1-0.20231206184617-48ba0b76bc88. The vulnerability allows an attacker to cause a denial-of-service condition through a PBES2 encrypted JWE blob with a very large p2c (iteration count) value during decryption operations. The issue was disclosed on December 20, 2023, and has been assigned a moderate severity rating with a CVSS score of 5.3 (GitHub Advisory).

Technical details

The vulnerability (GHSA-mhpq-9638-x6pw) is related to the PBES2-HMAC-AESKW algorithm implementation where there were no proper bounds checking for iteration counts. The issue has been classified as CWE-400 and received a CVSS v3.1 base score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L). The vulnerability specifically affects the decryption process when handling attacker-controlled input with excessive iteration counts (GitHub Advisory).

Impact

When exploited, this vulnerability can lead to denial of service conditions by forcing the system to perform an excessive number of hash iterations during the decryption process of PBES2 encrypted JWE blobs. This can result in significant resource consumption and potential service disruption (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.5.1-0.20231206184617-48ba0b76bc88. The fix implements proper iteration count bounds checking in the PBES2-HMAC-AESKW algorithm by adding minimum and maximum iteration count guards (GitHub Commit).

Community reactions

The vulnerability was presented at Black Hat USA 2023 as part of a broader discussion on JSON Web Token attacks, indicating its significance in the security community (Black Hat).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management