Description
Multiple buffer overflows in (1) the getline function in pcalutil.c and (2) the get_holiday function in readfile.c for pcal 4.7.1 allow remote attackers to execute arbitrary code via a crafted calendar file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pcal | 4.8.0-1 | — |
| Debian 13 | pcal | 4.8.0-1 | — |
| Debian 12 | pcal | 4.8.0-1 | — |
| Debian 3.0 | pcal | 4.7-8woody1 | DSA-625-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- PCAL 4.x - Calendar File 'getline' Remote Buffer Overflow EDB-25035 · remote · Dec 15, 2004 · verified
- PCAL 4.x - Calendar File 'get_holiday' Remote Buffer Overflow EDB-25036 · remote · Dec 15, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-625-1 pcal - buffer overflows Debian Security (DSA / DLA) · Mar 9, 2026