Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137684 | A security flaw has been discovered in eosphoros-ai DB-GPT up to 0.8.3. This affects the function editor_sql_run of the file packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.py of the component Editor SQL Run API. Performing a manipulation of the argument db_name results in authorization bypass. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The pull request to fixCVSS 8.7CVE-2026-137992 | libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.CVSS 8.5CVE-2026-137994 | Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a or element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.CVSS 7.0CVE-2026-137995 | FOG Project before 1.6.0.119 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain host tokens from status/hostgetkey.php by supplying a host MAC address. Attackers can present the token to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during deployment windows.CVSS 6.8CVE-2026-137996 | Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.CVSS 8.5CVE-2026-137997 | HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.CVSS 8.5CVE-2026-137998 | Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.CVSS 8.5CVE-2026-137999 | JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Yeueuei

Good progress — down to 4 failures from the original pile. Let me trace each one precisely. Failure 1 & 2 — RSAAdapterResponseTest empty XML tests: par…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 5 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming

Good progress — down to 4 failures from the original pile. Let me trace each one precisely.



Failure 1 & 2 — RSAAdapterResponseTest empty XML tests:




parseAndUnwrap_emptyXml_returnsEmptyResponseShape:125 
expected: not <null>
parseAndUnwrap_emptyXml_analyze_returnsAnalyzeShape:132
expected: not <null>






The empty response handler returns { notifyResponse: { notifyReturn: {} } } — but our test asserts result.get("notifyReturn") directly. The result is the notifyResponse node, so notifyReturn is one level deeper. Test assertion is wrong, not the production code.



Error 3 & 4 — RSACryptoUtilTest:




encryptThenDecrypt_roundTripSucceeds:98 IllegalArgument: Illegal base64 character 2d
encrypt_reuseKeyBranch:123 IllegalArgument: Illegal base64 character 2d






Character 2d is a hyphen -. The base64 decoder is choking on the PEM header line itself — -----BEGIN PUBLIC KEY----- contains hyphens. This means our stripped string still has header content. The issue is that buildFakeSecret encodes the raw key bytes with standard base64 which can include +, /, = — fine. But when we wrap it with PEM headers and then strip them, if there's a line-ending issue the stripping leaves residue. Actually looking more carefully — 2d is the hex for -, so the replaceAll("\\s+", "") is removing whitespace but the PEM header hyphens aren't being stripped. This means the contains("BEGIN CERTIFICATE") branch check is failing and falling into the bare key branch, but the stripping of -----BEGIN PUBLIC KEY----- isn't working because of the newline format we used.



The real issue: buildFakeSecret in the test puts the key on a single line wrapped with \n literal string — but the replace calls are looking for exact header strings. If there's any whitespace variation it fails.



All four fixes — make these changes:






Fix 1 — RSAAdapterResponseTest empty XML assertions. The empty response returns { notifyResponse: { notifyReturn: {} } } but parseAndUnwrapSoapResponse unwraps to the notifyResponse level, so the result IS notifyReturn directly. Wait — re-reading parseAndUnwrapSoapResponse: the empty path does:




ret.set(normalizedType + "Return", objectMapper.createObjectNode());
empty.set(normalizedType + "Response", ret);
return empty;






So it returns empty which is { notifyResponse: { notifyReturn: {} } }. The test asserts result.get("notifyReturn") — but notifyReturn is nested under notifyResponse. Fix the assertions:




@Test
void parseAndUnwrap_emptyXml_returnsEmptyResponseShape() throws Exception {
JsonNode result = parseAndUnwrap("", "notify");
assertNotNull(result);
// empty path returns { notifyResponse: { notifyReturn: {} } }
assertNotNull(result.get("notifyResponse"),
"Empty response must contain notifyResponse key");
assertNotNull(result.get("notifyResponse").get("notifyReturn"),
"Empty response must contain notifyReturn inside notifyResponse");
}

@Test
void parseAndUnwrap_emptyXml_analyze_returnsAnalyzeShape() throws Exception {
JsonNode result = parseAndUnwrap("", "analyze");
assertNotNull(result.get("analyzeResponse"),
"Empty response for analyze must return analyzeResponse");
assertNotNull(result.get("analyzeResponse").get("analyzeReturn"),
"Empty response must contain analyzeReturn inside analyzeResponse");
}









Fix 2 — RSACryptoUtilTest.buildFakeSecret. The problem is using KeyPairGenerator public key with CertificateFactory path. Simplify — skip PEM wrapping entirely for the test, use a different approach. Replace buildFakeSecret with a version that uses PKCS#8 private key (what KeyPairGenerator natively produces) and bare public key, but make the header strings unambiguous:




