CVE-2026-138257: HTTP::Message::Signature versions before 0.0.4 for Perl do not limit the number of public keys read from a signatures directory
HTTP::Message::Signature versions before 0.0.4 for Perl do not limit the number of public keys read from a signatures directory.
The directory is fetched from the host named in the request's Signature-Agent header. Every key in it is decoded and kept, and verify searches all of them for the signature's keyid.
A remote client can point the verifier at a directory holding a very large number of keys, using memory and CPU for each request it verifies.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
HTTP::Message::Signatureto a version that resolves this vulnerability.Fixed in 0.0.4
Event History
Frequently Asked Questions
Which deployments are exposed to this resource-exhaustion issue?
Deployments using HTTP::Message::Signature before 0.0.4 are exposed when they verify requests whose Signature-Agent header can direct the verifier to a signatures directory controlled by a remote client.
What must an attacker do to trigger the issue?
The attacker must send a request with a Signature-Agent header naming a host that serves a signatures directory containing a very large number of public keys. The verifier decodes and retains every key, then searches them for the requested keyid.
What is the practical impact of exploitation?
Each malicious verification request can consume memory while retaining the fetched public keys and CPU while decoding and searching them. Repeated requests may therefore degrade availability of the verifier.
How can this be mitigated if upgrading is not immediately possible?
Restrict or validate the hosts that may be named in the Signature-Agent header so remote clients cannot direct verification to arbitrary signatures directories. Preventing access to directories with unbounded numbers of keys reduces the exposed attack path.