powerline-gitstatus — security advisory
powerline-gitstatus (aka Powerline Gitstatus) before 1.3.2 allows arbitrary code execution. git repositories can contain per-repository configuration that changes the behavior of git, including running arbitrary commands. When using powerline-gitstatus, changing to a directory automatically runs git commands in order to display information about the current repository in the prompt. If an attacker can convince a user to change their current directory to one controlled by the attacker, such as in a shared filesystem or extracted archive, powerline-gitstatus will run arbitrary commands under the attacker's control. NOTE: this is similar to CVE-2022-20001.
- Products
- powerline-gitstatus
- Affected versions
- Not specified
- Fixed versions
- 1.3.2-1
- CVEs
- CVE-2022-42906
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:02 UTC · Revision 1
Source evidence
powerline-gitstatus (aka Powerline Gitstatus) before 1.3.2 allows arbitrary code execution. git repositories can contain per-repository configuration that changes the behavior of git, including running arbitrary commands. When using powerline-gitstatus, changing to a directory automatically runs git commands in order to display information about the current repository in the prompt. If an attacker can convince a user to change their current directory to one controlled by the attacker, such as in a shared filesystem or extracted archive, powerline-gitstatus will run arbitrary commands under the attacker's control. NOTE: this is similar to CVE-2022-20001.
osv:DEBIAN-CVE-2022-42906
powerline-gitstatus
Fixed versions: 1.3.2-1
powerline-gitstatus
Fixed versions: 1.3.2-1
powerline-gitstatus
Fixed versions: 1.3.2-1
Complete source record
{
"id": "f8246fe2fe43b8d2eef3f3c98904607dbd7b1304b0175bb5c5b9277e8ce08ddb",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-42906",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-42906",
"summary": "powerline-gitstatus (aka Powerline Gitstatus) before 1.3.2 allows arbitrary code execution. git repositories can contain per-repository configuration that changes the behavior of git, including running arbitrary commands. When using powerline-gitstatus, changing to a directory automatically runs git commands in order to display information about the current repository in the prompt. If an attacker can convince a user to change their current directory to one controlled by the attacker, such as in a shared filesystem or extracted archive, powerline-gitstatus will run arbitrary commands under the attacker's control. NOTE: this is similar to CVE-2022-20001.",
"evidence": "osv:DEBIAN-CVE-2022-42906",
"products": [
{
"name": {
"value": "powerline-gitstatus",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.2-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "powerline-gitstatus",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.2-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "powerline-gitstatus",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.2-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2022-42906",
"aliases": [
"DEBIAN-CVE-2022-42906"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.2-1"
}
]
}
],
"package": {
"name": "powerline-gitstatus",
"purl": "pkg:deb/debian/powerline-gitstatus?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-42906.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.2-1"
}
]
}
],
"package": {
"name": "powerline-gitstatus",
"purl": "pkg:deb/debian/powerline-gitstatus?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-42906.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.2-1"
}
]
}
],
"package": {
"name": "powerline-gitstatus",
"purl": "pkg:deb/debian/powerline-gitstatus?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-42906.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:02:45.792793509Z",
"provider": "osv",
"upstream": [
"CVE-2022-42906"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-42906"
]
},
"related_cves": [
{
"value": "CVE-2022-42906",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 324171,
"published_at": "2022-10-13T03:15:09.13+00:00"
}