Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRead hard-coded signing key from public source
-
DeliveryForge validly signed JWT token
-
ExploitSubmit token to protected endpoint
-
ExecutionInterceptor accepts forged token
-
ImpactGain unauthorized access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Key management controls
|
| Exploitation Conditions | Applies to deployments running stylefeng Guns up to and including 2.2 that use its JWT-based authentication, where TokenAndPermissionInterceptor signs and validates tokens with a key hard-coded in the source. Because the project is open source, that key is public, so exploitation needs no special configuration, authentication or user interaction - only that the affected JWT auth path is in use and reachable over the network. Limiting factors: real-world severity is bounded by what the JWT-protected endpoints actually authorize, and no vendor fix exists yet because the maintainer has not responded to the report. |
| Impact | Signals point to a real but modest-priority issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes remote, unauthenticated, low-complexity reachability with no user interaction, and the base score of 6.9 (medium) reflects the vendor-rated low impact to confidentiality, integrity and availability (VC:L/VI:L/VA:L). The underlying weakness - CWE-320, a hard-coded cryptographic key used to sign JWTs - is architecturally serious because Guns is open source, so the signing key is publicly readable and any attacker can forge valid tokens; this gives the low-impact rating a plausible ceiling above what the numbers suggest. Countering that, there is no CISA KEV listing, no EPSS score supplied, and no confirmed working exploit, so there is no evidence of active or widespread exploitation; VulDB's own priority label is 'this_month' rather than an emergency. The practical impact depends on what the JWT-protected endpoints authorize, which the available sources do not specify - a data gap that should be closed by reviewing how Guns uses the forged token. Net: a genuine authentication weakness to remediate on a normal patch cadence, not a drop-everything emergency. |
| Exploit ScenarioDerived | Because Guns is open source, an attacker reads the hard-coded JWT signing key directly from the public repository and uses it to mint a validly signed JWT for an account or role of their choosing. They send the forged token to the application's JWT-protected endpoints (processed by TokenAndPermissionInterceptor.preHandle), which accepts it as authentic, granting unauthorized access. No working exploit tool is confirmed, but the primitive is trivial to reproduce from source. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Hard-coded JWT signing key in stylefeng Guns through 2.2 lets remote, unauthenticated attackers forge authentication tokens. The key is embedded in TokenAndPermissionInterceptor.java, so anyone who can read the open-source repository can mint tokens that the interceptor will accept, sidestepping the login and permission checks it enforces. Assessed impact stays low across confidentiality, integrity and availability (CVSS:3.1 6.9, AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) because real-world damage is bounded by what the JWT-protected endpoints actually expose; the maintainer was notified via GitHub issue 117 but has not responded, so no vendor fix exists, and no public exploit identified at time of analysis.
RemediationAI
No vendor-released patch identified at time of analysis: the maintainer has not responded to the report at https://github.com/stylefeng/Guns/issues/117 and no fixed release appears in the available data. The only complete fix is to remove the embedded secret - replace the hard-coded key in TokenAndPermissionInterceptor.java with a value injected at deploy time (environment variable or external keystore) and rebuild the application; this forces a key rotation, invalidates all existing tokens and requires users to re-authenticate. Merely editing the constant in source is not durable, because a new value committed to a public repository becomes public again. Because the shipped key must be treated as compromised, assume any token accepted by an unpatched instance can be forged: review authentication and access logs for tokens with unexpected claims or subjects and invalidate sessions on affected hosts. Until a patched build exists, restrict network reachability of JWT-protected endpoints to trusted networks or front them with a gateway that performs its own authentication - the trade-off is that legitimate remote clients are blocked or must authenticate twice, and the added hop must be maintained separately.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Guns is a Java/Spring-based administration framework (VulDB tags the record Java and Information Disclosure). Its TokenAndPermissionInterceptor is a Spring MVC-style handler interceptor whose preHandle method gates incoming requests: it extracts the JWT from the request, verifies its signature, and derives the caller's identity and permissions from the token claims. The flaw is that this signing and validation uses a cryptographic key that is hard-coded in TokenAndPermissionInterceptor.java rather than loaded from deployment-specific configuration. The record is classified under CWE-320 (key management errors) and described as use of a hard-coded cryptographic key. Because the project is open source, the embedded secret is effectively public, so an attacker who knows it can produce correctly signed tokens with arbitrary claims - as long as the HMAC/JWT auth path is reachable over the network and in use, no special configuration, credentials or user interaction is required. The sources do not describe any further trigger condition, and the assessed vector caps the outcome at partial confidentiality and integrity loss, since the practical reach of a forged token is limited to the endpoints that trust the interceptor.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Publicly readable hard-coded key enables remote unauthenticated JWT forgery (AV:N/AC:L/PR:N/UI:N); impact kept low and A:N per vendor signal, as authorization granted by forged tokens is not documented.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability has been found in stylefeng Guns up to 2.2. Affected by this issue is the function TokenAndPermissionInterceptor.preHandle of the file TokenAndPermissionInterceptor.java of the component JWT Signing. Such manipulation leads to use of hard-coded cryptographic key . It is possible to launch the attack remotely. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-136895
GHSA-9h8v-927p-g98f
NVD
CVE.org
EPSS
VulDB
Exploit-DB