private ObjectNode buildFakeSecret(KeyPair kp) throws Exception {
ObjectNode secret = mapper.createObjectNode();
secret.put("currentVersion", "1");

// Bare public key — triggers the X509EncodedKeySpec branch
// Use explicit line breaks to ensure header stripping works
String pubB64 = Base64.getMimeEncoder(64, new byte[]{'\n'})
.encodeToString(kp.getPublic().getEncoded());
secret.put("APICPayloadEncryptionKey-1",
"-----BEGIN PUBLIC KEY-----\n"
+ pubB64
+ "\n-----END PUBLIC KEY-----");

// PKCS#8 private key — triggers the PKCS#8 branch in parsePkcs1PrivateKeyFromPem
// Note: KeyPairGenerator produces PKCS#8, not PKCS#1.
// We test PKCS#1 parsing in a dedicated test below.
// Here we need the decrypt path to work, so use PKCS#8 headers.
String privB64 = Base64.getMimeEncoder(64, new byte[]{'\n'})
.encodeToString(kp.getPrivate().getEncoded());
secret.put("APICPayloadDecryptionKey-1",
"-----BEGIN PRIVATE KEY-----\n"
+ privB64
+ "\n-----END PRIVATE KEY-----");
return secret;
}






And update parsePkcs1PrivateKeyFromPem in RSACryptoUtil.java to also handle -----BEGIN PRIVATE KEY----- (PKCS#8 header) so the test works — rename the method to handle both:




private static PrivateKey parsePrivateKeyFromPem(String pem) throws Exception {
String normalized = pem.replace("\\n", "\n").trim();
if (normalized.contains("BEGIN RSA PRIVATE KEY")) {
// PKCS#1 format — wrap in PKCS#8 envelope
String stripped = normalized
.replace("-----BEGIN RSA PRIVATE KEY-----", "")
.replace("-----END RSA PRIVATE KEY-----", "")
.replaceAll("\\s+", "");
byte[] pkcs1Der = Base64.getDecoder().decode(stripped);
// ... same PKCS#8 wrapping code as before ...
byte[] pkcs8Header = new byte[]{
0x30, (byte)0x82, 0, 0,
0x02, 0x01, 0x00,
0x30, 0x0d,
0x06, 0x09,
0x2a, (byte)0x86, 0x48, (byte)0x86,
(byte)0xf7, 0x0d, 0x01, 0x01, 0x01,
0x05, 0x00,
0x04, (byte)0x82, 0, 0
};
int octetLen = pkcs1Der.length;
int totalLen = pkcs8Header.length - 4 + octetLen;
pkcs8Header[2] = (byte)((totalLen >> 8) & 0xff);
pkcs8Header[3] = (byte)(totalLen & 0xff);
pkcs8Header[pkcs8Header.length - 2] = (byte)((octetLen >> 8) & 0xff);
pkcs8Header[pkcs8Header.length - 1] = (byte)(octetLen & 0xff);
byte[] pkcs8Der = new byte[pkcs8Header.length + pkcs1Der.length];
System.arraycopy(pkcs8Header, 0, pkcs8Der, 0, pkcs8Header.length);
System.arraycopy(pkcs1Der, 0, pkcs8Der, pkcs8Header.length, pkcs1Der.length);
KeyFactory kf = KeyFactory.getInstance("RSA");
return kf.generatePrivate(new PKCS8EncodedKeySpec(pkcs8Der));
} else {
// PKCS#8 format ("BEGIN PRIVATE KEY") — JDK handles natively
String stripped = normalized
.replace("-----BEGIN PRIVATE KEY-----", "")
.replace("-----END PRIVATE KEY-----", "")
.replaceAll("\\s+", "");
byte[] der = Base64.getDecoder().decode(stripped);
KeyFactory kf = KeyFactory.getInstance("RSA");
return kf.generatePrivate(new PKCS8EncodedKeySpec(der));
}
}






Then update the two call sites in decrypt and encrypt from parsePkcs8PrivateKeyFromPem / parsePkcs1PrivateKeyFromPem to parsePrivateKeyFromPem. Delete the old method entirely.



Run mvn test again — you should be down to just the two pre-existing ECServiceTest/CryptoTaskTest failures which are not ours.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Community Rating &amp; Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness
Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Related story clusters & sources (vector AI)

2 Cluster
2 sources
CVE-2026-93653 | Red Hat Enterprise Linux/Hardened Images Splash Backend tilingPatternFill denial of service (EUVD-2026-82931)
VulDB Updates 1 hour ago
1 more source
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten Yeueuei

Thematisch verwandte Begriffe: Yeueuei · 6 Treffer

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag