CVE-2006-5557

HP-UX - Stack-based Buffer Overflow via Long -S Argument

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2006-5557. PoCs published by prdelka.

AI-analyzed exploit summary This exploit targets a buffer overflow vulnerability in HP-UX's 'swpackage' utility via the '-S' command-line argument. It leverages a crafted environment variable to execute shellcode, achieving local privilege escalation to root.

Description

Stack-based buffer overflow in the (1) swpackage and (2) swmodify commands in HP-UX B.11.11 and possibly other versions allows local users to execute arbitrary code via a long -S argument. NOTE: this might be a duplicate of CVE-2006-2574, but the details relating to CVE-2006-2574 are too vague to be certain.

Exploits (2)

exploitdb WORKING POC VERIFIED
by prdelka · clocalhp-ux
https://www.exploit-db.com/exploits/2633

This exploit targets a buffer overflow vulnerability in HP-UX's 'swpackage' utility via the '-S' command-line argument. It leverages a crafted environment variable to execute shellcode, achieving local privilege escalation to root.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: HP-UX swpackage (HP-UX 11i)
No auth needed
Prerequisites: Local access to HP-UX system · Presence of vulnerable 'swpackage' binary
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by prdelka · clocalhp-ux
https://www.exploit-db.com/exploits/2634

This exploit targets a buffer overflow in HP-UX's 'swmodify' via the '-S' argument, allowing local privilege escalation to root. It uses a crafted environment variable to inject shellcode and execute '/bin/sh'.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: HP-UX swmodify (HP-UX 11i)
No auth needed
Prerequisites: Local access to HP-UX system · swmodify installed setuid root
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/33993
Exploit, Patch vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/20706
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/2633
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/20735
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/33994
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5035
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/2634

Scores

EPSS 0.0140
EPSS Percentile 68.8%

Details

Status published
Products (3)
hp/hp-ux 11.00
hp/hp-ux 11.4
hp/hp-ux 11.11
Published Oct 27, 2006
Tracked Since Feb 18, 2026