CVE-2025-68113
JSON

6.5medium

ALTCHA Proof-of-Work Vulnerable to Challenge Splicing and Replay

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.50% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-6gvq-jcmp-8959GO-2025-4239PYSEC-2026-1115

Description

ALTCHA is privacy-first software for captcha and bot protection. A cryptographic semantic binding flaw in ALTCHA libraries allows challenge payload splicing, which may enable replay attacks. The HMAC signature does not unambiguously bind challenge parameters to the nonce, allowing an attacker to reinterpret a valid proof-of-work submission with a modified expiration value. This may allow previously solved challenges to be reused beyond their intended lifetime, depending on server-side replay handling and deployment assumptions. The vulnerability primarily impacts abuse-prevention mechanisms such as rate limiting and bot mitigation. It does not directly affect data confidentiality or integrity. This issue has been addressed by enforcing explicit semantic separation between challenge parameters and the nonce during HMAC computation. Users are advised to upgrade to patched versions, which include version 1.0.0 of the altcha Golang package, version 1.0.0 of the altcha Rubygem, version 1.0.0 of the altcha pip package, version 1.0.0 of the altcha Erlang package, version 1.4.1 of the altcha-lib npm package, version 1.3.1 of the altcha-org/altcha Composer package, and version 1.3.0 of the org.altcha:altcha Maven package. As a mitigation, implementations may append a delimiter to the end of the `salt` value prior to HMAC computation (for example, `<salt>?expires=<time>&`). This prevents ambiguity between parameters and the nonce and is backward-compatible with existing implementations, as the delimiter is treated as a standard URL parameter separator.

Affected

Product or packageVersionsReported by
altcha-org altcha-lib< 1.4.1CVE List
altcha-lib (npm)before 1.4.1GitHub Advisory Database
altcha-org/altcha (Packagist)before 1.3.1GitHub Advisory Database
github.com/altcha-org/altcha-lib-go (Go)before 1.0.0GitHub Advisory Database, Go Vulnerability Database
org.altcha:altcha (Maven)before 1.3.0GitHub Advisory Database
altcha (RubyGems)before 1.0.0GitHub Advisory Database
altcha (PyPI)before 1.0.0GitHub Advisory Database, PyPA Advisory Database
altcha (Hex)before 1.0.0GitHub Advisory Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Classification

CWE-115CWE-347

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

ALTCHA is privacy-first software for captcha and bot protection. A cryptographic semantic binding flaw in ALTCHA libraries allows challenge payload splicing, which may enable replay attacks. The HMAC signature does not unambiguously bind challenge parameters to the nonce, allowing an attacker to reinterpret a valid proof-of-work submission with a modified expiration value. This may allow previously solved challenges to be reused beyond their intended lifetime, depending on server-side replay handling and deployment assumptions. The vulnerability primarily impacts abuse-prevention mechanisms such as rate limiting and bot mitigation. It does not directly affect data confidentiality or integrity. This issue has been addressed by enforcing explicit semantic separation between challenge parameters and the nonce during HMAC computation. Users are advised to upgrade to patched versions, which include version 1.0.0 of the altcha Golang package, version 1.0.0 of the altcha Rubygem, version 1.0.0 of the altcha pip package, version 1.0.0 of the altcha Erlang package, version 1.4.1 of the altcha-lib npm package, version 1.3.1 of the altcha-org/altcha Composer package, and version 1.3.0 of the org.altcha:altcha Maven package. As a mitigation, implementations may append a delimiter to the end of the `salt` value prior to HMAC computation (for example, `<salt>?expires=<time>&`). This prevents ambiguity between parameters and the nonce and is backward-compatible with existing implementations, as the delimiter is treated as a standard URL parameter separator.

GitHub Advisory Database
Impact

A cryptographic semantic binding flaw in ALTCHA libraries allows challenge payload splicing, which may enable replay attacks. The HMAC signature does not unambiguously bind challenge parameters to the nonce, allowing an attacker to reinterpret a valid proof-of-work submission with a modified expiration value. This may allow previously solved challenges to be reused beyond their intended lifetime, depending on server-side replay handling and deployment assumptions.

