Code execution via username-derived environment variables
Published Nov 17, 2022 · Updated Oct 2, 2024
Command injection in Atlassian Bitbucket Server and Data Center 7.0 through 8.4 allows remote attackers to execute arbitrary code. The affected code carries an attacker-controlled username through environment variables into an operating-system command without neutralization. Exploitation requires control of a username; public signup removes authentication, while PostgreSQL deployments and default-mesh 8.x instances are unaffected.
Summary
What happened
Command injection in Atlassian Bitbucket Server and Data Center 7.0 through 8.4 allows remote attackers to execute arbitrary code. The affected code carries an attacker-controlled username through environment variables into an operating-system command without neutralization. Exploitation requires control of a username; public signup removes authentication, while PostgreSQL deployments and default-mesh 8.x instances are unaffected.
The record
- CVE
- CVE-2022-43781
- Published
- Nov 17, 2022
- Updated
- Oct 2, 2024
- Vendor
- Atlassian
- Product
- Bitbucket
- Classifications
- CWE-77, T1059
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 17, 2022CVE publishedPublication date reported by the CVE source.
- Oct 2, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=7.0.0 <7.6.19
- Affected versionversion=7.18.0 <7.21.6
- Affected versionversion=7.22.0 <8.0.5
- Affected versionversion=7.7.0 <7.17.12
- Affected versionversion=8.1.0 <8.1.5
- Affected versionversion=8.2.0 <8.2.4
- Affected versionversion=8.3.0 <8.3.3
- Affected versionversion=8.4.0 <8.4.2
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo