CVE-2007-4812

Safari < 3.0.4 - Buffer Overflow via document.location.hash

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-4812. PoCs published by Azizov E.

AI-analyzed exploit summary This exploit triggers a buffer overflow in Safari for Windows by crafting a maliciously long URL hash. The PoC uses JavaScript to generate an excessively long string and sets it as the document.location.hash, potentially leading to arbitrary code execution or denial-of-service.

Description

Buffer overflow in Apple Safari 3.0.3 522.15.5, and other versions before Beta Update 3.0.4, allows remote attackers to cause a denial of service (crash) and possibly have other unspecified impact by setting document.location.hash to a long string. NOTE: the crash might actually occur in the alert method.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Azizov E · htmldoswindows
https://www.exploit-db.com/exploits/30767

This exploit triggers a buffer overflow in Safari for Windows by crafting a maliciously long URL hash. The PoC uses JavaScript to generate an excessively long string and sets it as the document.location.hash, potentially leading to arbitrary code execution or denial-of-service.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Theoretical
Target: Safari for Windows (versions affected by CVE-2007-4812)
No auth needed
Prerequisites: Victim must visit a maliciously crafted webpage
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/Security-announce/2007/Nov/msg00003.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/26448
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/478802/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/43971
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/3111

Scores

EPSS 0.0304
EPSS Percentile 85.8%

Details

CWE
CWE-119
Status published
Products (1)
apple/safari 3.0.3
Published Sep 11, 2007
Tracked Since Feb 18, 2026