Every CVE Search/ Get API key

CVE-2024-23686

DependencyCheck Debug Mode Logging of NVD API Key

5.3 MediumFix available

DependencyCheck for Maven 9.0.0 to 9.0.6, for CLI version 9.0.0 to 9.0.5, and for Ant versions 9.0.0 to 9.0.5, when used in debug mode, allows an attacker to recover the NVD API Key from a log file.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

0.60%Up 0.6 points since Jan 24, 2024
90%50%10%1%

What each source reports

NVD Score used 5.3

DependencyCheck for Maven 9.0.0 to 9.0.6, for CLI version 9.0.0 to 9.0.5, and for Ant versions 9.0.0 to 9.0.5, when used in debug mode, allows an attacker to recover the NVD API Key from a log file.

Record
CVE-2024-23686
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-532
Updated
2026-11-02
CVE List 5.3

DependencyCheck Debug Mode Logging of NVD API Key

DependencyCheck for Maven 9.0.0 to 9.0.6, for CLI version 9.0.0 to 9.0.5, and for Ant versions 9.0.0 to 9.0.5, when used in debug mode, allows an attacker to recover the NVD API Key from a log file.

Record
CVE-2024-23686
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-532
Updated
2026-11-02
EUVDEUVD-2024-0347 5.3

DependencyCheck for Maven 9.0.0 to 9.0.6, for CLI version 9.0.0 to 9.0.5, and for Ant versions 9.0.0 to 9.0.5, when used in debug mode, allows an attacker to recover the NVD API Key from a log file.

Record
EUVD-2024-0347
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-frxm-v7q3-v2wv 5.3

Insertion of Sensitive Information into Log File in OWASP DependencyCheck

DependencyCheck for Maven 9.0.0 to 9.0.6, for CLI version 9.0.0 to 9.0.5, and for Ant versions 9.0.0 to 9.0.5, when used in debug mode, allows an attacker to recover the NVD API Key from a log file.

Record
GHSA-frxm-v7q3-v2wv
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-532
Updated
2026-11-02
GitHub AdvisoriesGHSA-qqhq-8r2c-c3f5 3.3

nvdApiKey is logged in debug mode

Summary

The value of nvdApiKey configuration parameter is logged in clear text in debug mode.

Details

The NVD API key is a kind of secret and should be treated like other secrets when logging in debug mode. Expecting the same behavior as for several password configurations: just print ******

Note that while the NVD API Key is an access token for the NVD API - they are not that sensitive. The only thing an NVD API Token grants is a higher rate limit when making calls to publicly available data. The data available from the NVD API is the same whether you have an API Key or not.

PoC

The nvdApiKey is configured to use an environment variable; when running mvn -X dependency-check:check the clear value is logged twice.

Impact

The NVD API key is a kind of secret and should not be exposed. If stolen, an attacker can use this key to obtain already public information.

Record
GHSA-qqhq-8r2c-c3f5
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-532
Updated
2026-11-02
OSV 5.3

DependencyCheck Debug Mode Logging of NVD API Key

DependencyCheck for Maven 9.0.0 to 9.0.6, for CLI version 9.0.0 to 9.0.5, and for Ant versions 9.0.0 to 9.0.5, when used in debug mode, allows an attacker to recover the NVD API Key from a log file.

Record
CVE-2024-23686
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-532
Updated
2026-11-02
OSVGHSA-frxm-v7q3-v2wv 5.3

Insertion of Sensitive Information into Log File in OWASP DependencyCheck

DependencyCheck for Maven 9.0.0 to 9.0.6, for CLI version 9.0.0 to 9.0.5, and for Ant versions 9.0.0 to 9.0.5, when used in debug mode, allows an attacker to recover the NVD API Key from a log file.

Record
GHSA-frxm-v7q3-v2wv
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-532
Updated
2026-11-02
OSVGHSA-qqhq-8r2c-c3f5 3.3

nvdApiKey is logged in debug mode

Summary

The value of nvdApiKey configuration parameter is logged in clear text in debug mode.

Details

The NVD API key is a kind of secret and should be treated like other secrets when logging in debug mode. Expecting the same behavior as for several password configurations: just print ******

Note that while the NVD API Key is an access token for the NVD API - they are not that sensitive. The only thing an NVD API Token grants is a higher rate limit when making calls to publicly available data. The data available from the NVD API is the same whether you have an API Key or not.

PoC

The nvdApiKey is configured to use an environment variable; when running mvn -X dependency-check:check the clear value is logged twice.

Impact

The NVD API key is a kind of secret and should not be exposed. If stolen, an attacker can use this key to obtain already public information.

Record
GHSA-qqhq-8r2c-c3f5
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-532
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.owasp:dependency-check-ant
Maven
9.0.0 up to 9.0.6
9.0.6
org.owasp:dependency-check-cli
Maven
9.0.0 up to 9.0.6
9.0.6
org.owasp:dependency-check-maven
Maven
9.0.0 up to 9.0.6
9.0.6
org.owasp:dependency-check-ant
Maven
9.0.0 to 9.0.5
9.0.6
org.owasp:dependency-check-cli
Maven
9.0.0 to 9.0.5
9.0.6
org.owasp:dependency-check-ant
Maven
9.0.0 up to 9.0.6, plus listed versions
9.0.19.0.29.0.39.0.49.0.5
9.0.6
org.owasp:dependency-check-cli
Maven
9.0.0 up to 9.0.6, plus listed versions
9.0.19.0.29.0.39.0.49.0.5
9.0.6
org.owasp:dependency-check-maven
Maven
9.0.0 up to 9.0.6, plus listed versions
9.0.19.0.29.0.39.0.49.0.5
9.0.6

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-23686 is a medium vulnerability (CVSS 5.3) in Owasp Dependency-check, published December 15, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.60%, the 49th percentile. Fixed in org.owasp:dependency-check-ant 9.0.6.

References

MoveEnter Open