Vulnerability DatabaseGHSA-9pg5-8c7x-5hfx

GHSA-9pg5-8c7x-5hfx: 
Python vulnerability analysis and mitigation

Summary

joserfc 1.7.4 defines compact-JWS header, payload, and signature limits, but calls value.split(b".") before validating them. Python bytes.split() copies the attacker-controlled segments, so the current guard allocates roughly one complete payload before rejecting it.

Reproduction

.venv-research/bin/python 06-practical-testing/preauth-memory-profile.py

The input is resident before a fork-isolated verifier runs, and every signature is invalid.

InputPeak RSS deltaAmplificationResult
1 MiB1.11 MiB1.11×size rejected
4 MiB4.04 MiB1.01×size rejected
8 MiB8.04 MiB1.01×size rejected
16 MiB16.04 MiB1.00×size rejected
32 MiB31.74 MiB0.99×size rejected
64 MiB63.80 MiB1.00×size rejected
The unconstrained profile is the primary evidence: joserfc allocates an
additional attacker-sized object before producing its intended
ExceededSizeError. A separate baseline-plus-headroom stress test raises
MemoryError when that copy cannot fit, but this report does not characterize
an absolute RLIMIT_AS value as a realistic worker memory budget.

Security Argument

The issue is not that joserfc can prevent the transport layer from receiving a large header. The issue is narrower: once bytes reach deserialize_compact(), the library's existing size guard cannot fulfill its allocation-limiting purpose because attacker-controlled segment copies are created first. This differs from GHSA-frfh-8v73-gjg4, which concerned embedding already-loaded oversized segments in exception and log messages. Here, the current implementation itself creates an additional payload-sized allocation before its fixed size exception.

Check len(value) against a maximum compact-serialization size before split(). If per-segment diagnostics are needed, locate delimiters with bounded find() operations or memory views, validate offsets and lengths, and only then materialize acceptable segments.


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-wrc3-8c98-283wHIGH8.6
  • Python logoPython
  • boi-tech-rag-xml-document-loader
NoYesOct 30, 2026
GHSA-q749-wr8p-6pc9HIGH8.5
  • Python logoPython
  • boi-tech-ai-agent-telemetry-logger
NoYesOct 30, 2026
GHSA-vr42-692h-pmm6HIGH8.2
  • Python logoPython
  • boi-tech-ai-chat-markdown-renderer
NoYesOct 30, 2026
GHSA-q77q-crp2-mmjcHIGH7.5
  • Python logoPython
  • boi-tech-llm-output-regex-parser
NoYesOct 30, 2026
GHSA-9pg5-8c7x-5hfxMEDIUM6.9
  • Python logoPython
  • joserfc
NoYesOct 30, 2026

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

Additional Wiz resources

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