The vulnerability primarily impacts abuse-prevention mechanisms such as rate limiting and bot mitigation. It does not directly affect data confidentiality or integrity.

Patches

This issue has been addressed by enforcing explicit semantic separation between challenge parameters and the nonce during HMAC computation.

Users are advised to upgrade to patched versions.

Workarounds

As a mitigation, implementations may append a delimiter to the end of the salt value prior to HMAC computation (for example, <salt>?expires=<time>&). This prevents ambiguity between parameters and the nonce and is backward-compatible with existing implementations, as the delimiter is treated as a standard URL parameter separator.

Go Vulnerability Database

ALTCHA Proof-of-Work Vulnerable to Challenge Splicing and Replay in github.com/altcha-org/altcha-lib-go

NVD (es)

ALTCHA es un software que prioriza la privacidad para la protección contra captcha y bots. Una falla de enlace semántico criptográfico en las bibliotecas de ALTCHA permite el empalme de la carga útil del desafío, lo que puede habilitar ataques de repetición. La firma HMAC no vincula de forma inequívoca los parámetros del desafío al nonce, permitiendo a un atacante reinterpretar una presentación válida de prueba de trabajo con un valor de expiración modificado. Esto puede permitir que los desafíos resueltos previamente se reutilicen más allá de su vida útil prevista, dependiendo del manejo de repeticiones del lado del servidor y las suposiciones de despliegue. La vulnerabilidad impacta principalmente los mecanismos de prevención de abuso, como la limitación de velocidad y la mitigación de bots. No afecta directamente la confidencialidad o integridad de los datos. Este problema ha sido abordado al aplicar una separación semántica explícita entre los parámetros del desafío y el nonce durante el cálculo de HMAC. Se aconseja a los usuarios actualizar a versiones parcheadas, que incluyen la versión 1.0.0 del paquete altcha Golang, la versión 1.0.0 del Rubygem altcha, la versión 1.0.0 del paquete pip altcha, la versión 1.0.0 del paquete altcha Erlang, la versión 1.4.1 del paquete npm altcha-lib, la versión 1.3.1 del paquete Composer altcha-org/altcha y la versión 1.3.0 del paquete Maven org.altcha:altcha. Como mitigación, las implementaciones pueden añadir un delimitador al final del valor 'salt' antes del cálculo de HMAC (por ejemplo, <salt>?expires=<time>&). Esto previene la ambigüedad entre los parámetros y el nonce y es compatible con versiones anteriores de implementaciones existentes, ya que el delimitador se trata como un separador de parámetros URL estándar.

References

https://github.com/altcha-org/altcha-lib/security/advisories/GHSA-6gvq-jcmp-8959advisory, web
https://github.com/altcha-org/altcha-lib-ex/commit/09b2bad466ad0338a5b24245380950ea9918333eweb
https://github.com/altcha-org/altcha-lib-go/commit/4a5610745ef79895a67bac858b2e4f291c2614b8fix, web
https://github.com/altcha-org/altcha-lib-java/commit/69277651fdd6418ae10bf3a088901506f9c62114web
https://github.com/altcha-org/altcha-lib-php/commit/9e9e70c864a9db960d071c77c778be0c9ff1a4d0web
https://github.com/altcha-org/altcha-lib-rb/commit/4fd7b64cbbfc713f3ca4e066c2dd466e3b8d359bweb
https://github.com/altcha-org/altcha-lib/commit/cb95d83a8d08e273b6be15e48988e7eaf60d5c08web
https://github.com/altcha-org/altcha-lib-java/releases/tag/v1.3.0web
https://github.com/altcha-org/altcha-lib-php/releases/tag/v1.3.1web
https://github.com/altcha-org/altcha-lib/releases/tag/1.4.1web
https://nvd.nist.gov/vuln/detail/CVE-2025-68113advisory
https://github.com/altcha-org/altcha-libpackage

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-68113 changed 2025-12-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-6gvq-jcmp-8959 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4239 changed 2026-07-07CC-BY-4.0
NVDCVE-2025-68113 changed 2026-10-07Public domain
PyPA Advisory DatabasePYSEC-2026-1115 changed 2026-07-07CC-BY-4.0