CVE-2025-59058 httpsig-rs's HMAC verification is vulnerable to timing attack

Medium 5.9 Published Updated

Attackers can forge HTTP message signatures via timing attacks on HMAC verification, bypassing authentication in applications using this Rust library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-59058?

CVE-2025-59058 is a medium-severity vulnerability in junkurihara httpsig-rs, published on 12 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

httpsig-rs is a Rust implementation of IETF RFC 9421 http message signatures. Prior to version 0.0.19, the HMAC signature comparison is not timing-safe. This makes anyone who uses HS256 signature verification vulnerable to a timing attack that allows the attacker to forge a signature. Version 0.0.19 fixes the issue.

Weakness: CWE-208

Which versions are affected by CVE-2025-59058?

2 open source packages ship an affected version, including httpsig.

PackageAffectedFixed in
httpsig crates.ioAll versions0.0.19
httpsig crates.ioAll versions0.0.19

How do I fix CVE-2025-59058?

Upgrade httpsig to 0.0.19 or later.

Is CVE-2025-59058 being exploited?

There is no known exploitation of CVE-2025-59058 in the wild and no public exploit code.

Sources

Also known as GHSA-q7pg-9pr4-mrp2.

Is CVE-2025-59058 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free