Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Tue, 26 Apr 2022 23:18:25 +0000
From: Seth Arnold <>
Subject: [ CVE-2022-23942: Apache
 Doris(incubating) hardcoded cryptography initialization]

Hello, the Apache Doris project recently switched away from using
hard-coded credentials; they apaprently copy-and-pasted code from the
Kylin project:

public class EncryptUtil {
     * thisIsAsecretKey
    private static byte[] key = { 0x74, 0x68, 0x69, 0x73, 0x49, 0x73, 0x41, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b,
            0x65, 0x79 };

    private static final Cipher getCipher(int cipherMode) throws InvalidAlgorithmParameterException,
            InvalidKeyException, NoSuchPaddingException, NoSuchAlgorithmException, UnsupportedEncodingException {
        Cipher cipher = Cipher.getInstance("AES/CFB/PKCS5Padding");
        final SecretKeySpec secretKey = new SecretKeySpec(key, "AES");
        IvParameterSpec ivSpec = new IvParameterSpec(KylinConfig.getInstanceFromEnv().getEncryptCipherIvSpec().getBytes("UTF-8"));
        cipher.init(cipherMode, secretKey, ivSpec);
        return cipher;

Kylin may need a similar fix.


----- Forwarded message from 陈明雨 <> -----

Date: Tue, 26 Apr 2022 22:33:47 +0800 (CST)
From: 陈明雨 <>
To: general <>,,,
Subject: [oss-security] CVE-2022-23942: Apache Doris(incubating) hardcoded cryptography initialization
Message-ID: <>

Severity: moderate

Doris use hardcoded key and IV to initialize the cipher used for ldap password, which may lead to information disclosure.

Upgrade to 1.0.0[1] or higher will resolve this problem.

We would like to thanks to Dwi Siswanto for the report of this issue



此致!Best Regards
陈明雨 Mingyu Chen


----- End forwarded message -----

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.