Description
The PEAR_REST class in REST.php in PEAR in PHP through 5.6.0 allows local users to write to arbitrary files via a symlink attack on a (1) rest.cachefile or (2) rest.cacheid file in /tmp/pear/cache/, related to the retrieveCacheFirst and useLocalCache functions.
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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | php-pear | No fix yet | — |
| Ubuntu 26.04 LTS | php-pear | No fix yet | — |
| Ubuntu 25.10 | php-pear | No fix yet | — |
| Ubuntu 24.04 LTS | php-pear | No fix yet | — |
| Ubuntu 22.04 LTS | php-pear | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | php-pear | No fix yet | — |
| Ubuntu 18.04 LTS | php-pear | No fix yet | — |
| Ubuntu Pro 16.04 LTS | php-pear | No fix yet | — |
| Ubuntu Pro 14.04 LTS | php5 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP2 | php53 | 5.3.17-47.1 | SUSE-SU-2016:1638-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php5 | 5.6.28-1.1 | openSUSE-SU-2024:10344-1 |
| openSUSE Tumbleweed | php7 | 7.0.14-1.4 | openSUSE-SU-2024:10290-1 |
| openSUSE Tumbleweed | php8 | 8.0.11-1.1 | openSUSE-SU-2024:11169-1 |
Advisories 4
- openSUSE-SU-2024:10290-1 apache2-mod_php7-7.0.14-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10344-1 apache2-mod_php5-5.6.28-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1638-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11169-1 php8-8.0.11-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759282
- openSUSE-SU-2014:1245 vendor-advisory
- [oss-security] 20140827 Re: CVE request: php-pear, pear's insecure /tmp/ use for cache data mailing-list
- http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html
- openSUSE-SU-2014:1133 vendor-advisory