PatchClock

PHP security digest · 18 Nov 2026

ALTCHA PHP: verifySolution bypasses HMAC signature check when challenge signature is absent

High CVE-2026-71481

Package
altcha-org/altcha
Fixed in
2.0.3
Published
Wed 18 Nov 2026, 20:48 LisbonUpdated Thu 19 Nov 2026, 00:45 Lisbon
Installs on Packagist
2M

In plain words

The flaw lets an attacker bypass the CAPTCHA by submitting a solution to an attacker-created, low-difficulty challenge. In affected versions, verifySolution skips the HMAC signature check when the challenge has no signature, even when hmacSignatureSecret is configured.

Affected versions

PackageAffectedFixed in
altcha-org/altcha>= 2.0.0, < 2.0.32.0.3

How serious is it?

High is a CVSS score of 7.0 to 8.9: serious impact with few preconditions. Plan the update within days, ahead of feature work, and check the logs for signs it was tried.

altcha-org/altcha has 2M installs on Packagist, so the advisory reaches a large number of projects: expect scanners to look for it soon.

Am I affected?

Check composer.lock for altcha-org/altcha with a version >= 2.0.0, < 2.0.3. If present, check whether your deployment uses verifySolution with hmacSignatureSecret configured, the recommended production configuration. The fix is in 2.0.3.

Did you install altcha-org/altcha, or did a dependency?

Composer says why a package is in your project:

composer why altcha-org/altcha

If the output names your own project, you required altcha-org/altcha directly and the update is yours to make. If it names another package, altcha-org/altcha came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:

composer why-not altcha-org/altcha 2.0.3

Every line it prints is a constraint that blocks 2.0.3. Update the package it names, or raise your own constraint, and run it again until it prints nothing.

What to do

Check which version you have, then update to a fixed release for your branch (2.0.3):

composer show altcha-org/altcha | grep versions
composer update altcha-org/altcha

If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.

Check the whole project at once

Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:

composer audit --locked

--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.

Under the Cyber Resilience Act

CRA Article 14 timeline: aware of exploitation at hour 0, early warning within 24 hours, notification within 72 hours, final report within 14 days after the fix.

No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.

Either way, if altcha-org/altcha ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated altcha-org/altcha, and why, is the evidence you will want later.

What goes in each Article 14 report · Does the CRA apply to your product?

altcha-org/altcha's record

This is the only advisory for altcha-org/altcha since the digest started following Composer packages in September 2026. One advisory says little about a package's quality; what matters is how fast the fix came, and here it is out.

The advisory's description

In altcha-org/altcha v2, the verifySolution method skips HMAC signature verification when the signature field is absent from the challenge payload, even when hmacSignatureSecret is configured.

An attacker who strips the signature key from the challenge JSON passes the condition as false, bypassing tamper-detection entirely. The PoW solution check then runs against unverified parameters — allowing an attacker to self-issue a low-difficulty challenge, solve it trivially, and submit a payload that verifies as true.

Impact: Complete CAPTCHA bypass on any deployment that sets hmacSignatureSecret (the recommended production configuration).

Fix: The check was split so that a missing signature is explicitly rejected when a secret is configured.

Weakness: CWE-347 Improper Verification of Cryptographic Signature. Reported by digilist.

The advisory

From OSV.dev, which gathers the GitHub Advisory Database, FriendsOfPHP and Drupal security advisories; the summary is theirs. The description, affected versions, weakness and credits are from the GitHub Advisory Database (CC BY 4.0). "In plain words", "Am I affected?" and "If you cannot update yet" are based on that advisory, and checked to name no version it does not.