CVE-2024-11681 Remote Code Execution in MacPorts
A malicious MacPorts mirror can execute arbitrary commands as root on client machines during selfupdate, requiring immediate patching.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-11681?
CVE-2024-11681 is a medium-severity command injection vulnerability in MacPorts, published on 7 Jan 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
A malicious or compromised MacPorts mirror can execute arbitrary commands as root on the machine of a client running port selfupdate against the mirror.
Weakness: CWE-78
Which versions are affected by CVE-2024-11681?
It affects 1 product.
Products include Macports Macports.
How do I fix CVE-2024-11681?
No fix has been published for CVE-2024-11681 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-11681 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-11681 exists.
Sources
Also known as GHSA-2j38-pjh8-wfxw.