Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/goldendivider/gpgsm-cve-2026-57062-cms-gcm-short-tag
Vulnerability AnalysisExploitationCryptographyPenetration Testing
GitHubgoldendivider/gpgsm-cve-2026-57062-cms-gcm-short-tag

gpgsm-cve-2026-57062-cms-gcm-short-tag

Proof-of-concept demonstrating a CMS AES-GCM short-tag authentication bypass in GnuPG's gpgsm (CVE-2026-57062). Forges a message that decrypts on vulnerable builds but is rejected on patched versions.

View Repository
312 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    945
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    555
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    350
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    339
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    338
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    292

Explore all tools

Browse our collection of tools

View all tools →
Share

gpgsm CVE-2026-57062: CMS AES-GCM short tag (USN-8720-1)

GnuPG's gpgsm (the S/MIME and CMS tool) derives the authentication tag length it verifies from the mac OCTET STRING in a CMS AuthEnvelopedData (RFC 5083) AES-256-GCM message, and libgcrypt accepts tags as short as 4 bytes. RFC 5084 requires at least 12. Ubuntu fixed this in noble gnupg2 2.4.4-2ubuntu17.6 by rejecting any authtag shorter than 12 octets.

This is a proof of concept: the exact same forged CMS message decrypts on a vulnerable gpgsm and is rejected on a patched one. It does not demonstrate remote compromise. It demonstrates that a message which should fail authentication crosses the gpgsm security gate on the vulnerable build.

What the PoC shows

Run the same message against both builds and only the GnuPG version changes:

messagevulnerable gpgsm 2.4.4patched gnupg2 2.4.4-2ubuntu17.6
mac 12 (baseline)decryptsdecrypts
mac 4 (probe)decrypts (accept)rejected, non-zero exit

The solution file

gpgsm-cve-2026-57062-cms-gcm-short-tag.txt is an Exploitmatic solution (.txt): data plus asserts, no code. The Exploitmatic runtime (Rust, open source) does the work at run time:

  1. recon: ssh to the target and export the recipient's own public certificate with gpgsm --export, captured whole.
  2. forge: the runtime's cmsgcm transform builds a CMS AuthEnvelopedData AES-256-GCM message to that certificate with a 12- or 4-byte mac. Only the public certificate is needed, so it works against any fresh box.
  3. baseline and short-tag: echo the base64 message over ssh, decode it, and run the box's own gpgsm --decrypt on it, asserting the forged content.

A vulnerable gpgsm authenticates the 4-byte-tag message and emits the content. A patched gpgsm refuses and exits non-zero, so nothing reaches stdout and the assert fails.

Run it

Precondition: you can already ssh to the box as root with your normal identity (ssh config, agent, or default key). The solution carries no operator credential and no target state.

exploitmatic run gpgsm-cve-2026-57062-cms-gcm-short-tag.txt 127.0.0.1

Point at another box or the patched replica with --var, no file edit:

exploitmatic run gpgsm-cve-2026-57062-cms-gcm-short-tag.txt 127.0.0.1 --var ssh_port=2223

recipient (default USN-8720-Recipient) names the certificate exported from the target.

Verified

targetresult
stock gpgsm 2.4.4 (built from source), ssh 22223/3 verified
noble gnupg2 2.4.4-2ubuntu17.6, ssh 22232/3 not verified (short-tag fails)

Scope

For authorized testing and research only, on systems you own or have permission to test.

References

  • CVE-2026-57062
  • USN-8720-1
  • RFC 5083, RFC 5084
  • Exploitmatic runtime: https://github.com/exploitmatic/exploitmatic
Download Tool