CVE-2026-138258 in HTTP::Message::Signatureinfo

Summary

by MITRE • 11/29/2026

HTTP::Message::Signature versions before 0.1.1 for Perl download public keys from a client-named host without a response size limit.

To verify a request, the module fetches the signatures directory from the host named in the Signature-Agent header. The default user agent sets no maximum response size, so the whole response is read into memory.

A remote client can send a signed request naming its own server, which then returns an arbitrarily large response and exhausts the verifier's memory.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/29/2026

The HTTP::Message::Signature module for Perl, prior to version 0.1.1, contains a critical resource exhaustion vulnerability stemming from unbounded data consumption during cryptographic verification processes. This flaw is classified under CWE-400, which denotes Uncontrolled Resource Consumption, and aligns with the ATT&CK technique of T1498 Network Denial of Service. The vulnerability arises specifically within the mechanism used to verify HTTP message signatures, where the module retrieves public keys required for validation from a remote host identified in the Signature-Agent header field. This design choice allows clients to dictate the source of trust material by specifying arbitrary hosts, creating an opportunity for malicious actors to manipulate the verification workflow.

When a server processes a signed request, it extracts the hostname provided in the Signature-Agent header and initiates an HTTP GET request to fetch the corresponding public keys from that host's signatures directory. The implementation fails to impose any limit on the size of the response received during this retrieval operation. Consequently, if a remote attacker sends a crafted request with a maliciously chosen domain name pointing to a server controlled by them, they can respond with an arbitrarily large payload containing thousands or millions of public keys. Since the default user agent configuration does not enforce a maximum response size threshold, the entire content is read into memory without interruption.

This behavior leads directly to a Denial of Service condition through resource exhaustion. As the verifier processes the massive response, it consumes increasing amounts of RAM until the system's available memory is depleted or the Perl process hits its internal allocation limits. This results in the termination of the application thread or the entire service, effectively rendering the server unavailable to legitimate users. The attack requires no authentication and can be executed remotely by any client capable of sending HTTP requests with manipulated headers, making it a significant threat to public-facing web services relying on this module for signature verification.

Mitigation strategies must focus on enforcing strict limits on external resource consumption during cryptographic operations. Developers should upgrade immediately to version 0.1.1 or later, where such bounds are likely addressed, although verifying the specific patch details is recommended. In cases where upgrading is not immediately feasible, implementing a custom user agent wrapper that enforces a maximum response size limit before processing can serve as an effective workaround. Additionally, restricting the domains allowed in the Signature-Agent header to a predefined whitelist of trusted key servers would prevent attackers from directing requests to untrusted or malicious hosts entirely. These measures align with security best practices for preventing resource exhaustion attacks and ensuring system stability under adversarial conditions.

Responsible

CPANSec

Reservation

11/28/2026

Disclosure

11/29/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!