Sensitive information disclosure via log in com.bmuschko:gradle-vagrant-plugin
Description
The com.bmuschko:gradle-vagrant-plugin Gradle plugin contains an information disclosure vulnerability due to the logging of the system environment variables. When this Gradle plugin is executed in public CI/CD, this can lead to sensitive credentials being exposed to malicious actors. This is fixed in version 3.0.0.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
CVE-2021-21361 in com.bmuschko:gradle-vagrant-plugin logs system environment variables, exposing sensitive credentials; fixed in version 3.0.0.
Vulnerability
Description The com.bmuschko:gradle-vagrant-plugin Gradle plugin logs system environment variables during execution, as seen in the GDKExternalProcessExecutor.groovy file [3]. This behavior inadvertently exposes sensitive information such as API keys or passwords that are stored as environment variables [1].
Exploitation
An attacker can obtain these credentials by accessing log output generated when the plugin is used in a public CI/CD environment, where logs may be visible to unauthorized parties [2]. The vulnerability requires no special privileges or user interaction, and the attack complexity is low [4].
Impact
Successful exploitation leads to disclosure of sensitive environment variables, which could include credentials for external services, posing a significant risk to confidentiality [4].
Mitigation
The issue is fixed in version 3.0.0 of the plugin [1][2]. Users should upgrade to this version or later to prevent logging of environment variables.
- Don't print environment by britter · Pull Request #20 · bmuschko/gradle-vagrant-plugin
- NVD - CVE-2021-21361
- gradle-vagrant-plugin/src/main/groovy/com/bmuschko/gradle/vagrant/process/GDKExternalProcessExecutor.groovy at 292129f9343d00d391543fae06239e9b0f33db73 · bmuschko/gradle-vagrant-plugin
- Sensitive information disclosure via log in com.bmuschko:gradle-vagrant-plugin
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.bmuschko:gradle-vagrant-pluginMaven | >= 0.6, < 3.0.0 | 3.0.0 |
Affected products
3- Range: <3.0.0
- JLLeitschuh/security-researchv5Range: < 3.0.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- github.com/advisories/GHSA-jpcm-4485-69p7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-21361ghsaADVISORY
- github.com/JLLeitschuh/security-research/security/advisories/GHSA-jpcm-4485-69p7ghsax_refsource_CONFIRMWEB
- github.com/bmuschko/gradle-vagrant-plugin/blob/292129f9343d00d391543fae06239e9b0f33db73/src/main/groovy/com/bmuschko/gradle/vagrant/process/GDKExternalProcessExecutor.groovyghsax_refsource_MISCWEB
- github.com/bmuschko/gradle-vagrant-plugin/issues/19ghsax_refsource_MISCWEB
- github.com/bmuschko/gradle-vagrant-plugin/pull/20ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.