Security advisory
# Vulnerability in `pygmalion`, `pygmalion-virtualenv` and `refined` themes **Description**: these themes use `print -P` on user-supplied strings to print them to the terminal. All of them do that on git information, particularly the branch name, so if the branch has a specially-crafted name the vulnerability can be exploited. **Fixed in**: [b3ba9978](https://github.com/ohmyzsh/ohmyzsh/commit/b3ba9978). **Impacted areas**: - `pygmalion` theme. - `pygmalion-virtualenv` theme. - `refined` theme.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3769
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:51 UTC · Revision 1
Source evidence
# Vulnerability in `pygmalion`, `pygmalion-virtualenv` and `refined` themes **Description**: these themes use `print -P` on user-supplied strings to print them to the terminal. All of them do that on git information, particularly the branch name, so if the branch has a specially-crafted name the vulnerability can be exploited. **Fixed in**: [b3ba9978](https://github.com/ohmyzsh/ohmyzsh/commit/b3ba9978). **Impacted areas**: - `pygmalion` theme. - `pygmalion-virtualenv` theme. - `refined` theme.
osv:CVE-2021-3769
Complete source record
{
"id": "cbedb78b9ca8a5ed7a6347d8bb6280b25da0af41ae6dbeeb4bc36f8ed98e2de3",
"url": "https://osv.dev/vulnerability/CVE-2021-3769",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3769",
"summary": "# Vulnerability in `pygmalion`, `pygmalion-virtualenv` and `refined` themes **Description**: these themes use `print -P` on user-supplied strings to print them to the terminal. All of them do that on git information, particularly the branch name, so if the branch has a specially-crafted name the vulnerability can be exploited. **Fixed in**: [b3ba9978](https://github.com/ohmyzsh/ohmyzsh/commit/b3ba9978). **Impacted areas**: - `pygmalion` theme. - `pygmalion-virtualenv` theme. - `refined` theme.",
"evidence": "osv:CVE-2021-3769",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-3769",
"aliases": [
"CVE-2021-3769"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ohmyzsh/ohmyzsh",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b3ba9978"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "b3ba9978"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3769.json"
}
}
],
"modified": "2026-10-20T10:54:50.187235465Z",
"provider": "osv",
"references": [
"https://github.com/ohmyzsh/ohmyzsh/commit/b3ba9978"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:planetargon:oh_my_zsh:*:*:*:*:*:*:*:*"
],
"vendor_product": "planetargon:oh_my_zsh",
"extracted_events": [
{
"range": [
{
"fixed": "2021-11-11"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3769",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386243,
"published_at": "2021-11-30T10:15:09+00:00"
}