Dev.to Security 🔐 Cybersecurity 👁 0 📖 2 min read

CVE-2026-103033: CVE-2026-103033: Pre-Verification Nil-Map Panic and Denial of Service in ALTCHA Go Library

CVE-2026-103033: Pre-Verification Nil-Map Panic and Denial of Service in ALTCHA Go Library Vulnerability ID: CVE-2026-103033 CVSS Score: 5.3 Published: 2026-11-20 CVE-2026-103033 (GHSA-gfwj-45pc-w6r5) is an unauthen

CVE-2026-103033: Pre-Verification Nil-Map Panic and Denial of Service in ALTCHA Go Library

Vulnerability ID: CVE-2026-103033
CVSS Score: 5.3
Published: 2026-11-20

CVE-2026-103033 (GHSA-gfwj-45pc-w6r5) is an unauthenticated pre-verification Denial of Service (DoS) vulnerability in the Go implementation of the ALTCHA bot-prevention library (github.com/altcha-org/altcha-lib-go). In versions 2.0.0 and 2.0.1, the internal function parseServerSignature conditionally initializes the ServerSignatureVerificationData.Extra map only when url.ParseQuery returns no error. When an attacker submits a payload containing both an unrecognized query parameter and malformed percent-encoding in the VerificationData field, url.ParseQuery returns partially parsed parameters alongside an error. Because execution continues without initializing the Extra map, the subsequent loop attempts to write unknown parameters into a nil map, triggering a fatal Go runtime panic before cryptographic signature verification occurs.

TL;DR

An uninitialized map assignment in github.com/altcha-org/altcha-lib-go prior to v2.1.0 allows unauthenticated remote attackers to trigger a runtime panic via malformed percent-encoding in the VerificationData field before HMAC signature verification takes place.

⚠️ Exploit Status: POC

Technical Details

  • CVE ID: CVE-2026-103033 (GHSA-gfwj-45pc-w6r5)
  • Weakness Class: CWE-248 (Uncaught Exception) / CWE-476 (NULL Pointer Dereference)
  • Attack Vector: Network (Pre-verification HTTP/RPC payload)
  • CVSS v3.1 Score: 5.3 Medium (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L)
  • Affected Component: github.com/altcha-org/altcha-lib-go (parseServerSignature in altcha.go)
  • Impact: Runtime Panic (assignment to entry in nil map) / Denial of Service
  • Exploit Status: Proof-of-Concept (Trivially reproducible via malformed percent-encoding)
  • CISA KEV Status: Not Listed

Affected Systems

  • github.com/altcha-org/altcha-lib-go (versions >= 2.0.0, < 2.1.0)
  • altcha-lib-go: >= 2.0.0, < 2.1.0 (Fixed in: 2.1.0)

Code Analysis

Commit: 2c4fc27

fix: v1 - nil-map panic in parseServerSignature with malformed data

--- a/altcha.go
+++ b/altcha.go
@@ -277,9 +277,9 @@ func parseServerSignature(payload interface{}) (ServerSignaturePayload, ServerSi
    }

    var verificationData ServerSignatureVerificationData
+   verificationData.Extra = make(map[string]interface{})
    params, err := url.ParseQuery(parsedPayload.VerificationData)
    if err == nil {
-       verificationData.Extra = make(map[string]interface{})
        verificationData.Classification = params.Get("classification")
        verificationData.Country = params.Get("country")
        verificationData.DetectedLanguage = params.Get("detectedLanguage")

Mitigation Strategies

  • Upgrade github.com/altcha-org/altcha-lib-go to version v2.1.0 or higher to ensure unconditional initialization of the verificationData.Extra map.
  • Wrap calls to VerifyServerSignature and VerifyServerSignatureSafe in a defer/recover block to prevent unhandled runtime panics from terminating worker goroutines or server processes.
  • Pre-validate incoming ServerSignaturePayload structures by verifying that url.ParseQuery(verificationData) returns no error prior to passing the payload to the ALTCHA library.

Remediation Steps:

  1. Identify all Go services importing github.com/altcha-org/altcha-lib-go at versions v2.0.0 or v2.0.1 in go.mod.
  2. Run 'go get -u github.com/altcha-org/[email protected]' and 'go mod tidy' to update the dependency.
  3. Rebuild and redeploy affected Go binaries across all environments.
  4. Verify that panic recovery middleware is configured across all HTTP routers, gRPC servers, and background worker goroutines.

References

Read the full report for CVE-2026-103033 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.